blob: 8a309da275504847a8f8cfb996cb2cff4e546f15 [file] [log] [blame]
John Kessenich07350f32016-09-02 20:23:27 -06001hlsl.multiEntry.vert
John Kessenich6fa17642017-04-07 15:33:08 -06002Shader version: 500
John Kessenich07350f32016-09-02 20:23:27 -060030:? Sequence
John Kessenich71c100d2017-03-14 19:43:13 -060040:4 Function Definition: FakeEntrypoint(u1; ( temp 4-component vector of float)
John Kessenich07350f32016-09-02 20:23:27 -060050:4 Function Parameters:
John Kessenich71c100d2017-03-14 19:43:13 -060060:4 'Index' ( in uint)
John Kessenich07350f32016-09-02 20:23:27 -060070:? Sequence
80:5 Branch: Return with expression
John Kessenichf36542f2017-03-31 14:39:30 -060090:5 textureFetch ( temp 4-component vector of float)
steve-lunargbf1537f2017-03-31 17:40:09 -0600100:5 'Position' (layout( rgba32f) uniform textureBuffer)
John Kessenich71c100d2017-03-14 19:43:13 -0600110:5 Convert uint to int ( temp int)
120:5 'Index' ( in uint)
130:9 Function Definition: @RealEntrypoint(u1; ( temp 4-component vector of float)
John Kessenich07350f32016-09-02 20:23:27 -0600140:9 Function Parameters:
John Kessenich71c100d2017-03-14 19:43:13 -0600150:9 'Index' ( in uint)
John Kessenich07350f32016-09-02 20:23:27 -0600160:? Sequence
John Kessenich02467d82017-01-19 15:41:47 -0700170:10 Branch: Return with expression
John Kessenich71c100d2017-03-14 19:43:13 -0600180:10 Function Call: FakeEntrypoint(u1; ( temp 4-component vector of float)
190:10 'Index' ( in uint)
200:9 Function Definition: RealEntrypoint( ( temp void)
John Kessenich02467d82017-01-19 15:41:47 -0700210:9 Function Parameters:
220:? Sequence
John Kessenich71c100d2017-03-14 19:43:13 -0600230:9 move second child to first child ( temp uint)
240:? 'Index' ( temp uint)
250:? 'Index' ( in uint VertexIndex)
260:9 move second child to first child ( temp 4-component vector of float)
270:? '@entryPointOutput' ( out 4-component vector of float Position)
280:9 Function Call: @RealEntrypoint(u1; ( temp 4-component vector of float)
290:? 'Index' ( temp uint)
John Kessenich07350f32016-09-02 20:23:27 -0600300:? Linker Objects
steve-lunargbf1537f2017-03-31 17:40:09 -0600310:? 'Position' (layout( rgba32f) uniform textureBuffer)
John Kessenich71c100d2017-03-14 19:43:13 -0600320:? '@entryPointOutput' ( out 4-component vector of float Position)
330:? 'Index' ( in uint VertexIndex)
John Kessenich07350f32016-09-02 20:23:27 -060034
35
36Linked vertex stage:
37
38
John Kessenich6fa17642017-04-07 15:33:08 -060039Shader version: 500
John Kessenich07350f32016-09-02 20:23:27 -0600400:? Sequence
John Kessenich71c100d2017-03-14 19:43:13 -0600410:4 Function Definition: FakeEntrypoint(u1; ( temp 4-component vector of float)
John Kessenich07350f32016-09-02 20:23:27 -0600420:4 Function Parameters:
John Kessenich71c100d2017-03-14 19:43:13 -0600430:4 'Index' ( in uint)
John Kessenich07350f32016-09-02 20:23:27 -0600440:? Sequence
450:5 Branch: Return with expression
John Kessenichf36542f2017-03-31 14:39:30 -0600460:5 textureFetch ( temp 4-component vector of float)
steve-lunargbf1537f2017-03-31 17:40:09 -0600470:5 'Position' (layout( rgba32f) uniform textureBuffer)
John Kessenich71c100d2017-03-14 19:43:13 -0600480:5 Convert uint to int ( temp int)
490:5 'Index' ( in uint)
500:9 Function Definition: @RealEntrypoint(u1; ( temp 4-component vector of float)
John Kessenich07350f32016-09-02 20:23:27 -0600510:9 Function Parameters:
John Kessenich71c100d2017-03-14 19:43:13 -0600520:9 'Index' ( in uint)
John Kessenich07350f32016-09-02 20:23:27 -0600530:? Sequence
John Kessenich02467d82017-01-19 15:41:47 -0700540:10 Branch: Return with expression
John Kessenich71c100d2017-03-14 19:43:13 -0600550:10 Function Call: FakeEntrypoint(u1; ( temp 4-component vector of float)
560:10 'Index' ( in uint)
570:9 Function Definition: RealEntrypoint( ( temp void)
John Kessenich02467d82017-01-19 15:41:47 -0700580:9 Function Parameters:
590:? Sequence
John Kessenich71c100d2017-03-14 19:43:13 -0600600:9 move second child to first child ( temp uint)
610:? 'Index' ( temp uint)
620:? 'Index' ( in uint VertexIndex)
630:9 move second child to first child ( temp 4-component vector of float)
640:? '@entryPointOutput' ( out 4-component vector of float Position)
650:9 Function Call: @RealEntrypoint(u1; ( temp 4-component vector of float)
660:? 'Index' ( temp uint)
John Kessenich07350f32016-09-02 20:23:27 -0600670:? Linker Objects
steve-lunargbf1537f2017-03-31 17:40:09 -0600680:? 'Position' (layout( rgba32f) uniform textureBuffer)
John Kessenich71c100d2017-03-14 19:43:13 -0600690:? '@entryPointOutput' ( out 4-component vector of float Position)
700:? 'Index' ( in uint VertexIndex)
John Kessenich07350f32016-09-02 20:23:27 -060071
72// Module Version 10000
73// Generated by (magic number): 80001
steve-lunargbf1537f2017-03-31 17:40:09 -060074// Id's are bound by 41
John Kessenich07350f32016-09-02 20:23:27 -060075
76 Capability Shader
77 Capability SampledBuffer
78 1: ExtInstImport "GLSL.std.450"
79 MemoryModel Logical GLSL450
steve-lunargbf1537f2017-03-31 17:40:09 -060080 EntryPoint Vertex 4 "RealEntrypoint" 34 37
John Kessenich6fa17642017-04-07 15:33:08 -060081 Source HLSL 500
John Kessenich07350f32016-09-02 20:23:27 -060082 Name 4 "RealEntrypoint"
83 Name 12 "FakeEntrypoint(u1;"
84 Name 11 "Index"
John Kessenich02467d82017-01-19 15:41:47 -070085 Name 15 "@RealEntrypoint(u1;"
86 Name 14 "Index"
steve-lunargbf1537f2017-03-31 17:40:09 -060087 Name 19 "Position"
88 Name 27 "param"
89 Name 32 "Index"
John Kessenich02467d82017-01-19 15:41:47 -070090 Name 34 "Index"
steve-lunargbf1537f2017-03-31 17:40:09 -060091 Name 37 "@entryPointOutput"
92 Name 38 "param"
93 Decorate 19(Position) DescriptorSet 0
94 Decorate 34(Index) BuiltIn VertexIndex
95 Decorate 37(@entryPointOutput) BuiltIn Position
John Kessenich07350f32016-09-02 20:23:27 -060096 2: TypeVoid
97 3: TypeFunction 2
98 6: TypeInt 32 0
99 7: TypePointer Function 6(int)
100 8: TypeFloat 32
101 9: TypeVector 8(float) 4
102 10: TypeFunction 9(fvec4) 7(ptr)
John Kessenichf36542f2017-03-31 14:39:30 -0600103 17: TypeImage 8(float) Buffer sampled format:Rgba32f
steve-lunargbf1537f2017-03-31 17:40:09 -0600104 18: TypePointer UniformConstant 17
105 19(Position): 18(ptr) Variable UniformConstant
106 22: TypeInt 32 1
107 33: TypePointer Input 6(int)
108 34(Index): 33(ptr) Variable Input
109 36: TypePointer Output 9(fvec4)
11037(@entryPointOutput): 36(ptr) Variable Output
John Kessenich07350f32016-09-02 20:23:27 -06001114(RealEntrypoint): 2 Function None 3
112 5: Label
steve-lunargbf1537f2017-03-31 17:40:09 -0600113 32(Index): 7(ptr) Variable Function
114 38(param): 7(ptr) Variable Function
115 35: 6(int) Load 34(Index)
116 Store 32(Index) 35
117 39: 6(int) Load 32(Index)
118 Store 38(param) 39
119 40: 9(fvec4) FunctionCall 15(@RealEntrypoint(u1;) 38(param)
120 Store 37(@entryPointOutput) 40
John Kessenich07350f32016-09-02 20:23:27 -0600121 Return
122 FunctionEnd
12312(FakeEntrypoint(u1;): 9(fvec4) Function None 10
124 11(Index): 7(ptr) FunctionParameter
125 13: Label
steve-lunargbf1537f2017-03-31 17:40:09 -0600126 20: 17 Load 19(Position)
127 21: 6(int) Load 11(Index)
128 23: 22(int) Bitcast 21
129 24: 9(fvec4) ImageFetch 20 23
130 ReturnValue 24
John Kessenich02467d82017-01-19 15:41:47 -0700131 FunctionEnd
13215(@RealEntrypoint(u1;): 9(fvec4) Function None 10
133 14(Index): 7(ptr) FunctionParameter
134 16: Label
steve-lunargbf1537f2017-03-31 17:40:09 -0600135 27(param): 7(ptr) Variable Function
136 28: 6(int) Load 14(Index)
137 Store 27(param) 28
138 29: 9(fvec4) FunctionCall 12(FakeEntrypoint(u1;) 27(param)
139 ReturnValue 29
John Kessenich07350f32016-09-02 20:23:27 -0600140 FunctionEnd