HLSL Tests: Tests for previous commit, to make it easier to see what's changing.
This commit is contained in:
@@ -2,7 +2,7 @@ hlsl.array.frag
|
||||
Shader version: 450
|
||||
gl_FragCoord origin is upper left
|
||||
0:? Sequence
|
||||
0:8 Function Definition: PixelShaderFunction(i1;vf4[3]; (global 4-component vector of float)
|
||||
0:8 Function Definition: PixelShaderFunction(i1;vf4[3]; (temp 4-component vector of float)
|
||||
0:8 Function Parameters:
|
||||
0:8 'i' (layout(location=0 ) in int)
|
||||
0:8 'input' (layout(location=1 ) in 3-element array of 4-component vector of float)
|
||||
@@ -16,12 +16,18 @@ gl_FragCoord origin is upper left
|
||||
0:10 add (temp 4-component vector of float)
|
||||
0:10 add (temp 4-component vector of float)
|
||||
0:10 add (temp 4-component vector of float)
|
||||
0:10 direct index (temp 4-component vector of float)
|
||||
0:10 'a' (global 4-element array of 4-component vector of float)
|
||||
0:10 direct index (layout(offset=0 ) temp 4-component vector of float)
|
||||
0:10 a: direct index for structure (layout(offset=0 ) uniform 4-element array of 4-component vector of float)
|
||||
0:10 'anon@0' (layout(row_major std140 ) uniform block{layout(offset=0 ) uniform 4-element array of 4-component vector of float a, layout(offset=64 ) uniform 11-element array of structure{temp 7-element array of 4-component vector of float m} s})
|
||||
0:10 Constant:
|
||||
0:10 0 (const uint)
|
||||
0:10 Constant:
|
||||
0:10 1 (const int)
|
||||
0:10 indirect index (temp 4-component vector of float)
|
||||
0:10 'a' (global 4-element array of 4-component vector of float)
|
||||
0:10 indirect index (layout(offset=0 ) temp 4-component vector of float)
|
||||
0:10 a: direct index for structure (layout(offset=0 ) uniform 4-element array of 4-component vector of float)
|
||||
0:10 'anon@0' (layout(row_major std140 ) uniform block{layout(offset=0 ) uniform 4-element array of 4-component vector of float a, layout(offset=64 ) uniform 11-element array of structure{temp 7-element array of 4-component vector of float m} s})
|
||||
0:10 Constant:
|
||||
0:10 0 (const uint)
|
||||
0:10 'i' (layout(location=0 ) in int)
|
||||
0:10 direct index (layout(location=1 ) temp 4-component vector of float)
|
||||
0:10 'input' (layout(location=1 ) in 3-element array of 4-component vector of float)
|
||||
@@ -39,17 +45,19 @@ gl_FragCoord origin is upper left
|
||||
0:10 'i' (layout(location=0 ) in int)
|
||||
0:10 indirect index (temp 4-component vector of float)
|
||||
0:10 m: direct index for structure (temp 7-element array of 4-component vector of float)
|
||||
0:10 indirect index (temp structure{temp 7-element array of 4-component vector of float m})
|
||||
0:10 's' (global 11-element array of structure{temp 7-element array of 4-component vector of float m})
|
||||
0:10 indirect index (layout(offset=64 ) temp structure{temp 7-element array of 4-component vector of float m})
|
||||
0:10 s: direct index for structure (layout(offset=64 ) uniform 11-element array of structure{temp 7-element array of 4-component vector of float m})
|
||||
0:10 'anon@0' (layout(row_major std140 ) uniform block{layout(offset=0 ) uniform 4-element array of 4-component vector of float a, layout(offset=64 ) uniform 11-element array of structure{temp 7-element array of 4-component vector of float m} s})
|
||||
0:10 Constant:
|
||||
0:10 1 (const uint)
|
||||
0:10 'i' (layout(location=0 ) in int)
|
||||
0:10 Constant:
|
||||
0:10 0 (const int)
|
||||
0:10 'i' (layout(location=0 ) in int)
|
||||
0:10 Branch: Return
|
||||
0:? Linker Objects
|
||||
0:? 'a' (global 4-element array of 4-component vector of float)
|
||||
0:? 's' (global 11-element array of structure{temp 7-element array of 4-component vector of float m})
|
||||
0:? '@entryPointOutput' (layout(location=0 ) out 4-component vector of float)
|
||||
0:? 'anon@0' (uniform block{layout(offset=0 ) uniform 4-element array of 4-component vector of float a, layout(offset=64 ) uniform 11-element array of structure{temp 7-element array of 4-component vector of float m} s})
|
||||
0:? 'i' (layout(location=0 ) in int)
|
||||
0:? 'input' (layout(location=1 ) in 3-element array of 4-component vector of float)
|
||||
|
||||
@@ -60,7 +68,7 @@ Linked fragment stage:
|
||||
Shader version: 450
|
||||
gl_FragCoord origin is upper left
|
||||
0:? Sequence
|
||||
0:8 Function Definition: PixelShaderFunction(i1;vf4[3]; (global 4-component vector of float)
|
||||
0:8 Function Definition: PixelShaderFunction(i1;vf4[3]; (temp 4-component vector of float)
|
||||
0:8 Function Parameters:
|
||||
0:8 'i' (layout(location=0 ) in int)
|
||||
0:8 'input' (layout(location=1 ) in 3-element array of 4-component vector of float)
|
||||
@@ -74,12 +82,18 @@ gl_FragCoord origin is upper left
|
||||
0:10 add (temp 4-component vector of float)
|
||||
0:10 add (temp 4-component vector of float)
|
||||
0:10 add (temp 4-component vector of float)
|
||||
0:10 direct index (temp 4-component vector of float)
|
||||
0:10 'a' (global 4-element array of 4-component vector of float)
|
||||
0:10 direct index (layout(offset=0 ) temp 4-component vector of float)
|
||||
0:10 a: direct index for structure (layout(offset=0 ) uniform 4-element array of 4-component vector of float)
|
||||
0:10 'anon@0' (layout(row_major std140 ) uniform block{layout(offset=0 ) uniform 4-element array of 4-component vector of float a, layout(offset=64 ) uniform 11-element array of structure{temp 7-element array of 4-component vector of float m} s})
|
||||
0:10 Constant:
|
||||
0:10 0 (const uint)
|
||||
0:10 Constant:
|
||||
0:10 1 (const int)
|
||||
0:10 indirect index (temp 4-component vector of float)
|
||||
0:10 'a' (global 4-element array of 4-component vector of float)
|
||||
0:10 indirect index (layout(offset=0 ) temp 4-component vector of float)
|
||||
0:10 a: direct index for structure (layout(offset=0 ) uniform 4-element array of 4-component vector of float)
|
||||
0:10 'anon@0' (layout(row_major std140 ) uniform block{layout(offset=0 ) uniform 4-element array of 4-component vector of float a, layout(offset=64 ) uniform 11-element array of structure{temp 7-element array of 4-component vector of float m} s})
|
||||
0:10 Constant:
|
||||
0:10 0 (const uint)
|
||||
0:10 'i' (layout(location=0 ) in int)
|
||||
0:10 direct index (layout(location=1 ) temp 4-component vector of float)
|
||||
0:10 'input' (layout(location=1 ) in 3-element array of 4-component vector of float)
|
||||
@@ -97,41 +111,53 @@ gl_FragCoord origin is upper left
|
||||
0:10 'i' (layout(location=0 ) in int)
|
||||
0:10 indirect index (temp 4-component vector of float)
|
||||
0:10 m: direct index for structure (temp 7-element array of 4-component vector of float)
|
||||
0:10 indirect index (temp structure{temp 7-element array of 4-component vector of float m})
|
||||
0:10 's' (global 11-element array of structure{temp 7-element array of 4-component vector of float m})
|
||||
0:10 indirect index (layout(offset=64 ) temp structure{temp 7-element array of 4-component vector of float m})
|
||||
0:10 s: direct index for structure (layout(offset=64 ) uniform 11-element array of structure{temp 7-element array of 4-component vector of float m})
|
||||
0:10 'anon@0' (layout(row_major std140 ) uniform block{layout(offset=0 ) uniform 4-element array of 4-component vector of float a, layout(offset=64 ) uniform 11-element array of structure{temp 7-element array of 4-component vector of float m} s})
|
||||
0:10 Constant:
|
||||
0:10 1 (const uint)
|
||||
0:10 'i' (layout(location=0 ) in int)
|
||||
0:10 Constant:
|
||||
0:10 0 (const int)
|
||||
0:10 'i' (layout(location=0 ) in int)
|
||||
0:10 Branch: Return
|
||||
0:? Linker Objects
|
||||
0:? 'a' (global 4-element array of 4-component vector of float)
|
||||
0:? 's' (global 11-element array of structure{temp 7-element array of 4-component vector of float m})
|
||||
0:? '@entryPointOutput' (layout(location=0 ) out 4-component vector of float)
|
||||
0:? 'anon@0' (uniform block{layout(offset=0 ) uniform 4-element array of 4-component vector of float a, layout(offset=64 ) uniform 11-element array of structure{temp 7-element array of 4-component vector of float m} s})
|
||||
0:? 'i' (layout(location=0 ) in int)
|
||||
0:? 'input' (layout(location=1 ) in 3-element array of 4-component vector of float)
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 66
|
||||
// Id's are bound by 65
|
||||
|
||||
Capability Shader
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Fragment 4 "PixelShaderFunction" 9 21 29
|
||||
EntryPoint Fragment 4 "PixelShaderFunction" 9 28 36
|
||||
ExecutionMode 4 OriginUpperLeft
|
||||
Name 4 "PixelShaderFunction"
|
||||
Name 9 "@entryPointOutput"
|
||||
Name 14 "a"
|
||||
Name 21 "i"
|
||||
Name 29 "input"
|
||||
Name 42 "b"
|
||||
Name 54 ""
|
||||
MemberName 54 0 "m"
|
||||
Name 58 "s"
|
||||
Name 15 ""
|
||||
MemberName 15 0 "m"
|
||||
Name 18 "$Global"
|
||||
MemberName 18($Global) 0 "a"
|
||||
MemberName 18($Global) 1 "s"
|
||||
Name 20 ""
|
||||
Name 28 "i"
|
||||
Name 36 "input"
|
||||
Name 49 "b"
|
||||
Decorate 9(@entryPointOutput) Location 0
|
||||
Decorate 21(i) Location 0
|
||||
Decorate 29(input) Location 1
|
||||
Decorate 12 ArrayStride 16
|
||||
Decorate 14 ArrayStride 16
|
||||
MemberDecorate 15 0 Offset 0
|
||||
Decorate 17 ArrayStride 112
|
||||
MemberDecorate 18($Global) 0 Offset 0
|
||||
MemberDecorate 18($Global) 1 Offset 64
|
||||
Decorate 18($Global) Block
|
||||
Decorate 20 DescriptorSet 0
|
||||
Decorate 28(i) Location 0
|
||||
Decorate 36(input) Location 1
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
@@ -141,60 +167,59 @@ gl_FragCoord origin is upper left
|
||||
10: TypeInt 32 0
|
||||
11: 10(int) Constant 4
|
||||
12: TypeArray 7(fvec4) 11
|
||||
13: TypePointer Private 12
|
||||
14(a): 13(ptr) Variable Private
|
||||
15: TypeInt 32 1
|
||||
16: 15(int) Constant 1
|
||||
17: TypePointer Private 7(fvec4)
|
||||
20: TypePointer Input 15(int)
|
||||
21(i): 20(ptr) Variable Input
|
||||
26: 10(int) Constant 3
|
||||
27: TypeArray 7(fvec4) 26
|
||||
28: TypePointer Input 27
|
||||
29(input): 28(ptr) Variable Input
|
||||
30: 15(int) Constant 2
|
||||
31: TypePointer Input 7(fvec4)
|
||||
39: 10(int) Constant 10
|
||||
40: TypeArray 7(fvec4) 39
|
||||
41: TypePointer Function 40
|
||||
43: 15(int) Constant 5
|
||||
44: TypePointer Function 7(fvec4)
|
||||
52: 10(int) Constant 7
|
||||
53: TypeArray 7(fvec4) 52
|
||||
54: TypeStruct 53
|
||||
55: 10(int) Constant 11
|
||||
56: TypeArray 54(struct) 55
|
||||
57: TypePointer Private 56
|
||||
58(s): 57(ptr) Variable Private
|
||||
60: 15(int) Constant 0
|
||||
13: 10(int) Constant 7
|
||||
14: TypeArray 7(fvec4) 13
|
||||
15: TypeStruct 14
|
||||
16: 10(int) Constant 11
|
||||
17: TypeArray 15(struct) 16
|
||||
18($Global): TypeStruct 12 17
|
||||
19: TypePointer Uniform 18($Global)
|
||||
20: 19(ptr) Variable Uniform
|
||||
21: TypeInt 32 1
|
||||
22: 21(int) Constant 0
|
||||
23: 21(int) Constant 1
|
||||
24: TypePointer Uniform 7(fvec4)
|
||||
27: TypePointer Input 21(int)
|
||||
28(i): 27(ptr) Variable Input
|
||||
33: 10(int) Constant 3
|
||||
34: TypeArray 7(fvec4) 33
|
||||
35: TypePointer Input 34
|
||||
36(input): 35(ptr) Variable Input
|
||||
37: 21(int) Constant 2
|
||||
38: TypePointer Input 7(fvec4)
|
||||
46: 10(int) Constant 10
|
||||
47: TypeArray 7(fvec4) 46
|
||||
48: TypePointer Function 47
|
||||
50: 21(int) Constant 5
|
||||
51: TypePointer Function 7(fvec4)
|
||||
4(PixelShaderFunction): 2 Function None 3
|
||||
5: Label
|
||||
42(b): 41(ptr) Variable Function
|
||||
18: 17(ptr) AccessChain 14(a) 16
|
||||
19: 7(fvec4) Load 18
|
||||
22: 15(int) Load 21(i)
|
||||
23: 17(ptr) AccessChain 14(a) 22
|
||||
24: 7(fvec4) Load 23
|
||||
25: 7(fvec4) FAdd 19 24
|
||||
32: 31(ptr) AccessChain 29(input) 30
|
||||
33: 7(fvec4) Load 32
|
||||
34: 7(fvec4) FAdd 25 33
|
||||
35: 15(int) Load 21(i)
|
||||
36: 31(ptr) AccessChain 29(input) 35
|
||||
37: 7(fvec4) Load 36
|
||||
38: 7(fvec4) FAdd 34 37
|
||||
45: 44(ptr) AccessChain 42(b) 43
|
||||
46: 7(fvec4) Load 45
|
||||
47: 7(fvec4) FAdd 38 46
|
||||
48: 15(int) Load 21(i)
|
||||
49: 44(ptr) AccessChain 42(b) 48
|
||||
50: 7(fvec4) Load 49
|
||||
51: 7(fvec4) FAdd 47 50
|
||||
59: 15(int) Load 21(i)
|
||||
61: 15(int) Load 21(i)
|
||||
62: 17(ptr) AccessChain 58(s) 59 60 61
|
||||
63: 7(fvec4) Load 62
|
||||
64: 7(fvec4) FAdd 51 63
|
||||
Store 9(@entryPointOutput) 64
|
||||
49(b): 48(ptr) Variable Function
|
||||
25: 24(ptr) AccessChain 20 22 23
|
||||
26: 7(fvec4) Load 25
|
||||
29: 21(int) Load 28(i)
|
||||
30: 24(ptr) AccessChain 20 22 29
|
||||
31: 7(fvec4) Load 30
|
||||
32: 7(fvec4) FAdd 26 31
|
||||
39: 38(ptr) AccessChain 36(input) 37
|
||||
40: 7(fvec4) Load 39
|
||||
41: 7(fvec4) FAdd 32 40
|
||||
42: 21(int) Load 28(i)
|
||||
43: 38(ptr) AccessChain 36(input) 42
|
||||
44: 7(fvec4) Load 43
|
||||
45: 7(fvec4) FAdd 41 44
|
||||
52: 51(ptr) AccessChain 49(b) 50
|
||||
53: 7(fvec4) Load 52
|
||||
54: 7(fvec4) FAdd 45 53
|
||||
55: 21(int) Load 28(i)
|
||||
56: 51(ptr) AccessChain 49(b) 55
|
||||
57: 7(fvec4) Load 56
|
||||
58: 7(fvec4) FAdd 54 57
|
||||
59: 21(int) Load 28(i)
|
||||
60: 21(int) Load 28(i)
|
||||
61: 24(ptr) AccessChain 20 23 59 22 60
|
||||
62: 7(fvec4) Load 61
|
||||
63: 7(fvec4) FAdd 58 62
|
||||
Store 9(@entryPointOutput) 63
|
||||
Return
|
||||
FunctionEnd
|
||||
|
||||
Reference in New Issue
Block a user