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:
@@ -6219,7 +6219,7 @@ local_size = (32, 16, 1)
|
||||
MemberDecorate 20(Types) 3 Offset 64
|
||||
Decorate 21 ArrayStride 96
|
||||
MemberDecorate 22(data) 0 Offset 0
|
||||
Decorate 22(data) BufferBlock
|
||||
Decorate 22(data) Block
|
||||
Decorate 24(data) DescriptorSet 0
|
||||
Decorate 24(data) Binding 0
|
||||
Decorate 986(dti) BuiltIn GlobalInvocationId
|
||||
@@ -6239,30 +6239,30 @@ local_size = (32, 16, 1)
|
||||
20(Types): TypeStruct 13(ivec4) 15(ivec4) 17(fvec4) 19(f64vec4)
|
||||
21: TypeRuntimeArray 20(Types)
|
||||
22(data): TypeStruct 21
|
||||
23: TypePointer Uniform 22(data)
|
||||
24(data): 23(ptr) Variable Uniform
|
||||
23: TypePointer StorageBuffer 22(data)
|
||||
24(data): 23(ptr) Variable StorageBuffer
|
||||
25: 14(int) Constant 0
|
||||
26: 6(int) Constant 0
|
||||
27: TypePointer Function 6(int)
|
||||
32: TypePointer Uniform 13(ivec4)
|
||||
32: TypePointer StorageBuffer 13(ivec4)
|
||||
35: 6(int) Constant 3
|
||||
42: TypePointer Uniform 6(int)
|
||||
42: TypePointer StorageBuffer 6(int)
|
||||
51: TypeVector 6(int) 2
|
||||
58: 6(int) Constant 1
|
||||
73: 6(int) Constant 2
|
||||
78: 14(int) Constant 1
|
||||
81: TypePointer Uniform 15(ivec4)
|
||||
90: TypePointer Uniform 14(int)
|
||||
81: TypePointer StorageBuffer 15(ivec4)
|
||||
90: TypePointer StorageBuffer 14(int)
|
||||
99: TypeVector 14(int) 2
|
||||
112: TypeVector 14(int) 3
|
||||
125: 14(int) Constant 2
|
||||
128: TypePointer Uniform 17(fvec4)
|
||||
137: TypePointer Uniform 16(float)
|
||||
128: TypePointer StorageBuffer 17(fvec4)
|
||||
137: TypePointer StorageBuffer 16(float)
|
||||
146: TypeVector 16(float) 2
|
||||
159: TypeVector 16(float) 3
|
||||
172: 14(int) Constant 3
|
||||
175: TypePointer Uniform 19(f64vec4)
|
||||
184: TypePointer Uniform 18(float64_t)
|
||||
175: TypePointer StorageBuffer 19(f64vec4)
|
||||
184: TypePointer StorageBuffer 18(float64_t)
|
||||
193: TypeVector 18(float64_t) 2
|
||||
206: TypeVector 18(float64_t) 3
|
||||
979: TypeBool
|
||||
|
||||
Reference in New Issue
Block a user