• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1hlsl.pp.line4.frag
2// Module Version 10000
3// Generated by (magic number): 80007
4// Id's are bound by 115
5
6                              Capability Shader
7               2:             ExtInstImport  "GLSL.std.450"
8                              MemoryModel Logical GLSL450
9                              EntryPoint Fragment 5  "MainPs" 70 74
10                              ExecutionMode 5 OriginUpperLeft
11               1:             String  "hlsl.pp.line4.frag"
12              17:             String  "C:\\Users\\Greg\\shaders\\line\\foo4.frag"
13              32:             String  "C:\\Users\\Greg\\shaders\\line\\u1.h"
14                              Source HLSL 500 1  "// OpModuleProcessed auto-map-locations
15// OpModuleProcessed auto-map-bindings
16// OpModuleProcessed entry-point MainPs
17// OpModuleProcessed client vulkan100
18// OpModuleProcessed target-env vulkan1.0
19// OpModuleProcessed keep-uncalled
20// OpModuleProcessed hlsl-offsets
21#line 1
22#line 1 "C:\\Users\\Greg\\shaders\\line\\foo4.frag"
23Texture2D g_tColor [ 128 ] ;
24
25layout ( push_constant ) cbuffer PerViewConstantBuffer_t
26{
27    uint g_nDataIdx ;
28    uint g_nDataIdx2 ;
29    bool g_B ;
30} ;
31
32#line 12
33SamplerState g_sAniso ;
34
35struct PS_INPUT
36{
37    float2 vTextureCoords : TEXCOORD2 ;
38} ;
39
40struct PS_OUTPUT
41{
42    float4 vColor : SV_Target0 ;
43} ;
44
45PS_OUTPUT MainPs ( PS_INPUT i )
46{
47    PS_OUTPUT ps_output ;
48
49    uint u ;
50    if ( g_B )
51
52
53#line 1 "C:\\Users\\Greg\\shaders\\line\\u1.h"
54    u = g_nDataIdx ;
55
56
57#line 31 "C:\\Users\\Greg\\shaders\\line\\foo4.frag"
58    else
59    u = g_nDataIdx2 ;
60    ps_output . vColor = g_tColor [ u ] . Sample ( g_sAniso , i . vTextureCoords . xy ) ;
61    return ps_output ;
62}
63
64"
65                              Name 5  "MainPs"
66                              Name 19  "PerViewConstantBuffer_t"
67                              MemberName 19(PerViewConstantBuffer_t) 0  "g_nDataIdx"
68                              MemberName 19(PerViewConstantBuffer_t) 1  "g_nDataIdx2"
69                              MemberName 19(PerViewConstantBuffer_t) 2  "g_B"
70                              Name 21  ""
71                              Name 48  "g_tColor"
72                              Name 55  "g_sAniso"
73                              Name 70  "i.vTextureCoords"
74                              Name 74  "@entryPointOutput.vColor"
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 48(g_tColor) DescriptorSet 0
80                              Decorate 48(g_tColor) Binding 0
81                              Decorate 55(g_sAniso) DescriptorSet 0
82                              Decorate 55(g_sAniso) Binding 0
83                              Decorate 70(i.vTextureCoords) Location 0
84                              Decorate 74(@entryPointOutput.vColor) Location 0
85               3:             TypeVoid
86               4:             TypeFunction 3
87               7:             TypeFloat 32
88               8:             TypeVector 7(float) 2
89              11:             TypeVector 7(float) 4
90              18:             TypeInt 32 0
9119(PerViewConstantBuffer_t):             TypeStruct 18(int) 18(int) 18(int)
92              20:             TypePointer PushConstant 19(PerViewConstantBuffer_t)
93              21:     20(ptr) Variable PushConstant
94              22:             TypeInt 32 1
95              23:     22(int) Constant 2
96              24:             TypePointer PushConstant 18(int)
97              27:             TypeBool
98              28:     18(int) Constant 0
99              35:     22(int) Constant 0
100              39:     22(int) Constant 1
101              44:             TypeImage 7(float) 2D sampled format:Unknown
102              45:     18(int) Constant 128
103              46:             TypeArray 44 45
104              47:             TypePointer UniformConstant 46
105    48(g_tColor):     47(ptr) Variable UniformConstant
106              50:             TypePointer UniformConstant 44
107              53:             TypeSampler
108              54:             TypePointer UniformConstant 53
109    55(g_sAniso):     54(ptr) Variable UniformConstant
110              57:             TypeSampledImage 44
111              69:             TypePointer Input 8(fvec2)
11270(i.vTextureCoords):     69(ptr) Variable Input
113              73:             TypePointer Output 11(fvec4)
11474(@entryPointOutput.vColor):     73(ptr) Variable Output
115       5(MainPs):           3 Function None 4
116               6:             Label
117                              Line 17 25 0
118              71:    8(fvec2) Load 70(i.vTextureCoords)
119                              Line 17 29 0
120              82:     24(ptr) AccessChain 21 23
121              83:     18(int) Load 82
122              84:    27(bool) INotEqual 83 28
123                              SelectionMerge 85 None
124                              BranchConditional 84 86 87
125              86:               Label
126                                Line 32 1 0
127              88:     24(ptr)   AccessChain 21 35
128              89:     18(int)   Load 88
129                                Branch 85
130              87:               Label
131                                Line 17 32 0
132              90:     24(ptr)   AccessChain 21 39
133              91:     18(int)   Load 90
134                                Branch 85
135              85:             Label
136             114:     18(int) Phi 89 86 91 87
137                              Line 17 33 0
138              93:     50(ptr) AccessChain 48(g_tColor) 114
139              94:          44 Load 93
140              95:          53 Load 55(g_sAniso)
141              96:          57 SampledImage 94 95
142              99:   11(fvec4) ImageSampleImplicitLod 96 71
143                              Line 17 25 0
144                              Store 74(@entryPointOutput.vColor) 99
145                              Return
146                              FunctionEnd
147