1hlsl.pp.line3.frag
2// Module Version 10000
3// Generated by (magic number): 8000b
4// Id's are bound by 78
5
6                              Capability Shader
7               3:             ExtInstImport  "GLSL.std.450"
8                              MemoryModel Logical GLSL450
9                              EntryPoint Fragment 6  "MainPs" 69 73
10                              ExecutionMode 6 OriginUpperLeft
11               1:             String  "hlsl.pp.line3.frag"
12               2:             String  "./i1.h"
13                              Source HLSL 500 1  "// OpModuleProcessed entry-point MainPs
14// OpModuleProcessed client vulkan100
15// OpModuleProcessed target-env vulkan1.0
16// OpModuleProcessed hlsl-offsets
17#line 1
18Texture2D g_tColor[ 128 ] ;
19
20layout (push_constant) cbuffer PerViewConstantBuffer_t
21{
22    uint g_nDataIdx;
23    uint g_nDataIdx2;
24    bool g_B;
25} ;
26
27SamplerState g_sAniso;
28
29struct PS_INPUT
30{
31    float2 vTextureCoords : TEXCOORD2 ;
32} ;
33
34struct PS_OUTPUT
35{
36    float4 vColor : SV_Target0 ;
37} ;
38
39PS_OUTPUT MainPs ( PS_INPUT i )
40{
41    PS_OUTPUT ps_output ;
42   
43    uint u;
44    if (g_B)
45#include "i1.h"
46    else
47        u = g_nDataIdx2;
48    ps_output . vColor = g_tColor [ u ] . Sample ( g_sAniso , i . vTextureCoords . xy );
49    return ps_output ;
50}
51
52"
53                              Source HLSL 500 2  "        u = g_nDataIdx;
54"
55                              Name 6  "MainPs"
56                              Name 10  "PS_INPUT"
57                              MemberName 10(PS_INPUT) 0  "vTextureCoords"
58                              Name 13  "PS_OUTPUT"
59                              MemberName 13(PS_OUTPUT) 0  "vColor"
60                              Name 16  "@MainPs(struct-PS_INPUT-vf21;"
61                              Name 15  "i"
62                              Name 19  "PerViewConstantBuffer_t"
63                              MemberName 19(PerViewConstantBuffer_t) 0  "g_nDataIdx"
64                              MemberName 19(PerViewConstantBuffer_t) 1  "g_nDataIdx2"
65                              MemberName 19(PerViewConstantBuffer_t) 2  "g_B"
66                              Name 21  ""
67                              Name 33  "u"
68                              Name 42  "ps_output"
69                              Name 47  "g_tColor"
70                              Name 54  "g_sAniso"
71                              Name 67  "i"
72                              Name 69  "i.vTextureCoords"
73                              Name 73  "@entryPointOutput.vColor"
74                              Name 74  "param"
75                              MemberDecorate 19(PerViewConstantBuffer_t) 0 Offset 0
76                              MemberDecorate 19(PerViewConstantBuffer_t) 1 Offset 4
77                              MemberDecorate 19(PerViewConstantBuffer_t) 2 Offset 8
78                              Decorate 19(PerViewConstantBuffer_t) Block
79                              Decorate 47(g_tColor) DescriptorSet 0
80                              Decorate 47(g_tColor) Binding 0
81                              Decorate 54(g_sAniso) DescriptorSet 0
82                              Decorate 54(g_sAniso) Binding 0
83                              Decorate 69(i.vTextureCoords) Location 0
84                              Decorate 73(@entryPointOutput.vColor) Location 0
85               4:             TypeVoid
86               5:             TypeFunction 4
87               8:             TypeFloat 32
88               9:             TypeVector 8(float) 2
89    10(PS_INPUT):             TypeStruct 9(fvec2)
90              11:             TypePointer Function 10(PS_INPUT)
91              12:             TypeVector 8(float) 4
92   13(PS_OUTPUT):             TypeStruct 12(fvec4)
93              14:             TypeFunction 13(PS_OUTPUT) 11(ptr)
94              18:             TypeInt 32 0
9519(PerViewConstantBuffer_t):             TypeStruct 18(int) 18(int) 18(int)
96              20:             TypePointer PushConstant 19(PerViewConstantBuffer_t)
97              21:     20(ptr) Variable PushConstant
98              22:             TypeInt 32 1
99              23:     22(int) Constant 2
100              24:             TypePointer PushConstant 18(int)
101              27:             TypeBool
102              28:     18(int) Constant 0
103              32:             TypePointer Function 18(int)
104              34:     22(int) Constant 0
105              38:     22(int) Constant 1
106              41:             TypePointer Function 13(PS_OUTPUT)
107              43:             TypeImage 8(float) 2D sampled format:Unknown
108              44:     18(int) Constant 128
109              45:             TypeArray 43 44
110              46:             TypePointer UniformConstant 45
111    47(g_tColor):     46(ptr) Variable UniformConstant
112              49:             TypePointer UniformConstant 43
113              52:             TypeSampler
114              53:             TypePointer UniformConstant 52
115    54(g_sAniso):     53(ptr) Variable UniformConstant
116              56:             TypeSampledImage 43
117              58:             TypePointer Function 9(fvec2)
118              62:             TypePointer Function 12(fvec4)
119              68:             TypePointer Input 9(fvec2)
12069(i.vTextureCoords):     68(ptr) Variable Input
121              72:             TypePointer Output 12(fvec4)
12273(@entryPointOutput.vColor):     72(ptr) Variable Output
123                              Line 1 23 1
124       6(MainPs):           4 Function None 5
125               7:             Label
126           67(i):     11(ptr) Variable Function
127       74(param):     11(ptr) Variable Function
128                              Line 1 23 0
129              70:    9(fvec2) Load 69(i.vTextureCoords)
130              71:     58(ptr) AccessChain 67(i) 34
131                              Store 71 70
132              75:10(PS_INPUT) Load 67(i)
133                              Store 74(param) 75
134              76:13(PS_OUTPUT) FunctionCall 16(@MainPs(struct-PS_INPUT-vf21;) 74(param)
135              77:   12(fvec4) CompositeExtract 76 0
136                              Store 73(@entryPointOutput.vColor) 77
137                              Return
138                              FunctionEnd
139                              Line 1 23 1
14016(@MainPs(struct-PS_INPUT-vf21;):13(PS_OUTPUT) Function None 14
141           15(i):     11(ptr) FunctionParameter
142              17:             Label
143           33(u):     32(ptr) Variable Function
144   42(ps_output):     41(ptr) Variable Function
145                              Line 1 27 0
146              25:     24(ptr) AccessChain 21 23
147              26:     18(int) Load 25
148              29:    27(bool) INotEqual 26 28
149                              SelectionMerge 31 None
150                              BranchConditional 29 30 37
151              30:               Label
152                                Line 2 1 0
153              35:     24(ptr)   AccessChain 21 34
154              36:     18(int)   Load 35
155                                Store 33(u) 36
156                                Branch 31
157              37:               Label
158                                Line 1 30 0
159              39:     24(ptr)   AccessChain 21 38
160              40:     18(int)   Load 39
161                                Store 33(u) 40
162                                Branch 31
163              31:             Label
164                              Line 1 31 0
165              48:     18(int) Load 33(u)
166              50:     49(ptr) AccessChain 47(g_tColor) 48
167              51:          43 Load 50
168              55:          52 Load 54(g_sAniso)
169              57:          56 SampledImage 51 55
170              59:     58(ptr) AccessChain 15(i) 34
171              60:    9(fvec2) Load 59
172              61:   12(fvec4) ImageSampleImplicitLod 57 60
173              63:     62(ptr) AccessChain 42(ps_output) 34
174                              Store 63 61
175                              Line 1 32 0
176              64:13(PS_OUTPUT) Load 42(ps_output)
177                              ReturnValue 64
178                              FunctionEnd
179