Skip to content

Commit 67dfc9b

Browse files
authored
Propagate the MemoryQualifierSetDecoration (shader-slang#6315)
Propagate the kIROp_MemoryQualifierSetDecoration memory decorations when converting from structures to flat global resources struct Tex { globallycoherent float4 bias = { 0.1, 0.3, 0.9, 1.5}; }; uniform Tex gTex; should have the following code generated in GLSL: coherent layout(rgba32f) layout(binding = 2) uniform image2D globalParams_gTex_tex_0; This closes shader-slang#6079
1 parent 57b09a8 commit 67dfc9b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/slang/slang-ir-legalize-types.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -2711,6 +2711,7 @@ static void cloneDecorationToVar(IRInst* srcInst, IRInst* varInst)
27112711
case kIROp_FormatDecoration:
27122712
case kIROp_UserTypeNameDecoration:
27132713
case kIROp_SemanticDecoration:
2714+
case kIROp_MemoryQualifierSetDecoration:
27142715
cloneDecoration(decoration, varInst);
27152716
break;
27162717

0 commit comments

Comments
 (0)