1hlsl.pp.line4.frag 2// Module Version 10000 3// Generated by (magic number): 8000b 4// Id's are bound by 116 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 7: String "C:\\Users\\Greg\\shaders\\line\\foo4.frag" 13 36: 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 23 "PerViewConstantBuffer_t" 67 MemberName 23(PerViewConstantBuffer_t) 0 "g_nDataIdx" 68 MemberName 23(PerViewConstantBuffer_t) 1 "g_nDataIdx2" 69 MemberName 23(PerViewConstantBuffer_t) 2 "g_B" 70 Name 25 "" 71 Name 48 "g_tColor" 72 Name 55 "g_sAniso" 73 Name 70 "i.vTextureCoords" 74 Name 74 "@entryPointOutput.vColor" 75 Decorate 23(PerViewConstantBuffer_t) Block 76 MemberDecorate 23(PerViewConstantBuffer_t) 0 Offset 0 77 MemberDecorate 23(PerViewConstantBuffer_t) 1 Offset 4 78 MemberDecorate 23(PerViewConstantBuffer_t) 2 Offset 8 79 Decorate 48(g_tColor) Binding 0 80 Decorate 48(g_tColor) DescriptorSet 0 81 Decorate 55(g_sAniso) Binding 1 82 Decorate 55(g_sAniso) DescriptorSet 0 83 Decorate 70(i.vTextureCoords) Location 0 84 Decorate 74(@entryPointOutput.vColor) Location 0 85 3: TypeVoid 86 4: TypeFunction 3 87 8: TypeFloat 32 88 9: TypeVector 8(float) 2 89 12: TypeVector 8(float) 4 90 20: TypeInt 32 0 9123(PerViewConstantBuffer_t): TypeStruct 20(int) 20(int) 20(int) 92 24: TypePointer PushConstant 23(PerViewConstantBuffer_t) 93 25: 24(ptr) Variable PushConstant 94 26: TypeInt 32 1 95 27: 26(int) Constant 2 96 28: TypePointer PushConstant 20(int) 97 31: TypeBool 98 32: 20(int) Constant 0 99 37: 26(int) Constant 0 100 41: 26(int) Constant 1 101 44: TypeImage 8(float) 2D sampled format:Unknown 102 45: 20(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 9(fvec2) 11270(i.vTextureCoords): 69(ptr) Variable Input 113 73: TypePointer Output 12(fvec4) 11474(@entryPointOutput.vColor): 73(ptr) Variable Output 115 Line 7 25 1 116 5(MainPs): 3 Function None 4 117 NoLine 118 6: Label 119 Line 7 25 0 120 71: 9(fvec2) Load 70(i.vTextureCoords) 121 Line 7 29 0 122 83: 28(ptr) AccessChain 25 27 123 84: 20(int) Load 83 124 85: 31(bool) INotEqual 84 32 125 SelectionMerge 92 None 126 BranchConditional 85 86 89 127 86: Label 128 Line 36 1 0 129 87: 28(ptr) AccessChain 25 37 130 88: 20(int) Load 87 131 Branch 92 132 89: Label 133 Line 7 32 0 134 90: 28(ptr) AccessChain 25 41 135 91: 20(int) Load 90 136 Branch 92 137 92: Label 138 115: 20(int) Phi 88 86 91 89 139 Line 7 33 0 140 94: 50(ptr) AccessChain 48(g_tColor) 115 141 95: 44 Load 94 142 96: 53 Load 55(g_sAniso) 143 97: 57 SampledImage 95 96 144 100: 12(fvec4) ImageSampleImplicitLod 97 71 145 Line 7 25 0 146 Store 74(@entryPointOutput.vColor) 100 147 Return 148 FunctionEnd 149