1 hlsl.pp.line3.frag 2 // Module Version 10000 3 // Generated by (magic number): 80007 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 18 Texture2D g_tColor[ 128 ] ; 19 20 layout (push_constant) cbuffer PerViewConstantBuffer_t 21 { 22 uint g_nDataIdx; 23 uint g_nDataIdx2; 24 bool g_B; 25 } ; 26 27 SamplerState g_sAniso; 28 29 struct PS_INPUT 30 { 31 float2 vTextureCoords : TEXCOORD2 ; 32 } ; 33 34 struct PS_OUTPUT 35 { 36 float4 vColor : SV_Target0 ; 37 } ; 38 39 PS_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 95 19(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) 120 69(i.vTextureCoords): 68(ptr) Variable Input 121 72: TypePointer Output 12(fvec4) 122 73(@entryPointOutput.vColor): 72(ptr) Variable Output 123 6(MainPs): 4 Function None 5 124 7: Label 125 67(i): 11(ptr) Variable Function 126 74(param): 11(ptr) Variable Function 127 Line 1 23 0 128 70: 9(fvec2) Load 69(i.vTextureCoords) 129 71: 58(ptr) AccessChain 67(i) 34 130 Store 71 70 131 75:10(PS_INPUT) Load 67(i) 132 Store 74(param) 75 133 76:13(PS_OUTPUT) FunctionCall 16(@MainPs(struct-PS_INPUT-vf21;) 74(param) 134 77: 12(fvec4) CompositeExtract 76 0 135 Store 73(@entryPointOutput.vColor) 77 136 Return 137 FunctionEnd 138 16(@MainPs(struct-PS_INPUT-vf21;):13(PS_OUTPUT) Function None 14 139 15(i): 11(ptr) FunctionParameter 140 17: Label 141 33(u): 32(ptr) Variable Function 142 42(ps_output): 41(ptr) Variable Function 143 Line 1 27 0 144 25: 24(ptr) AccessChain 21 23 145 26: 18(int) Load 25 146 29: 27(bool) INotEqual 26 28 147 SelectionMerge 31 None 148 BranchConditional 29 30 37 149 30: Label 150 Line 2 1 0 151 35: 24(ptr) AccessChain 21 34 152 36: 18(int) Load 35 153 Store 33(u) 36 154 Branch 31 155 37: Label 156 Line 1 30 0 157 39: 24(ptr) AccessChain 21 38 158 40: 18(int) Load 39 159 Store 33(u) 40 160 Branch 31 161 31: Label 162 Line 1 31 0 163 48: 18(int) Load 33(u) 164 50: 49(ptr) AccessChain 47(g_tColor) 48 165 51: 43 Load 50 166 55: 52 Load 54(g_sAniso) 167 57: 56 SampledImage 51 55 168 59: 58(ptr) AccessChain 15(i) 34 169 60: 9(fvec2) Load 59 170 61: 12(fvec4) ImageSampleImplicitLod 57 60 171 63: 62(ptr) AccessChain 42(ps_output) 34 172 Store 63 61 173 Line 1 32 0 174 64:13(PS_OUTPUT) Load 42(ps_output) 175 ReturnValue 64 176 FunctionEnd 177