Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-115025

QPerVertexColorMaterial does not work with Direct3D

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.7.0 Beta2, 6.8.0 FF
    • 6.5.1
    • Qt3D
    • None
    • Direct3D
    • Windows
    • 4b0bb2f95 (dev), 6ce9c481a (6.7)

    Description

      It gives a shader compilation error.
      ” Shader Error: "cbuffer ID 50 (name: qt3d_light_uniforms), member index 0 (name: lights) cannot be expressed with either HLSL packing layout or packoffset."

      Seems to be the same issue as it was for Gooch material, reported (and since fixed) here:

      QTBUG-110128

       

      Context: pervertexcolor.frag

      const int MAX_LIGHTS = 8;
      const int TYPE_POINT = 0;
      const int TYPE_DIRECTIONAL = 1;
      const int TYPE_SPOT = 2;

      struct Light

      {     int type;     vec3 position;     vec3 color;     float intensity;     vec3 direction;     float constantAttenuation;     float linearAttenuation;     float quadraticAttenuation;     float cutOffAngle; }

      ;

      layout(std140, binding = 2) uniform qt3d_light_uniforms

      {   uniform Light lights[MAX_LIGHTS];   uniform int lightCount;   uniform int envLightCount; }

      ;

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            seanharmer Sean Harmer
            matta Lenardne Szolnoki
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes