blob: 70122c915bed8c9471c093145fe4fad725349be9 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 66
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main"
OpExecutionMode %main OriginUpperLeft
OpName %x_10 "x_10"
OpName %x_20 "x_20"
OpName %x_30 "x_30"
OpName %main_1 "main_1"
OpName %float_var "float_var"
OpName %main "main"
OpDecorate %x_10 DescriptorSet 0
OpDecorate %x_10 Binding 0
OpDecorate %x_20 DescriptorSet 2
OpDecorate %x_20 Binding 1
OpDecorate %x_30 DescriptorSet 0
OpDecorate %x_30 Binding 1
%3 = OpTypeSampler
%_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3
%x_10 = OpVariable %_ptr_UniformConstant_3 UniformConstant
%float = OpTypeFloat 32
%6 = OpTypeImage %float 2D 1 1 0 1 Unknown
%_ptr_UniformConstant_6 = OpTypePointer UniformConstant %6
%x_20 = OpVariable %_ptr_UniformConstant_6 UniformConstant
%_ptr_UniformConstant_3_0 = OpTypePointer UniformConstant %3
%x_30 = OpVariable %_ptr_UniformConstant_3_0 UniformConstant
%void = OpTypeVoid
%10 = OpTypeFunction %void
%_ptr_Function_float = OpTypePointer Function %float
%16 = OpConstantNull %float
%int = OpTypeInt 32 1
%int_1 = OpConstant %int 1
%v2int = OpTypeVector %int 2
%int_2 = OpConstant %int 2
%21 = OpConstantComposite %v2int %int_1 %int_2
%v3int = OpTypeVector %int 3
%int_3 = OpConstant %int 3
%24 = OpConstantComposite %v3int %int_1 %int_2 %int_3
%v4int = OpTypeVector %int 4
%int_4 = OpConstant %int 4
%27 = OpConstantComposite %v4int %int_1 %int_2 %int_3 %int_4
%uint = OpTypeInt 32 0
%uint_1 = OpConstant %uint 1
%v2uint = OpTypeVector %uint 2
%uint_2 = OpConstant %uint 2
%32 = OpConstantComposite %v2uint %uint_1 %uint_2
%v3uint = OpTypeVector %uint 3
%uint_3 = OpConstant %uint 3
%35 = OpConstantComposite %v3uint %uint_1 %uint_2 %uint_3
%v4uint = OpTypeVector %uint 4
%uint_4 = OpConstant %uint 4
%38 = OpConstantComposite %v4uint %uint_1 %uint_2 %uint_3 %uint_4
%float_1 = OpConstant %float 1
%v2float = OpTypeVector %float 2
%float_2 = OpConstant %float 2
%42 = OpConstantComposite %v2float %float_1 %float_2
%v3float = OpTypeVector %float 3
%float_3 = OpConstant %float 3
%45 = OpConstantComposite %v3float %float_1 %float_2 %float_3
%v4float = OpTypeVector %float 4
%float_4 = OpConstant %float 4
%48 = OpConstantComposite %v4float %float_1 %float_2 %float_3 %float_4
%52 = OpTypeSampledImage %6
%float_0_200000003 = OpConstant %float 0.200000003
%uint_0 = OpConstant %uint 0
%main_1 = OpFunction %void None %10
%13 = OpLabel
%float_var = OpVariable %_ptr_Function_float Function %16
%50 = OpLoad %3 %x_10
%51 = OpLoad %6 %x_20
%53 = OpSampledImage %52 %51 %50
%54 = OpVectorShuffle %v2float %45 %45 0 1
%55 = OpCompositeExtract %float %54 0
%56 = OpCompositeExtract %float %54 1
%59 = OpCompositeExtract %float %45 2
%58 = OpConvertFToS %int %59
%57 = OpConvertSToF %float %58
%60 = OpCompositeConstruct %v3float %55 %56 %57
%49 = OpImageSampleDrefImplicitLod %float %53 %60 %float_0_200000003
OpReturn
OpFunctionEnd
%main = OpFunction %void None %10
%64 = OpLabel
%65 = OpFunctionCall %void %main_1
OpReturn
OpFunctionEnd