diff options
| author | Tony (Atanas) Zlatinski <zlatinski@gmail.com> | 2025-02-08 11:04:23 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-08 17:04:23 +0000 |
| commit | 67dfc9b3e62d859f62d2aa5c600fea7e8d6ae240 (patch) | |
| tree | 0b5c3a0f44d7ff90e48a28db80380897042c3bf9 | |
| parent | 57b09a8986668626c37055e431fa0ac6449d7214 (diff) | |
Propagate the MemoryQualifierSetDecoration (#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 #6079
| -rw-r--r-- | source/slang/slang-ir-legalize-types.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/slang/slang-ir-legalize-types.cpp b/source/slang/slang-ir-legalize-types.cpp index a9d9d65f3..a3e47fd55 100644 --- a/source/slang/slang-ir-legalize-types.cpp +++ b/source/slang/slang-ir-legalize-types.cpp @@ -2711,6 +2711,7 @@ static void cloneDecorationToVar(IRInst* srcInst, IRInst* varInst) case kIROp_FormatDecoration: case kIROp_UserTypeNameDecoration: case kIROp_SemanticDecoration: + case kIROp_MemoryQualifierSetDecoration: cloneDecoration(decoration, varInst); break; |
