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 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 1 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 Line 17 25 1 116 5(MainPs): 3 Function None 4 117 NoLine 118 6: Label 119 Line 17 25 0 120 71: 8(fvec2) Load 70(i.vTextureCoords) 121 Line 17 29 0 122 83: 24(ptr) AccessChain 21 23 123 84: 18(int) Load 83 124 85: 27(bool) INotEqual 84 28 125 SelectionMerge 92 None 126 BranchConditional 85 86 89 127 86: Label 128 Line 32 1 0 129 87: 24(ptr) AccessChain 21 35 130 88: 18(int) Load 87 131 Branch 92 132 89: Label 133 Line 17 32 0 134 90: 24(ptr) AccessChain 21 39 135 91: 18(int) Load 90 136 Branch 92 137 92: Label 138 115: 18(int) Phi 88 86 91 89 139 Line 17 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: 11(fvec4) ImageSampleImplicitLod 97 71 145 Line 17 25 0 146 Store 74(@entryPointOutput.vColor) 100 147 Return 148 FunctionEnd 149