| 1 |
; SPIR-V |
| 2 |
; Version: 1.0 |
| 3 |
; Generator: Khronos Glslang Reference Front End; 2 |
| 4 |
; Bound: 113 |
| 5 |
; Schema: 0 |
| 6 |
OpCapability Shader |
| 7 |
%1 = OpExtInstImport "GLSL.std.450" |
| 8 |
OpMemoryModel Logical GLSL450 |
| 9 |
OpEntryPoint Fragment %main "main" %xIn_1 %_entryPointOutput |
| 10 |
OpExecutionMode %main OriginUpperLeft |
| 11 |
OpSource HLSL 500 |
| 12 |
OpName %main "main" |
| 13 |
OpName %sample_fetch_t21_vi3_ "sample_fetch(t21;vi3;" |
| 14 |
OpName %tex "tex" |
| 15 |
OpName %UV "UV" |
| 16 |
OpName %sample_sampler_t21_vf2_ "sample_sampler(t21;vf2;" |
| 17 |
OpName %tex_0 "tex" |
| 18 |
OpName %UV_0 "UV" |
| 19 |
OpName %_main_vf4_ "@main(vf4;" |
| 20 |
OpName %xIn "xIn" |
| 21 |
OpName %Sampler "Sampler" |
| 22 |
OpName %coord "coord" |
| 23 |
OpName %value "value" |
| 24 |
OpName %SampledImage "SampledImage" |
| 25 |
OpName %param "param" |
| 26 |
OpName %param_0 "param" |
| 27 |
OpName %param_1 "param" |
| 28 |
OpName %param_2 "param" |
| 29 |
OpName %xIn_0 "xIn" |
| 30 |
OpName %xIn_1 "xIn" |
| 31 |
OpName %_entryPointOutput "@entryPointOutput" |
| 32 |
OpName %param_3 "param" |
| 33 |
OpDecorate %Sampler DescriptorSet 0 |
| 34 |
OpDecorate %Sampler Binding 0 |
| 35 |
OpDecorate %SampledImage DescriptorSet 0 |
| 36 |
OpDecorate %SampledImage Binding 0 |
| 37 |
OpDecorate %xIn_1 BuiltIn FragCoord |
| 38 |
OpDecorate %_entryPointOutput Location 0 |
| 39 |
%void = OpTypeVoid |
| 40 |
%3 = OpTypeFunction %void |
| 41 |
%float = OpTypeFloat 32 |
| 42 |
%7 = OpTypeImage %float 2D 0 0 0 1 Unknown |
| 43 |
%_ptr_Function_7 = OpTypePointer Function %7 |
| 44 |
%int = OpTypeInt 32 1 |
| 45 |
%v3int = OpTypeVector %int 3 |
| 46 |
%_ptr_Function_v3int = OpTypePointer Function %v3int |
| 47 |
%v4float = OpTypeVector %float 4 |
| 48 |
%13 = OpTypeFunction %v4float %_ptr_Function_7 %_ptr_Function_v3int |
| 49 |
%v2float = OpTypeVector %float 2 |
| 50 |
%_ptr_Function_v2float = OpTypePointer Function %v2float |
| 51 |
%20 = OpTypeFunction %v4float %_ptr_Function_7 %_ptr_Function_v2float |
| 52 |
%_ptr_Function_v4float = OpTypePointer Function %v4float |
| 53 |
%26 = OpTypeFunction %v4float %_ptr_Function_v4float |
| 54 |
%v2int = OpTypeVector %int 2 |
| 55 |
%uint = OpTypeInt 32 0 |
| 56 |
%uint_2 = OpConstant %uint 2 |
| 57 |
%_ptr_Function_int = OpTypePointer Function %int |
| 58 |
%43 = OpTypeSampler |
| 59 |
%_ptr_UniformConstant_43 = OpTypePointer UniformConstant %43 |
| 60 |
%Sampler = OpVariable %_ptr_UniformConstant_43 UniformConstant |
| 61 |
%47 = OpTypeSampledImage %7 |
| 62 |
%uint_0 = OpConstant %uint 0 |
| 63 |
%_ptr_Function_float = OpTypePointer Function %float |
| 64 |
%float_1280 = OpConstant %float 1280 |
| 65 |
%uint_1 = OpConstant %uint 1 |
| 66 |
%float_720 = OpConstant %float 720 |
| 67 |
%int_0 = OpConstant %int 0 |
| 68 |
%_ptr_UniformConstant_7 = OpTypePointer UniformConstant %7 |
| 69 |
%SampledImage = OpVariable %_ptr_UniformConstant_7 UniformConstant |
| 70 |
%_ptr_Input_v4float = OpTypePointer Input %v4float |
| 71 |
%xIn_1 = OpVariable %_ptr_Input_v4float Input |
| 72 |
%_ptr_Output_v4float = OpTypePointer Output %v4float |
| 73 |
%_entryPointOutput = OpVariable %_ptr_Output_v4float Output |
| 74 |
%main = OpFunction %void None %3 |
| 75 |
%5 = OpLabel |
| 76 |
%xIn_0 = OpVariable %_ptr_Function_v4float Function |
| 77 |
%param_3 = OpVariable %_ptr_Function_v4float Function |
| 78 |
%107 = OpLoad %v4float %xIn_1 |
| 79 |
OpStore %xIn_0 %107 |
| 80 |
%111 = OpLoad %v4float %xIn_0 |
| 81 |
OpStore %param_3 %111 |
| 82 |
%112 = OpFunctionCall %v4float %_main_vf4_ %param_3 |
| 83 |
OpStore %_entryPointOutput %112 |
| 84 |
OpReturn |
| 85 |
OpFunctionEnd |
| 86 |
%sample_fetch_t21_vi3_ = OpFunction %v4float None %13 |
| 87 |
%tex = OpFunctionParameter %_ptr_Function_7 |
| 88 |
%UV = OpFunctionParameter %_ptr_Function_v3int |
| 89 |
%17 = OpLabel |
| 90 |
%30 = OpLoad %7 %tex |
| 91 |
%32 = OpLoad %v3int %UV |
| 92 |
%33 = OpVectorShuffle %v2int %32 %32 0 1 |
| 93 |
%37 = OpAccessChain %_ptr_Function_int %UV %uint_2 |
| 94 |
%38 = OpLoad %int %37 |
| 95 |
%39 = OpImageFetch %v4float %30 %33 Lod %38 |
| 96 |
OpReturnValue %39 |
| 97 |
OpFunctionEnd |
| 98 |
%sample_sampler_t21_vf2_ = OpFunction %v4float None %20 |
| 99 |
%tex_0 = OpFunctionParameter %_ptr_Function_7 |
| 100 |
%UV_0 = OpFunctionParameter %_ptr_Function_v2float |
| 101 |
%24 = OpLabel |
| 102 |
%42 = OpLoad %7 %tex_0 |
| 103 |
%46 = OpLoad %43 %Sampler |
| 104 |
%48 = OpSampledImage %47 %42 %46 |
| 105 |
%49 = OpLoad %v2float %UV_0 |
| 106 |
%50 = OpImageSampleImplicitLod %v4float %48 %49 |
| 107 |
OpReturnValue %50 |
| 108 |
OpFunctionEnd |
| 109 |
%_main_vf4_ = OpFunction %v4float None %26 |
| 110 |
%xIn = OpFunctionParameter %_ptr_Function_v4float |
| 111 |
%29 = OpLabel |
| 112 |
%coord = OpVariable %_ptr_Function_v3int Function |
| 113 |
%value = OpVariable %_ptr_Function_v4float Function |
| 114 |
%param = OpVariable %_ptr_Function_7 Function |
| 115 |
%param_0 = OpVariable %_ptr_Function_v3int Function |
| 116 |
%param_1 = OpVariable %_ptr_Function_7 Function |
| 117 |
%param_2 = OpVariable %_ptr_Function_v2float Function |
| 118 |
%56 = OpAccessChain %_ptr_Function_float %xIn %uint_0 |
| 119 |
%57 = OpLoad %float %56 |
| 120 |
%59 = OpFMul %float %57 %float_1280 |
| 121 |
%60 = OpConvertFToS %int %59 |
| 122 |
%62 = OpAccessChain %_ptr_Function_float %xIn %uint_1 |
| 123 |
%63 = OpLoad %float %62 |
| 124 |
%65 = OpFMul %float %63 %float_720 |
| 125 |
%66 = OpConvertFToS %int %65 |
| 126 |
%68 = OpCompositeConstruct %v3int %60 %66 %int_0 |
| 127 |
OpStore %coord %68 |
| 128 |
%73 = OpLoad %7 %SampledImage |
| 129 |
OpStore %param %73 |
| 130 |
%75 = OpLoad %v3int %coord |
| 131 |
OpStore %param_0 %75 |
| 132 |
%76 = OpFunctionCall %v4float %sample_fetch_t21_vi3_ %param %param_0 |
| 133 |
OpStore %value %76 |
| 134 |
%77 = OpLoad %7 %SampledImage |
| 135 |
%78 = OpLoad %v3int %coord |
| 136 |
%79 = OpVectorShuffle %v2int %78 %78 0 1 |
| 137 |
%80 = OpAccessChain %_ptr_Function_int %coord %uint_2 |
| 138 |
%81 = OpLoad %int %80 |
| 139 |
%82 = OpImageFetch %v4float %77 %79 Lod %81 |
| 140 |
%83 = OpLoad %v4float %value |
| 141 |
%84 = OpFAdd %v4float %83 %82 |
| 142 |
OpStore %value %84 |
| 143 |
%86 = OpLoad %7 %SampledImage |
| 144 |
OpStore %param_1 %86 |
| 145 |
%88 = OpLoad %v4float %xIn |
| 146 |
%89 = OpVectorShuffle %v2float %88 %88 0 1 |
| 147 |
OpStore %param_2 %89 |
| 148 |
%90 = OpFunctionCall %v4float %sample_sampler_t21_vf2_ %param_1 %param_2 |
| 149 |
%91 = OpLoad %v4float %value |
| 150 |
%92 = OpFAdd %v4float %91 %90 |
| 151 |
OpStore %value %92 |
| 152 |
%93 = OpLoad %7 %SampledImage |
| 153 |
%94 = OpLoad %43 %Sampler |
| 154 |
%95 = OpSampledImage %47 %93 %94 |
| 155 |
%96 = OpLoad %v4float %xIn |
| 156 |
%97 = OpVectorShuffle %v2float %96 %96 0 1 |
| 157 |
%98 = OpImageSampleImplicitLod %v4float %95 %97 |
| 158 |
%99 = OpLoad %v4float %value |
| 159 |
%100 = OpFAdd %v4float %99 %98 |
| 160 |
OpStore %value %100 |
| 161 |
%101 = OpLoad %v4float %value |
| 162 |
OpReturnValue %101 |
| 163 |
OpFunctionEnd |