Tests: Add a set of gtest-file-based HLSL tests.
This commit is contained in:
103
Test/baseResults/hlsl.precedence2.frag.out
Executable file
103
Test/baseResults/hlsl.precedence2.frag.out
Executable file
@@ -0,0 +1,103 @@
|
||||
hlsl.precedence2.frag
|
||||
Shader version: 100
|
||||
gl_FragCoord origin is upper left
|
||||
0:? Sequence
|
||||
0:10 Function Definition: PixelShaderFunction(i1;i1;i1;i1; (temp int)
|
||||
0:7 Function Parameters:
|
||||
0:7 'a1' (temp int)
|
||||
0:7 'a2' (temp int)
|
||||
0:7 'a3' (temp int)
|
||||
0:7 'a4' (temp int)
|
||||
0:? Sequence
|
||||
0:8 Branch: Return with expression
|
||||
0:8 add (temp int)
|
||||
0:8 left-shift (temp int)
|
||||
0:8 add (temp int)
|
||||
0:8 component-wise multiply (temp int)
|
||||
0:8 'a1' (temp int)
|
||||
0:8 'a2' (temp int)
|
||||
0:8 'a3' (temp int)
|
||||
0:8 'a4' (temp int)
|
||||
0:8 left-shift (temp int)
|
||||
0:8 'a1' (temp int)
|
||||
0:8 add (temp int)
|
||||
0:8 'a2' (temp int)
|
||||
0:8 component-wise multiply (temp int)
|
||||
0:8 'a3' (temp int)
|
||||
0:8 'a4' (temp int)
|
||||
0:? Linker Objects
|
||||
|
||||
|
||||
Linked fragment stage:
|
||||
|
||||
|
||||
Shader version: 100
|
||||
gl_FragCoord origin is upper left
|
||||
0:? Sequence
|
||||
0:10 Function Definition: PixelShaderFunction(i1;i1;i1;i1; (temp int)
|
||||
0:7 Function Parameters:
|
||||
0:7 'a1' (temp int)
|
||||
0:7 'a2' (temp int)
|
||||
0:7 'a3' (temp int)
|
||||
0:7 'a4' (temp int)
|
||||
0:? Sequence
|
||||
0:8 Branch: Return with expression
|
||||
0:8 add (temp int)
|
||||
0:8 left-shift (temp int)
|
||||
0:8 add (temp int)
|
||||
0:8 component-wise multiply (temp int)
|
||||
0:8 'a1' (temp int)
|
||||
0:8 'a2' (temp int)
|
||||
0:8 'a3' (temp int)
|
||||
0:8 'a4' (temp int)
|
||||
0:8 left-shift (temp int)
|
||||
0:8 'a1' (temp int)
|
||||
0:8 add (temp int)
|
||||
0:8 'a2' (temp int)
|
||||
0:8 component-wise multiply (temp int)
|
||||
0:8 'a3' (temp int)
|
||||
0:8 'a4' (temp int)
|
||||
0:? Linker Objects
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 28
|
||||
|
||||
Capability Shader
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Fragment 4 "PixelShaderFunction"
|
||||
ExecutionMode 4 OriginUpperLeft
|
||||
Source HLSL 100
|
||||
Name 4 "PixelShaderFunction"
|
||||
Name 8 "a1"
|
||||
Name 10 "a2"
|
||||
Name 13 "a3"
|
||||
Name 16 "a4"
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeInt 32 1
|
||||
7: TypePointer Function 6(int)
|
||||
4(PixelShaderFunction): 2 Function None 3
|
||||
5: Label
|
||||
8(a1): 7(ptr) Variable Function
|
||||
10(a2): 7(ptr) Variable Function
|
||||
13(a3): 7(ptr) Variable Function
|
||||
16(a4): 7(ptr) Variable Function
|
||||
9: 6(int) Load 8(a1)
|
||||
11: 6(int) Load 10(a2)
|
||||
12: 6(int) IMul 9 11
|
||||
14: 6(int) Load 13(a3)
|
||||
15: 6(int) IAdd 12 14
|
||||
17: 6(int) Load 16(a4)
|
||||
18: 6(int) ShiftLeftLogical 15 17
|
||||
19: 6(int) Load 8(a1)
|
||||
20: 6(int) Load 10(a2)
|
||||
21: 6(int) Load 13(a3)
|
||||
22: 6(int) Load 16(a4)
|
||||
23: 6(int) IMul 21 22
|
||||
24: 6(int) IAdd 20 23
|
||||
25: 6(int) ShiftLeftLogical 19 24
|
||||
26: 6(int) IAdd 18 25
|
||||
ReturnValue 26
|
||||
FunctionEnd
|
||||
Reference in New Issue
Block a user