Move check if useStorageBuffer needs to be set.
From TParseContext used only by GLSL, to TParseContextBase inherited by both GLSL and HLSL paths. It caused compilations from HLSL to SPIR-V 1.3+ to use BufferBlock decoration which is no longer valid.
This commit is contained in:
@@ -79,7 +79,7 @@ local_size = (32, 16, 1)
|
||||
Name 21 "@gl_SubgroupSize"
|
||||
Decorate 9 ArrayStride 4
|
||||
MemberDecorate 10(data) 0 Offset 0
|
||||
Decorate 10(data) BufferBlock
|
||||
Decorate 10(data) Block
|
||||
Decorate 12(data) DescriptorSet 0
|
||||
Decorate 12(data) Binding 0
|
||||
Decorate 16(@gl_SubgroupInvocationID) BuiltIn SubgroupLocalInvocationId
|
||||
@@ -89,8 +89,8 @@ local_size = (32, 16, 1)
|
||||
8: TypeInt 32 0
|
||||
9: TypeRuntimeArray 8(int)
|
||||
10(data): TypeStruct 9
|
||||
11: TypePointer Uniform 10(data)
|
||||
12(data): 11(ptr) Variable Uniform
|
||||
11: TypePointer StorageBuffer 10(data)
|
||||
12(data): 11(ptr) Variable StorageBuffer
|
||||
13: TypeInt 32 1
|
||||
14: 13(int) Constant 0
|
||||
15: TypePointer Input 8(int)
|
||||
@@ -99,7 +99,7 @@ local_size = (32, 16, 1)
|
||||
19: 8(int) Constant 3
|
||||
21(@gl_SubgroupSize): 15(ptr) Variable Input
|
||||
23: 8(int) Constant 0
|
||||
25: TypePointer Uniform 8(int)
|
||||
25: TypePointer StorageBuffer 8(int)
|
||||
4(CSMain): 2 Function None 3
|
||||
5: Label
|
||||
27: 2 FunctionCall 6(@CSMain()
|
||||
|
||||
Reference in New Issue
Block a user