mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-08 11:30:06 +00:00
33c7e30860
It is invalid if the same decoration is applied to the same id multiple times. This adds a check before adding a decoration that the decoration is not already in the list. If it is, then the duplicate is not added. Fixes #3627
160 lines
11 KiB
Plaintext
160 lines
11 KiB
Plaintext
hlsl.cbuffer-offsets.comp
|
|
Shader version: 500
|
|
local_size = (1, 1, 1)
|
|
0:? Sequence
|
|
0:43 Function Definition: @main( ( temp void)
|
|
0:43 Function Parameters:
|
|
0:43 Function Definition: main( ( temp void)
|
|
0:43 Function Parameters:
|
|
0:? Sequence
|
|
0:43 Function Call: @main( ( temp void)
|
|
0:? Linker Objects
|
|
0:? 'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform float f1, layout( row_major std140) uniform 3-element array of 3-component vector of float f3a3, layout( row_major std140) uniform float f2, layout( row_major std140) uniform float f3, layout( row_major std140) uniform 1X1 matrix of float m11, layout( row_major std140) uniform 1X2 matrix of float m12, layout( row_major std140) uniform 2X1 matrix of float m21, layout( row_major std140) uniform 2X2 matrix of float m22, layout( row_major std140) uniform 3X3 matrix of float m33, layout( row_major std140) uniform float f4, layout( row_major std140) uniform 3X4 matrix of float m34, layout( row_major std140) uniform float f5, layout( row_major std140) uniform 4X3 matrix of float m43, layout( row_major std140) uniform float f6, layout( column_major std140) uniform 1X1 matrix of float rm11, layout( column_major std140) uniform 1X2 matrix of float rm12, layout( column_major std140) uniform 2X1 matrix of float rm21, layout( column_major std140) uniform 2X2 matrix of float rm22, layout( column_major std140) uniform 3X3 matrix of float rm33, layout( row_major std140) uniform float f7, layout( column_major std140) uniform 3X4 matrix of float rm34, layout( row_major std140) uniform float f8, layout( column_major std140) uniform 4X3 matrix of float rm43, layout( row_major std140) uniform float f9, layout( row_major std140) uniform 3-element array of float f1a3, layout( row_major std140) uniform float f10})
|
|
|
|
|
|
Linked compute stage:
|
|
|
|
|
|
Shader version: 500
|
|
local_size = (1, 1, 1)
|
|
0:? Sequence
|
|
0:43 Function Definition: @main( ( temp void)
|
|
0:43 Function Parameters:
|
|
0:43 Function Definition: main( ( temp void)
|
|
0:43 Function Parameters:
|
|
0:? Sequence
|
|
0:43 Function Call: @main( ( temp void)
|
|
0:? Linker Objects
|
|
0:? 'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform float f1, layout( row_major std140) uniform 3-element array of 3-component vector of float f3a3, layout( row_major std140) uniform float f2, layout( row_major std140) uniform float f3, layout( row_major std140) uniform 1X1 matrix of float m11, layout( row_major std140) uniform 1X2 matrix of float m12, layout( row_major std140) uniform 2X1 matrix of float m21, layout( row_major std140) uniform 2X2 matrix of float m22, layout( row_major std140) uniform 3X3 matrix of float m33, layout( row_major std140) uniform float f4, layout( row_major std140) uniform 3X4 matrix of float m34, layout( row_major std140) uniform float f5, layout( row_major std140) uniform 4X3 matrix of float m43, layout( row_major std140) uniform float f6, layout( column_major std140) uniform 1X1 matrix of float rm11, layout( column_major std140) uniform 1X2 matrix of float rm12, layout( column_major std140) uniform 2X1 matrix of float rm21, layout( column_major std140) uniform 2X2 matrix of float rm22, layout( column_major std140) uniform 3X3 matrix of float rm33, layout( row_major std140) uniform float f7, layout( column_major std140) uniform 3X4 matrix of float rm34, layout( row_major std140) uniform float f8, layout( column_major std140) uniform 4X3 matrix of float rm43, layout( row_major std140) uniform float f9, layout( row_major std140) uniform 3-element array of float f1a3, layout( row_major std140) uniform float f10})
|
|
|
|
Validation failed
|
|
// Module Version 10000
|
|
// Generated by (magic number): 8000b
|
|
// Id's are bound by 28
|
|
|
|
Capability Shader
|
|
1: ExtInstImport "GLSL.std.450"
|
|
MemoryModel Logical GLSL450
|
|
EntryPoint GLCompute 4 "main"
|
|
ExecutionMode 4 LocalSize 1 1 1
|
|
Source HLSL 500
|
|
Name 4 "main"
|
|
Name 6 "@main("
|
|
Name 25 "CB"
|
|
MemberName 25(CB) 0 "f1"
|
|
MemberName 25(CB) 1 "f3a3"
|
|
MemberName 25(CB) 2 "f2"
|
|
MemberName 25(CB) 3 "f3"
|
|
MemberName 25(CB) 4 "m11"
|
|
MemberName 25(CB) 5 "m12"
|
|
MemberName 25(CB) 6 "m21"
|
|
MemberName 25(CB) 7 "m22"
|
|
MemberName 25(CB) 8 "m33"
|
|
MemberName 25(CB) 9 "f4"
|
|
MemberName 25(CB) 10 "m34"
|
|
MemberName 25(CB) 11 "f5"
|
|
MemberName 25(CB) 12 "m43"
|
|
MemberName 25(CB) 13 "f6"
|
|
MemberName 25(CB) 14 "rm11"
|
|
MemberName 25(CB) 15 "rm12"
|
|
MemberName 25(CB) 16 "rm21"
|
|
MemberName 25(CB) 17 "rm22"
|
|
MemberName 25(CB) 18 "rm33"
|
|
MemberName 25(CB) 19 "f7"
|
|
MemberName 25(CB) 20 "rm34"
|
|
MemberName 25(CB) 21 "f8"
|
|
MemberName 25(CB) 22 "rm43"
|
|
MemberName 25(CB) 23 "f9"
|
|
MemberName 25(CB) 24 "f1a3"
|
|
MemberName 25(CB) 25 "f10"
|
|
Name 27 ""
|
|
Decorate 13 ArrayStride 16
|
|
Decorate 24 ArrayStride 16
|
|
Decorate 25(CB) Block
|
|
MemberDecorate 25(CB) 0 Offset 0
|
|
MemberDecorate 25(CB) 1 Offset 16
|
|
MemberDecorate 25(CB) 2 Offset 60
|
|
MemberDecorate 25(CB) 3 Offset 64
|
|
MemberDecorate 25(CB) 4 RowMajor
|
|
MemberDecorate 25(CB) 4 MatrixStride 16
|
|
MemberDecorate 25(CB) 4 Offset 68
|
|
MemberDecorate 25(CB) 5 RowMajor
|
|
MemberDecorate 25(CB) 5 MatrixStride 16
|
|
MemberDecorate 25(CB) 5 Offset 80
|
|
MemberDecorate 25(CB) 6 RowMajor
|
|
MemberDecorate 25(CB) 6 MatrixStride 16
|
|
MemberDecorate 25(CB) 6 Offset 100
|
|
MemberDecorate 25(CB) 7 RowMajor
|
|
MemberDecorate 25(CB) 7 MatrixStride 16
|
|
MemberDecorate 25(CB) 7 Offset 112
|
|
MemberDecorate 25(CB) 8 RowMajor
|
|
MemberDecorate 25(CB) 8 MatrixStride 16
|
|
MemberDecorate 25(CB) 8 Offset 144
|
|
MemberDecorate 25(CB) 9 Offset 188
|
|
MemberDecorate 25(CB) 10 RowMajor
|
|
MemberDecorate 25(CB) 10 MatrixStride 16
|
|
MemberDecorate 25(CB) 10 Offset 192
|
|
MemberDecorate 25(CB) 11 Offset 252
|
|
MemberDecorate 25(CB) 12 RowMajor
|
|
MemberDecorate 25(CB) 12 MatrixStride 16
|
|
MemberDecorate 25(CB) 12 Offset 256
|
|
MemberDecorate 25(CB) 13 Offset 304
|
|
MemberDecorate 25(CB) 14 ColMajor
|
|
MemberDecorate 25(CB) 14 MatrixStride 16
|
|
MemberDecorate 25(CB) 14 Offset 308
|
|
MemberDecorate 25(CB) 15 ColMajor
|
|
MemberDecorate 25(CB) 15 MatrixStride 16
|
|
MemberDecorate 25(CB) 15 Offset 312
|
|
MemberDecorate 25(CB) 16 ColMajor
|
|
MemberDecorate 25(CB) 16 MatrixStride 16
|
|
MemberDecorate 25(CB) 16 Offset 320
|
|
MemberDecorate 25(CB) 17 ColMajor
|
|
MemberDecorate 25(CB) 17 MatrixStride 16
|
|
MemberDecorate 25(CB) 17 Offset 352
|
|
MemberDecorate 25(CB) 18 ColMajor
|
|
MemberDecorate 25(CB) 18 MatrixStride 16
|
|
MemberDecorate 25(CB) 18 Offset 384
|
|
MemberDecorate 25(CB) 19 Offset 428
|
|
MemberDecorate 25(CB) 20 ColMajor
|
|
MemberDecorate 25(CB) 20 MatrixStride 16
|
|
MemberDecorate 25(CB) 20 Offset 432
|
|
MemberDecorate 25(CB) 21 Offset 480
|
|
MemberDecorate 25(CB) 22 ColMajor
|
|
MemberDecorate 25(CB) 22 MatrixStride 16
|
|
MemberDecorate 25(CB) 22 Offset 496
|
|
MemberDecorate 25(CB) 23 Offset 556
|
|
MemberDecorate 25(CB) 24 Offset 560
|
|
MemberDecorate 25(CB) 25 Offset 596
|
|
Decorate 27 Binding 0
|
|
Decorate 27 DescriptorSet 0
|
|
2: TypeVoid
|
|
3: TypeFunction 2
|
|
9: TypeFloat 32
|
|
10: TypeVector 9(float) 3
|
|
11: TypeInt 32 0
|
|
12: 11(int) Constant 3
|
|
13: TypeArray 10(fvec3) 12
|
|
14: TypeVector 9(float) 1
|
|
15: TypeMatrix 14(fvec) 1
|
|
16: TypeVector 9(float) 2
|
|
17: TypeMatrix 16(fvec2) 1
|
|
18: TypeMatrix 14(fvec) 2
|
|
19: TypeMatrix 16(fvec2) 2
|
|
20: TypeMatrix 10(fvec3) 3
|
|
21: TypeVector 9(float) 4
|
|
22: TypeMatrix 21(fvec4) 3
|
|
23: TypeMatrix 10(fvec3) 4
|
|
24: TypeArray 9(float) 12
|
|
25(CB): TypeStruct 9(float) 13 9(float) 9(float) 15 17 18 19 20 9(float) 22 9(float) 23 9(float) 15 17 18 19 20 9(float) 22 9(float) 23 9(float) 24 9(float)
|
|
26: TypePointer Uniform 25(CB)
|
|
27: 26(ptr) Variable Uniform
|
|
4(main): 2 Function None 3
|
|
5: Label
|
|
8: 2 FunctionCall 6(@main()
|
|
Return
|
|
FunctionEnd
|
|
6(@main(): 2 Function None 3
|
|
7: Label
|
|
Return
|
|
FunctionEnd
|