Tests: Add a set of gtest-file-based HLSL tests.
This commit is contained in:
parent
e0a24778dd
commit
e5f29393da
13 changed files with 537 additions and 1 deletions
113
Test/baseResults/hlsl.assoc.frag.out
Executable file
113
Test/baseResults/hlsl.assoc.frag.out
Executable file
|
|
@ -0,0 +1,113 @@
|
|||
hlsl.assoc.frag
|
||||
Shader version: 100
|
||||
gl_FragCoord origin is upper left
|
||||
0:? Sequence
|
||||
0:12 Function Definition: PixelShaderFunction(vf4;vf4;vf4;vf4;vf4; (temp 4-component vector of float)
|
||||
0:8 Function Parameters:
|
||||
0:8 'a1' (temp 4-component vector of float)
|
||||
0:8 'a2' (temp 4-component vector of float)
|
||||
0:8 'a3' (temp 4-component vector of float)
|
||||
0:8 'a4' (temp 4-component vector of float)
|
||||
0:8 'a5' (temp 4-component vector of float)
|
||||
0:? Sequence
|
||||
0:9 move second child to first child (temp 4-component vector of float)
|
||||
0:9 'a1' (temp 4-component vector of float)
|
||||
0:9 move second child to first child (temp 4-component vector of float)
|
||||
0:9 'a2' (temp 4-component vector of float)
|
||||
0:9 move second child to first child (temp 4-component vector of float)
|
||||
0:9 'a3' (temp 4-component vector of float)
|
||||
0:9 move second child to first child (temp 4-component vector of float)
|
||||
0:9 'a4' (temp 4-component vector of float)
|
||||
0:9 'a5' (temp 4-component vector of float)
|
||||
0:10 Branch: Return with expression
|
||||
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 'a1' (temp 4-component vector of float)
|
||||
0:10 'a2' (temp 4-component vector of float)
|
||||
0:10 add (temp 4-component vector of float)
|
||||
0:10 'a3' (temp 4-component vector of float)
|
||||
0:10 'a4' (temp 4-component vector of float)
|
||||
0:10 'a5' (temp 4-component vector of float)
|
||||
0:? Linker Objects
|
||||
|
||||
|
||||
Linked fragment stage:
|
||||
|
||||
|
||||
Shader version: 100
|
||||
gl_FragCoord origin is upper left
|
||||
0:? Sequence
|
||||
0:12 Function Definition: PixelShaderFunction(vf4;vf4;vf4;vf4;vf4; (temp 4-component vector of float)
|
||||
0:8 Function Parameters:
|
||||
0:8 'a1' (temp 4-component vector of float)
|
||||
0:8 'a2' (temp 4-component vector of float)
|
||||
0:8 'a3' (temp 4-component vector of float)
|
||||
0:8 'a4' (temp 4-component vector of float)
|
||||
0:8 'a5' (temp 4-component vector of float)
|
||||
0:? Sequence
|
||||
0:9 move second child to first child (temp 4-component vector of float)
|
||||
0:9 'a1' (temp 4-component vector of float)
|
||||
0:9 move second child to first child (temp 4-component vector of float)
|
||||
0:9 'a2' (temp 4-component vector of float)
|
||||
0:9 move second child to first child (temp 4-component vector of float)
|
||||
0:9 'a3' (temp 4-component vector of float)
|
||||
0:9 move second child to first child (temp 4-component vector of float)
|
||||
0:9 'a4' (temp 4-component vector of float)
|
||||
0:9 'a5' (temp 4-component vector of float)
|
||||
0:10 Branch: Return with expression
|
||||
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 'a1' (temp 4-component vector of float)
|
||||
0:10 'a2' (temp 4-component vector of float)
|
||||
0:10 add (temp 4-component vector of float)
|
||||
0:10 'a3' (temp 4-component vector of float)
|
||||
0:10 'a4' (temp 4-component vector of float)
|
||||
0:10 'a5' (temp 4-component vector of float)
|
||||
0:? Linker Objects
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 25
|
||||
|
||||
Capability Shader
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Fragment 4 "PixelShaderFunction"
|
||||
ExecutionMode 4 OriginUpperLeft
|
||||
Source HLSL 100
|
||||
Name 4 "PixelShaderFunction"
|
||||
Name 9 "a1"
|
||||
Name 10 "a2"
|
||||
Name 11 "a3"
|
||||
Name 12 "a4"
|
||||
Name 13 "a5"
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
7: TypeVector 6(float) 4
|
||||
8: TypePointer Function 7(fvec4)
|
||||
4(PixelShaderFunction): 2 Function None 3
|
||||
5: Label
|
||||
9(a1): 8(ptr) Variable Function
|
||||
10(a2): 8(ptr) Variable Function
|
||||
11(a3): 8(ptr) Variable Function
|
||||
12(a4): 8(ptr) Variable Function
|
||||
13(a5): 8(ptr) Variable Function
|
||||
14: 7(fvec4) Load 13(a5)
|
||||
Store 12(a4) 14
|
||||
Store 11(a3) 14
|
||||
Store 10(a2) 14
|
||||
Store 9(a1) 14
|
||||
15: 7(fvec4) Load 9(a1)
|
||||
16: 7(fvec4) Load 10(a2)
|
||||
17: 7(fvec4) FAdd 15 16
|
||||
18: 7(fvec4) Load 11(a3)
|
||||
19: 7(fvec4) Load 12(a4)
|
||||
20: 7(fvec4) FAdd 18 19
|
||||
21: 7(fvec4) FAdd 17 20
|
||||
22: 7(fvec4) Load 13(a5)
|
||||
23: 7(fvec4) FAdd 21 22
|
||||
ReturnValue 23
|
||||
FunctionEnd
|
||||
Loading…
Add table
Add a link
Reference in a new issue