HLSL Tests: Tests for previous commit, to make it easier to see what's changing.
This commit is contained in:
parent
6dbc0a7a33
commit
4e55988a47
119 changed files with 8321 additions and 5503 deletions
|
|
@ -2,7 +2,7 @@ hlsl.matrixindex.frag
|
|||
Shader version: 450
|
||||
gl_FragCoord origin is upper left
|
||||
0:? Sequence
|
||||
0:10 Function Definition: main( (global structure{temp 4-component vector of float Color})
|
||||
0:10 Function Definition: main( (temp structure{temp 4-component vector of float Color})
|
||||
0:10 Function Parameters:
|
||||
0:? Sequence
|
||||
0:22 Sequence
|
||||
|
|
@ -94,13 +94,22 @@ gl_FragCoord origin is upper left
|
|||
0:43 23.000000
|
||||
0:43 24.000000
|
||||
0:43 25.000000
|
||||
0:43 'idx' (uniform int)
|
||||
0:43 idx: direct index for structure (layout(offset=0 ) uniform int)
|
||||
0:43 'anon@0' (layout(row_major std140 ) uniform block{layout(offset=0 ) uniform int idx, layout(offset=16 ) uniform 3X2 matrix of float um})
|
||||
0:43 Constant:
|
||||
0:43 0 (const uint)
|
||||
0:44 Sequence
|
||||
0:44 move second child to first child (temp 2-component vector of float)
|
||||
0:44 'r0c' (temp 2-component vector of float)
|
||||
0:44 indirect index (temp 2-component vector of float)
|
||||
0:44 'um' (uniform 3X2 matrix of float)
|
||||
0:44 'idx' (uniform int)
|
||||
0:44 indirect index (layout(offset=16 ) temp 2-component vector of float)
|
||||
0:44 um: direct index for structure (layout(offset=16 ) uniform 3X2 matrix of float)
|
||||
0:44 'anon@0' (layout(row_major std140 ) uniform block{layout(offset=0 ) uniform int idx, layout(offset=16 ) uniform 3X2 matrix of float um})
|
||||
0:44 Constant:
|
||||
0:44 1 (const uint)
|
||||
0:44 idx: direct index for structure (layout(offset=0 ) uniform int)
|
||||
0:44 'anon@0' (layout(row_major std140 ) uniform block{layout(offset=0 ) uniform int idx, layout(offset=16 ) uniform 3X2 matrix of float um})
|
||||
0:44 Constant:
|
||||
0:44 0 (const uint)
|
||||
0:47 move second child to first child (temp 4-component vector of float)
|
||||
0:47 Color: direct index for structure (temp 4-component vector of float)
|
||||
0:47 'psout' (temp structure{temp 4-component vector of float Color})
|
||||
|
|
@ -118,9 +127,8 @@ gl_FragCoord origin is upper left
|
|||
0:48 0 (const int)
|
||||
0:48 Branch: Return
|
||||
0:? Linker Objects
|
||||
0:? 'idx' (uniform int)
|
||||
0:? 'um' (uniform 3X2 matrix of float)
|
||||
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
|
||||
0:? 'anon@0' (uniform block{layout(offset=0 ) uniform int idx, layout(offset=16 ) uniform 3X2 matrix of float um})
|
||||
|
||||
|
||||
Linked fragment stage:
|
||||
|
|
@ -129,7 +137,7 @@ Linked fragment stage:
|
|||
Shader version: 450
|
||||
gl_FragCoord origin is upper left
|
||||
0:? Sequence
|
||||
0:10 Function Definition: main( (global structure{temp 4-component vector of float Color})
|
||||
0:10 Function Definition: main( (temp structure{temp 4-component vector of float Color})
|
||||
0:10 Function Parameters:
|
||||
0:? Sequence
|
||||
0:22 Sequence
|
||||
|
|
@ -221,13 +229,22 @@ gl_FragCoord origin is upper left
|
|||
0:43 23.000000
|
||||
0:43 24.000000
|
||||
0:43 25.000000
|
||||
0:43 'idx' (uniform int)
|
||||
0:43 idx: direct index for structure (layout(offset=0 ) uniform int)
|
||||
0:43 'anon@0' (layout(row_major std140 ) uniform block{layout(offset=0 ) uniform int idx, layout(offset=16 ) uniform 3X2 matrix of float um})
|
||||
0:43 Constant:
|
||||
0:43 0 (const uint)
|
||||
0:44 Sequence
|
||||
0:44 move second child to first child (temp 2-component vector of float)
|
||||
0:44 'r0c' (temp 2-component vector of float)
|
||||
0:44 indirect index (temp 2-component vector of float)
|
||||
0:44 'um' (uniform 3X2 matrix of float)
|
||||
0:44 'idx' (uniform int)
|
||||
0:44 indirect index (layout(offset=16 ) temp 2-component vector of float)
|
||||
0:44 um: direct index for structure (layout(offset=16 ) uniform 3X2 matrix of float)
|
||||
0:44 'anon@0' (layout(row_major std140 ) uniform block{layout(offset=0 ) uniform int idx, layout(offset=16 ) uniform 3X2 matrix of float um})
|
||||
0:44 Constant:
|
||||
0:44 1 (const uint)
|
||||
0:44 idx: direct index for structure (layout(offset=0 ) uniform int)
|
||||
0:44 'anon@0' (layout(row_major std140 ) uniform block{layout(offset=0 ) uniform int idx, layout(offset=16 ) uniform 3X2 matrix of float um})
|
||||
0:44 Constant:
|
||||
0:44 0 (const uint)
|
||||
0:47 move second child to first child (temp 4-component vector of float)
|
||||
0:47 Color: direct index for structure (temp 4-component vector of float)
|
||||
0:47 'psout' (temp structure{temp 4-component vector of float Color})
|
||||
|
|
@ -245,18 +262,17 @@ gl_FragCoord origin is upper left
|
|||
0:48 0 (const int)
|
||||
0:48 Branch: Return
|
||||
0:? Linker Objects
|
||||
0:? 'idx' (uniform int)
|
||||
0:? 'um' (uniform 3X2 matrix of float)
|
||||
0:? 'Color' (layout(location=0 ) out 4-component vector of float)
|
||||
0:? 'anon@0' (uniform block{layout(offset=0 ) uniform int idx, layout(offset=16 ) uniform 3X2 matrix of float um})
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 75
|
||||
// Id's are bound by 78
|
||||
|
||||
Capability Shader
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Fragment 4 "main" 71
|
||||
EntryPoint Fragment 4 "main" 74
|
||||
ExecutionMode 4 OriginUpperLeft
|
||||
Name 4 "main"
|
||||
Name 8 "e1_00"
|
||||
|
|
@ -275,15 +291,23 @@ gl_FragCoord origin is upper left
|
|||
Name 36 "r1a"
|
||||
Name 38 "r2a"
|
||||
Name 40 "r0b"
|
||||
Name 48 "idx"
|
||||
Name 51 "indexable"
|
||||
Name 54 "r0c"
|
||||
Name 56 "um"
|
||||
Name 62 "PS_OUTPUT"
|
||||
MemberName 62(PS_OUTPUT) 0 "Color"
|
||||
Name 64 "psout"
|
||||
Name 71 "Color"
|
||||
Decorate 71(Color) Location 0
|
||||
Name 47 "$Global"
|
||||
MemberName 47($Global) 0 "idx"
|
||||
MemberName 47($Global) 1 "um"
|
||||
Name 49 ""
|
||||
Name 55 "indexable"
|
||||
Name 58 "r0c"
|
||||
Name 66 "PS_OUTPUT"
|
||||
MemberName 66(PS_OUTPUT) 0 "Color"
|
||||
Name 68 "psout"
|
||||
Name 74 "Color"
|
||||
MemberDecorate 47($Global) 0 Offset 0
|
||||
MemberDecorate 47($Global) 1 RowMajor
|
||||
MemberDecorate 47($Global) 1 Offset 16
|
||||
MemberDecorate 47($Global) 1 MatrixStride 16
|
||||
Decorate 47($Global) Block
|
||||
Decorate 49 DescriptorSet 0
|
||||
Decorate 74(Color) Location 0
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
|
|
@ -311,19 +335,20 @@ gl_FragCoord origin is upper left
|
|||
44: 32(fvec2) ConstantComposite 29 31
|
||||
45: 41 ConstantComposite 42 43 44
|
||||
46: TypeInt 32 1
|
||||
47: TypePointer UniformConstant 46(int)
|
||||
48(idx): 47(ptr) Variable UniformConstant
|
||||
50: TypePointer Function 41
|
||||
55: TypePointer UniformConstant 41
|
||||
56(um): 55(ptr) Variable UniformConstant
|
||||
58: TypePointer UniformConstant 32(fvec2)
|
||||
61: TypeVector 6(float) 4
|
||||
62(PS_OUTPUT): TypeStruct 61(fvec4)
|
||||
63: TypePointer Function 62(PS_OUTPUT)
|
||||
65: 46(int) Constant 0
|
||||
68: TypePointer Function 61(fvec4)
|
||||
70: TypePointer Output 61(fvec4)
|
||||
71(Color): 70(ptr) Variable Output
|
||||
47($Global): TypeStruct 46(int) 41
|
||||
48: TypePointer Uniform 47($Global)
|
||||
49: 48(ptr) Variable Uniform
|
||||
50: 46(int) Constant 0
|
||||
51: TypePointer Uniform 46(int)
|
||||
54: TypePointer Function 41
|
||||
59: 46(int) Constant 1
|
||||
62: TypePointer Uniform 32(fvec2)
|
||||
65: TypeVector 6(float) 4
|
||||
66(PS_OUTPUT): TypeStruct 65(fvec4)
|
||||
67: TypePointer Function 66(PS_OUTPUT)
|
||||
71: TypePointer Function 65(fvec4)
|
||||
73: TypePointer Output 65(fvec4)
|
||||
74(Color): 73(ptr) Variable Output
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
8(e1_00): 7(ptr) Variable Function
|
||||
|
|
@ -342,9 +367,9 @@ gl_FragCoord origin is upper left
|
|||
36(r1a): 33(ptr) Variable Function
|
||||
38(r2a): 33(ptr) Variable Function
|
||||
40(r0b): 33(ptr) Variable Function
|
||||
51(indexable): 50(ptr) Variable Function
|
||||
54(r0c): 33(ptr) Variable Function
|
||||
64(psout): 63(ptr) Variable Function
|
||||
55(indexable): 54(ptr) Variable Function
|
||||
58(r0c): 33(ptr) Variable Function
|
||||
68(psout): 67(ptr) Variable Function
|
||||
Store 8(e1_00) 9
|
||||
Store 10(e1_01) 11
|
||||
Store 12(e1_10) 13
|
||||
|
|
@ -360,21 +385,23 @@ gl_FragCoord origin is upper left
|
|||
Store 34(r0a) 35
|
||||
Store 36(r1a) 37
|
||||
Store 38(r2a) 39
|
||||
49: 46(int) Load 48(idx)
|
||||
Store 51(indexable) 45
|
||||
52: 33(ptr) AccessChain 51(indexable) 49
|
||||
53: 32(fvec2) Load 52
|
||||
Store 40(r0b) 53
|
||||
57: 46(int) Load 48(idx)
|
||||
59: 58(ptr) AccessChain 56(um) 57
|
||||
60: 32(fvec2) Load 59
|
||||
Store 54(r0c) 60
|
||||
66: 6(float) Load 26(e2_11)
|
||||
67: 61(fvec4) CompositeConstruct 66 66 66 66
|
||||
69: 68(ptr) AccessChain 64(psout) 65
|
||||
Store 69 67
|
||||
72: 68(ptr) AccessChain 64(psout) 65
|
||||
73: 61(fvec4) Load 72
|
||||
Store 71(Color) 73
|
||||
52: 51(ptr) AccessChain 49 50
|
||||
53: 46(int) Load 52
|
||||
Store 55(indexable) 45
|
||||
56: 33(ptr) AccessChain 55(indexable) 53
|
||||
57: 32(fvec2) Load 56
|
||||
Store 40(r0b) 57
|
||||
60: 51(ptr) AccessChain 49 50
|
||||
61: 46(int) Load 60
|
||||
63: 62(ptr) AccessChain 49 59 61
|
||||
64: 32(fvec2) Load 63
|
||||
Store 58(r0c) 64
|
||||
69: 6(float) Load 26(e2_11)
|
||||
70: 65(fvec4) CompositeConstruct 69 69 69 69
|
||||
72: 71(ptr) AccessChain 68(psout) 50
|
||||
Store 72 70
|
||||
75: 71(ptr) AccessChain 68(psout) 50
|
||||
76: 65(fvec4) Load 75
|
||||
Store 74(Color) 76
|
||||
Return
|
||||
FunctionEnd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue