mirror of
https://github.com/RPCS3/glslang.git
synced 2024-12-20 02:08:14 +00:00
bed4e4f7e4
Also, remove assumption that if something is opaque that it must be in the UniformConstant storage class. This allows function declarations to know all parameters will be in the Function storage class.
293 lines
14 KiB
Plaintext
Executable File
293 lines
14 KiB
Plaintext
Executable File
hlsl.flattenOpaqueInit.vert
|
|
WARNING: AST will form illegal SPIR-V; need to transform to legalize
|
|
Shader version: 500
|
|
0:? Sequence
|
|
0:5 Function Definition: lookUp(struct-FxaaTex-p1-t211; ( temp 4-component vector of float)
|
|
0:5 Function Parameters:
|
|
0:? 'tex.smpl' ( in sampler)
|
|
0:? 'tex.tex' ( in texture2D)
|
|
0:? Sequence
|
|
0:6 Branch: Return with expression
|
|
0:6 texture ( temp 4-component vector of float)
|
|
0:6 Construct combined texture-sampler ( temp sampler2D)
|
|
0:? 'tex.tex' ( in texture2D)
|
|
0:? 'tex.smpl' ( in sampler)
|
|
0:? Constant:
|
|
0:? 0.300000
|
|
0:? 0.400000
|
|
0:10 Function Definition: fillOpaque( ( temp structure{ temp sampler smpl, temp texture2D tex})
|
|
0:10 Function Parameters:
|
|
0:? Sequence
|
|
0:12 move second child to first child ( temp sampler)
|
|
0:? 't.smpl' ( temp sampler)
|
|
0:12 'g_tInputTexture_sampler' ( uniform sampler)
|
|
0:13 move second child to first child ( temp texture2D)
|
|
0:? 't.tex' ( temp texture2D)
|
|
0:13 'g_tInputTexture' ( uniform texture2D)
|
|
0:14 Branch: Return with expression
|
|
0:14 't' ( temp structure{ temp sampler smpl, temp texture2D tex})
|
|
0:18 Function Definition: @main( ( temp 4-component vector of float)
|
|
0:18 Function Parameters:
|
|
0:? Sequence
|
|
0:19 Sequence
|
|
0:19 Sequence
|
|
0:19 move second child to first child ( temp structure{ temp sampler smpl, temp texture2D tex})
|
|
0:19 'flattenTemp' ( temp structure{ temp sampler smpl, temp texture2D tex})
|
|
0:19 Construct structure ( temp structure{ temp sampler smpl, temp texture2D tex})
|
|
0:19 'g_tInputTexture_sampler' ( uniform sampler)
|
|
0:19 'g_tInputTexture' ( uniform texture2D)
|
|
0:19 move second child to first child ( temp sampler)
|
|
0:? 'tex1.smpl' ( temp sampler)
|
|
0:19 smpl: direct index for structure ( temp sampler)
|
|
0:19 'flattenTemp' ( temp structure{ temp sampler smpl, temp texture2D tex})
|
|
0:19 Constant:
|
|
0:19 0 (const int)
|
|
0:19 move second child to first child ( temp texture2D)
|
|
0:? 'tex1.tex' ( temp texture2D)
|
|
0:19 tex: direct index for structure ( temp texture2D)
|
|
0:19 'flattenTemp' ( temp structure{ temp sampler smpl, temp texture2D tex})
|
|
0:19 Constant:
|
|
0:19 1 (const int)
|
|
0:20 Sequence
|
|
0:20 Sequence
|
|
0:20 move second child to first child ( temp structure{ temp sampler smpl, temp texture2D tex})
|
|
0:20 'flattenTemp' ( temp structure{ temp sampler smpl, temp texture2D tex})
|
|
0:20 Function Call: fillOpaque( ( temp structure{ temp sampler smpl, temp texture2D tex})
|
|
0:20 move second child to first child ( temp sampler)
|
|
0:? 'tex2.smpl' ( temp sampler)
|
|
0:20 smpl: direct index for structure ( temp sampler)
|
|
0:20 'flattenTemp' ( temp structure{ temp sampler smpl, temp texture2D tex})
|
|
0:20 Constant:
|
|
0:20 0 (const int)
|
|
0:20 move second child to first child ( temp texture2D)
|
|
0:? 'tex2.tex' ( temp texture2D)
|
|
0:20 tex: direct index for structure ( temp texture2D)
|
|
0:20 'flattenTemp' ( temp structure{ temp sampler smpl, temp texture2D tex})
|
|
0:20 Constant:
|
|
0:20 1 (const int)
|
|
0:21 Branch: Return with expression
|
|
0:21 Function Call: lookUp(struct-FxaaTex-p1-t211; ( temp 4-component vector of float)
|
|
0:? 'tex1.smpl' ( temp sampler)
|
|
0:? 'tex1.tex' ( temp texture2D)
|
|
0:18 Function Definition: main( ( temp void)
|
|
0:18 Function Parameters:
|
|
0:? Sequence
|
|
0:18 move second child to first child ( temp 4-component vector of float)
|
|
0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
|
|
0:18 Function Call: @main( ( temp 4-component vector of float)
|
|
0:? Linker Objects
|
|
0:? 'g_tInputTexture_sampler' ( uniform sampler)
|
|
0:? 'g_tInputTexture' ( uniform texture2D)
|
|
0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
|
|
|
|
|
|
Linked vertex stage:
|
|
|
|
|
|
Shader version: 500
|
|
0:? Sequence
|
|
0:5 Function Definition: lookUp(struct-FxaaTex-p1-t211; ( temp 4-component vector of float)
|
|
0:5 Function Parameters:
|
|
0:? 'tex.smpl' ( in sampler)
|
|
0:? 'tex.tex' ( in texture2D)
|
|
0:? Sequence
|
|
0:6 Branch: Return with expression
|
|
0:6 texture ( temp 4-component vector of float)
|
|
0:6 Construct combined texture-sampler ( temp sampler2D)
|
|
0:? 'tex.tex' ( in texture2D)
|
|
0:? 'tex.smpl' ( in sampler)
|
|
0:? Constant:
|
|
0:? 0.300000
|
|
0:? 0.400000
|
|
0:10 Function Definition: fillOpaque( ( temp structure{ temp sampler smpl, temp texture2D tex})
|
|
0:10 Function Parameters:
|
|
0:? Sequence
|
|
0:12 move second child to first child ( temp sampler)
|
|
0:? 't.smpl' ( temp sampler)
|
|
0:12 'g_tInputTexture_sampler' ( uniform sampler)
|
|
0:13 move second child to first child ( temp texture2D)
|
|
0:? 't.tex' ( temp texture2D)
|
|
0:13 'g_tInputTexture' ( uniform texture2D)
|
|
0:14 Branch: Return with expression
|
|
0:14 't' ( temp structure{ temp sampler smpl, temp texture2D tex})
|
|
0:18 Function Definition: @main( ( temp 4-component vector of float)
|
|
0:18 Function Parameters:
|
|
0:? Sequence
|
|
0:19 Sequence
|
|
0:19 Sequence
|
|
0:19 move second child to first child ( temp structure{ temp sampler smpl, temp texture2D tex})
|
|
0:19 'flattenTemp' ( temp structure{ temp sampler smpl, temp texture2D tex})
|
|
0:19 Construct structure ( temp structure{ temp sampler smpl, temp texture2D tex})
|
|
0:19 'g_tInputTexture_sampler' ( uniform sampler)
|
|
0:19 'g_tInputTexture' ( uniform texture2D)
|
|
0:19 move second child to first child ( temp sampler)
|
|
0:? 'tex1.smpl' ( temp sampler)
|
|
0:19 smpl: direct index for structure ( temp sampler)
|
|
0:19 'flattenTemp' ( temp structure{ temp sampler smpl, temp texture2D tex})
|
|
0:19 Constant:
|
|
0:19 0 (const int)
|
|
0:19 move second child to first child ( temp texture2D)
|
|
0:? 'tex1.tex' ( temp texture2D)
|
|
0:19 tex: direct index for structure ( temp texture2D)
|
|
0:19 'flattenTemp' ( temp structure{ temp sampler smpl, temp texture2D tex})
|
|
0:19 Constant:
|
|
0:19 1 (const int)
|
|
0:20 Sequence
|
|
0:20 Sequence
|
|
0:20 move second child to first child ( temp structure{ temp sampler smpl, temp texture2D tex})
|
|
0:20 'flattenTemp' ( temp structure{ temp sampler smpl, temp texture2D tex})
|
|
0:20 Function Call: fillOpaque( ( temp structure{ temp sampler smpl, temp texture2D tex})
|
|
0:20 move second child to first child ( temp sampler)
|
|
0:? 'tex2.smpl' ( temp sampler)
|
|
0:20 smpl: direct index for structure ( temp sampler)
|
|
0:20 'flattenTemp' ( temp structure{ temp sampler smpl, temp texture2D tex})
|
|
0:20 Constant:
|
|
0:20 0 (const int)
|
|
0:20 move second child to first child ( temp texture2D)
|
|
0:? 'tex2.tex' ( temp texture2D)
|
|
0:20 tex: direct index for structure ( temp texture2D)
|
|
0:20 'flattenTemp' ( temp structure{ temp sampler smpl, temp texture2D tex})
|
|
0:20 Constant:
|
|
0:20 1 (const int)
|
|
0:21 Branch: Return with expression
|
|
0:21 Function Call: lookUp(struct-FxaaTex-p1-t211; ( temp 4-component vector of float)
|
|
0:? 'tex1.smpl' ( temp sampler)
|
|
0:? 'tex1.tex' ( temp texture2D)
|
|
0:18 Function Definition: main( ( temp void)
|
|
0:18 Function Parameters:
|
|
0:? Sequence
|
|
0:18 move second child to first child ( temp 4-component vector of float)
|
|
0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
|
|
0:18 Function Call: @main( ( temp 4-component vector of float)
|
|
0:? Linker Objects
|
|
0:? 'g_tInputTexture_sampler' ( uniform sampler)
|
|
0:? 'g_tInputTexture' ( uniform texture2D)
|
|
0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float)
|
|
|
|
// Module Version 10000
|
|
// Generated by (magic number): 80001
|
|
// Id's are bound by 80
|
|
|
|
Capability Shader
|
|
1: ExtInstImport "GLSL.std.450"
|
|
MemoryModel Logical GLSL450
|
|
EntryPoint Vertex 4 "main" 78
|
|
Source HLSL 500
|
|
Name 4 "main"
|
|
Name 15 "lookUp(struct-FxaaTex-p1-t211;"
|
|
Name 13 "tex.smpl"
|
|
Name 14 "tex.tex"
|
|
Name 17 "FxaaTex"
|
|
MemberName 17(FxaaTex) 0 "smpl"
|
|
MemberName 17(FxaaTex) 1 "tex"
|
|
Name 19 "fillOpaque("
|
|
Name 22 "@main("
|
|
Name 36 "t.smpl"
|
|
Name 38 "g_tInputTexture_sampler"
|
|
Name 40 "t.tex"
|
|
Name 42 "g_tInputTexture"
|
|
Name 45 "t"
|
|
Name 49 "flattenTemp"
|
|
Name 53 "tex1.smpl"
|
|
Name 58 "tex1.tex"
|
|
Name 62 "flattenTemp"
|
|
Name 64 "tex2.smpl"
|
|
Name 67 "tex2.tex"
|
|
Name 70 "param"
|
|
Name 72 "param"
|
|
Name 78 "@entryPointOutput"
|
|
Decorate 38(g_tInputTexture_sampler) DescriptorSet 0
|
|
Decorate 42(g_tInputTexture) DescriptorSet 0
|
|
Decorate 78(@entryPointOutput) Location 0
|
|
2: TypeVoid
|
|
3: TypeFunction 2
|
|
6: TypeSampler
|
|
7: TypePointer Function 6
|
|
8: TypeFloat 32
|
|
9: TypeImage 8(float) 2D sampled format:Unknown
|
|
10: TypePointer Function 9
|
|
11: TypeVector 8(float) 4
|
|
12: TypeFunction 11(fvec4) 7(ptr) 10(ptr)
|
|
17(FxaaTex): TypeStruct 6 9
|
|
18: TypeFunction 17(FxaaTex)
|
|
21: TypeFunction 11(fvec4)
|
|
26: TypeSampledImage 9
|
|
28: TypeVector 8(float) 2
|
|
29: 8(float) Constant 1050253722
|
|
30: 8(float) Constant 1053609165
|
|
31: 28(fvec2) ConstantComposite 29 30
|
|
32: 8(float) Constant 0
|
|
37: TypePointer UniformConstant 6
|
|
38(g_tInputTexture_sampler): 37(ptr) Variable UniformConstant
|
|
41: TypePointer UniformConstant 9
|
|
42(g_tInputTexture): 41(ptr) Variable UniformConstant
|
|
44: TypePointer Function 17(FxaaTex)
|
|
54: TypeInt 32 1
|
|
55: 54(int) Constant 0
|
|
59: 54(int) Constant 1
|
|
77: TypePointer Output 11(fvec4)
|
|
78(@entryPointOutput): 77(ptr) Variable Output
|
|
4(main): 2 Function None 3
|
|
5: Label
|
|
79: 11(fvec4) FunctionCall 22(@main()
|
|
Store 78(@entryPointOutput) 79
|
|
Return
|
|
FunctionEnd
|
|
15(lookUp(struct-FxaaTex-p1-t211;): 11(fvec4) Function None 12
|
|
13(tex.smpl): 7(ptr) FunctionParameter
|
|
14(tex.tex): 10(ptr) FunctionParameter
|
|
16: Label
|
|
24: 9 Load 14(tex.tex)
|
|
25: 6 Load 13(tex.smpl)
|
|
27: 26 SampledImage 24 25
|
|
33: 11(fvec4) ImageSampleExplicitLod 27 31 Lod 32
|
|
ReturnValue 33
|
|
FunctionEnd
|
|
19(fillOpaque(): 17(FxaaTex) Function None 18
|
|
20: Label
|
|
36(t.smpl): 7(ptr) Variable Function
|
|
40(t.tex): 10(ptr) Variable Function
|
|
45(t): 44(ptr) Variable Function
|
|
39: 6 Load 38(g_tInputTexture_sampler)
|
|
Store 36(t.smpl) 39
|
|
43: 9 Load 42(g_tInputTexture)
|
|
Store 40(t.tex) 43
|
|
46: 17(FxaaTex) Load 45(t)
|
|
ReturnValue 46
|
|
FunctionEnd
|
|
22(@main(): 11(fvec4) Function None 21
|
|
23: Label
|
|
49(flattenTemp): 44(ptr) Variable Function
|
|
53(tex1.smpl): 7(ptr) Variable Function
|
|
58(tex1.tex): 10(ptr) Variable Function
|
|
62(flattenTemp): 44(ptr) Variable Function
|
|
64(tex2.smpl): 7(ptr) Variable Function
|
|
67(tex2.tex): 10(ptr) Variable Function
|
|
70(param): 7(ptr) Variable Function
|
|
72(param): 10(ptr) Variable Function
|
|
50: 6 Load 38(g_tInputTexture_sampler)
|
|
51: 9 Load 42(g_tInputTexture)
|
|
52: 17(FxaaTex) CompositeConstruct 50 51
|
|
Store 49(flattenTemp) 52
|
|
56: 7(ptr) AccessChain 49(flattenTemp) 55
|
|
57: 6 Load 56
|
|
Store 53(tex1.smpl) 57
|
|
60: 10(ptr) AccessChain 49(flattenTemp) 59
|
|
61: 9 Load 60
|
|
Store 58(tex1.tex) 61
|
|
63: 17(FxaaTex) FunctionCall 19(fillOpaque()
|
|
Store 62(flattenTemp) 63
|
|
65: 7(ptr) AccessChain 62(flattenTemp) 55
|
|
66: 6 Load 65
|
|
Store 64(tex2.smpl) 66
|
|
68: 10(ptr) AccessChain 62(flattenTemp) 59
|
|
69: 9 Load 68
|
|
Store 67(tex2.tex) 69
|
|
71: 6 Load 53(tex1.smpl)
|
|
Store 70(param) 71
|
|
73: 9 Load 58(tex1.tex)
|
|
Store 72(param) 73
|
|
74: 11(fvec4) FunctionCall 15(lookUp(struct-FxaaTex-p1-t211;) 70(param) 72(param)
|
|
ReturnValue 74
|
|
FunctionEnd
|