HLSL: Wrap the entry-point; need to write 'in' args, and support 'inout' args.
This needs some render testing, but is destined to be part of master. This also leads to a variety of other simplifications. - IO are global symbols, so only need one list of linkage nodes (deferred) - no longer need parse-context-wide 'inEntryPoint' state, entry-point is localized - several parts of splitting/flattening are now localized
This commit is contained in:
parent
18adbdbbb8
commit
02467d8d94
171 changed files with 37604 additions and 32679 deletions
|
|
@ -1,66 +1,73 @@
|
|||
spv.rw.autoassign.frag
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 37
|
||||
// Id's are bound by 42
|
||||
|
||||
Capability Shader
|
||||
Capability Sampled1D
|
||||
Capability SampledBuffer
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Fragment 4 "main" 33
|
||||
EntryPoint Fragment 4 "main" 39
|
||||
ExecutionMode 4 OriginUpperLeft
|
||||
Name 4 "main"
|
||||
Name 8 "r00"
|
||||
Name 11 "g_tTex1df1"
|
||||
Name 18 "r01"
|
||||
Name 21 "g_tBuf1du1"
|
||||
Name 25 "PS_OUTPUT"
|
||||
MemberName 25(PS_OUTPUT) 0 "Color"
|
||||
Name 27 "psout"
|
||||
Name 33 "Color"
|
||||
Decorate 11(g_tTex1df1) DescriptorSet 0
|
||||
Decorate 11(g_tTex1df1) Binding 20
|
||||
Decorate 21(g_tBuf1du1) DescriptorSet 0
|
||||
Decorate 21(g_tBuf1du1) Binding 21
|
||||
Decorate 33(Color) Location 0
|
||||
Name 8 "PS_OUTPUT"
|
||||
MemberName 8(PS_OUTPUT) 0 "Color"
|
||||
Name 10 "@main("
|
||||
Name 13 "r00"
|
||||
Name 16 "g_tTex1df1"
|
||||
Name 23 "r01"
|
||||
Name 26 "g_tBuf1du1"
|
||||
Name 30 "psout"
|
||||
Name 39 "Color"
|
||||
Decorate 16(g_tTex1df1) DescriptorSet 0
|
||||
Decorate 16(g_tTex1df1) Binding 20
|
||||
Decorate 26(g_tBuf1du1) DescriptorSet 0
|
||||
Decorate 26(g_tBuf1du1) Binding 21
|
||||
Decorate 39(Color) Location 0
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
7: TypePointer Function 6(float)
|
||||
9: TypeImage 6(float) 1D nonsampled format:R32f
|
||||
10: TypePointer UniformConstant 9
|
||||
11(g_tTex1df1): 10(ptr) Variable UniformConstant
|
||||
13: TypeInt 32 1
|
||||
14: 13(int) Constant 0
|
||||
16: TypeInt 32 0
|
||||
17: TypePointer Function 16(int)
|
||||
19: TypeImage 16(int) Buffer nonsampled format:R32ui
|
||||
20: TypePointer UniformConstant 19
|
||||
21(g_tBuf1du1): 20(ptr) Variable UniformConstant
|
||||
24: TypeVector 6(float) 4
|
||||
25(PS_OUTPUT): TypeStruct 24(fvec4)
|
||||
26: TypePointer Function 25(PS_OUTPUT)
|
||||
28: 6(float) Constant 0
|
||||
29: 24(fvec4) ConstantComposite 28 28 28 28
|
||||
30: TypePointer Function 24(fvec4)
|
||||
32: TypePointer Output 24(fvec4)
|
||||
33(Color): 32(ptr) Variable Output
|
||||
7: TypeVector 6(float) 4
|
||||
8(PS_OUTPUT): TypeStruct 7(fvec4)
|
||||
9: TypeFunction 8(PS_OUTPUT)
|
||||
12: TypePointer Function 6(float)
|
||||
14: TypeImage 6(float) 1D nonsampled format:R32f
|
||||
15: TypePointer UniformConstant 14
|
||||
16(g_tTex1df1): 15(ptr) Variable UniformConstant
|
||||
18: TypeInt 32 1
|
||||
19: 18(int) Constant 0
|
||||
21: TypeInt 32 0
|
||||
22: TypePointer Function 21(int)
|
||||
24: TypeImage 21(int) Buffer nonsampled format:R32ui
|
||||
25: TypePointer UniformConstant 24
|
||||
26(g_tBuf1du1): 25(ptr) Variable UniformConstant
|
||||
29: TypePointer Function 8(PS_OUTPUT)
|
||||
31: 6(float) Constant 0
|
||||
32: 7(fvec4) ConstantComposite 31 31 31 31
|
||||
33: TypePointer Function 7(fvec4)
|
||||
38: TypePointer Output 7(fvec4)
|
||||
39(Color): 38(ptr) Variable Output
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
8(r00): 7(ptr) Variable Function
|
||||
18(r01): 17(ptr) Variable Function
|
||||
27(psout): 26(ptr) Variable Function
|
||||
12: 9 Load 11(g_tTex1df1)
|
||||
15: 6(float) ImageRead 12 14
|
||||
Store 8(r00) 15
|
||||
22: 19 Load 21(g_tBuf1du1)
|
||||
23: 16(int) ImageRead 22 14
|
||||
Store 18(r01) 23
|
||||
31: 30(ptr) AccessChain 27(psout) 14
|
||||
Store 31 29
|
||||
34: 30(ptr) AccessChain 27(psout) 14
|
||||
35: 24(fvec4) Load 34
|
||||
Store 33(Color) 35
|
||||
40:8(PS_OUTPUT) FunctionCall 10(@main()
|
||||
41: 7(fvec4) CompositeExtract 40 0
|
||||
Store 39(Color) 41
|
||||
Return
|
||||
FunctionEnd
|
||||
10(@main():8(PS_OUTPUT) Function None 9
|
||||
11: Label
|
||||
13(r00): 12(ptr) Variable Function
|
||||
23(r01): 22(ptr) Variable Function
|
||||
30(psout): 29(ptr) Variable Function
|
||||
17: 14 Load 16(g_tTex1df1)
|
||||
20: 6(float) ImageRead 17 19
|
||||
Store 13(r00) 20
|
||||
27: 24 Load 26(g_tBuf1du1)
|
||||
28: 21(int) ImageRead 27 19
|
||||
Store 23(r01) 28
|
||||
34: 33(ptr) AccessChain 30(psout) 19
|
||||
Store 34 32
|
||||
35:8(PS_OUTPUT) Load 30(psout)
|
||||
ReturnValue 35
|
||||
FunctionEnd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue