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

SSGI and normal map causes shader compilation failure

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P0: Blocker P0: Blocker
    • None
    • 6.11
    • Quick: 3D
    • None

      It seems to be caused by the following patch https://codereview.qt-project.org/c/qt/qtquick3d/+/674864

      I have modified the principledmaterial example and added SSGI and I get the following assertion failure:

      QSpirvCompiler: Failed to parse shader
      Failed to compile fragment shader: ERROR: :105: 'qt_tangent' : undeclared identifier
      ERROR: :105: '' : compilation terminated
      ERROR: 2 compilation errors. No code generated.

      "mesh default material pipeline-- ;hasLighting=true;hasIbl=true;specularEnabled=true;fresnelEnabled=true;vertexColorsEnabled=true;vertexColorRedMask=0;vertexColorGreenMask=0;vertexColorBlueMask=0;vertexColorAlphaMask=0;specularModel=SchlickGGX;diffuseModel=Burley;diffuseMap=

      Unknown macro: {;;;;;}

      ;emissiveMap=

      ;specularMap=

      Unknown macro: {;;;;;}

      ;baseColorMap=

      Unknown macro: {enabled=true;;;identity=true;;}

      ;bumpMap=

      ;specularAmountMap=

      Unknown macro: {;;;;;}

      ;normalMap=

      ;clearcoatNormalMap=

      Unknown macro: {;;;;;}

      ;opacityMap=

      ;roughnessMap=

      Unknown macro: {;;;;;}

      ;metalnessMap=

      ;occlusionMap=

      Unknown macro: {;;;;;}

      ;translucencyMap=

      ;heightMap=

      Unknown macro: {;;;;;}

      ;clearcoatMap=

      ;clearcoatRoughnessMap=

      Unknown macro: {enabled=true;;;identity=true;;}

      ;transmissionMap=

      Unknown macro: {;;;;;}

      ;thicknessMap=

      ;opacityMap_channel=R;roughnessMap_channel=R;metalnessMap_channel=R;occlusionMap_channel=R;translucencyMap_channel=R;heightMap_channel=R;clearcoatMap_channel=R;clearcoatRoughnessMap_channel=R;transmissionMap_channel=R;thicknessMap_channel=R;baseColorMap_channel=R;specularAmountMap_channel=R;emissiveMap_channel=R;boneCount=0;isDoubleSided=true;alphaMode=Opaque;vertexAttributes=

      Unknown macro: {position=true;normal=true;texcoord0=true;;;;;;}

      ;targetCount=0;targetPositionOffset=255;targetNormalOffset=255;targetTangentOffset=255;targetBinormalOffset=255;targetTexCoord0Offset=255;targetTexCoord1Offset=255;targetColorOffset=255;metallicRoughnessEnabled=true;debugMode=0;viewCount=1;orderIndependentTransparency=0;shadowSoftness=Hard"

      /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/15.2.1/../../../../include/c++/15.2.1/bits/shared_ptr_base.h:1344: Tp *std::shared_ptr_deref(_Tp *) [_Tp = QSSGRhiShaderPipeline]: Assertion '_p != nullptr' failed.

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

            janichol Andy Nichols
            jokarlss Jonas Karlsson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes