blob: f6d04ca44e2c7f719ecbb71ae7f266b634a70b5b [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 77
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %unused_entry_point "unused_entry_point"
OpExecutionMode %unused_entry_point LocalSize 1 1 1
OpName %my_global "my_global"
OpName %my_uniform_block "my_uniform_block"
OpMemberName %my_uniform_block 0 "inner"
OpName %my_uniform "my_uniform"
OpName %my_texture "my_texture"
OpName %my_sampler "my_sampler"
OpName %unused_entry_point "unused_entry_point"
OpName %foo_member_initialize "foo_member_initialize"
OpName %vb2 "vb2"
OpName %foo_default_initialize "foo_default_initialize"
OpName %vb2_0 "vb2"
OpDecorate %my_uniform_block Block
OpMemberDecorate %my_uniform_block 0 Offset 0
OpDecorate %my_uniform NonWritable
OpDecorate %my_uniform DescriptorSet 0
OpDecorate %my_uniform Binding 0
OpDecorate %my_texture DescriptorSet 0
OpDecorate %my_texture Binding 1
OpDecorate %my_sampler DescriptorSet 0
OpDecorate %my_sampler Binding 2
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Private_v4float = OpTypePointer Private %v4float
%5 = OpConstantNull %v4float
%my_global = OpVariable %_ptr_Private_v4float Private %5
%my_uniform_block = OpTypeStruct %float
%_ptr_Uniform_my_uniform_block = OpTypePointer Uniform %my_uniform_block
%my_uniform = OpVariable %_ptr_Uniform_my_uniform_block Uniform
%11 = OpTypeImage %float 2D 0 0 0 1 Unknown
%_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11
%my_texture = OpVariable %_ptr_UniformConstant_11 UniformConstant
%14 = OpTypeSampler
%_ptr_UniformConstant_14 = OpTypePointer UniformConstant %14
%my_sampler = OpVariable %_ptr_UniformConstant_14 UniformConstant
%void = OpTypeVoid
%15 = OpTypeFunction %void
%bool = OpTypeBool
%v2bool = OpTypeVector %bool 2
%_ptr_Function_v2bool = OpTypePointer Function %v2bool
%25 = OpConstantNull %v2bool
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Function_bool = OpTypePointer Function %bool
%uint_2 = OpConstant %uint 2
%_ptr_Private_float = OpTypePointer Private %float
%34 = OpConstantNull %float
%_ptr_Uniform_float = OpTypePointer Uniform %float
%float_n1 = OpConstant %float -1
%45 = OpConstantNull %bool
%54 = OpTypeSampledImage %11
%v2float = OpTypeVector %float 2
%57 = OpConstantNull %v2float
%unused_entry_point = OpFunction %void None %15
%18 = OpLabel
OpReturn
OpFunctionEnd
%foo_member_initialize = OpFunction %void None %15
%20 = OpLabel
%vb2 = OpVariable %_ptr_Function_v2bool Function %25
%29 = OpAccessChain %_ptr_Function_bool %vb2 %uint_0
%32 = OpAccessChain %_ptr_Private_float %my_global %uint_2
%33 = OpLoad %float %32
%35 = OpFOrdNotEqual %bool %33 %34
OpStore %29 %35
%36 = OpAccessChain %_ptr_Function_bool %vb2 %uint_0
%38 = OpAccessChain %_ptr_Uniform_float %my_uniform %uint_0
%39 = OpLoad %float %38
%41 = OpFOrdEqual %bool %39 %float_n1
OpStore %36 %41
%42 = OpAccessChain %_ptr_Uniform_float %my_uniform %uint_0
%43 = OpLoad %float %42
%44 = OpFOrdEqual %bool %43 %float_n1
%46 = OpCompositeConstruct %v2bool %44 %45
OpStore %vb2 %46
%47 = OpAccessChain %_ptr_Function_bool %vb2 %uint_0
%48 = OpLoad %bool %47
OpSelectionMerge %49 None
OpBranchConditional %48 %50 %49
%50 = OpLabel
%52 = OpLoad %14 %my_sampler
%53 = OpLoad %11 %my_texture
%55 = OpSampledImage %54 %53 %52
%51 = OpImageSampleImplicitLod %v4float %55 %57 Bias %34
OpBranch %49
%49 = OpLabel
OpReturn
OpFunctionEnd
%foo_default_initialize = OpFunction %void None %15
%59 = OpLabel
%vb2_0 = OpVariable %_ptr_Function_v2bool Function %25
%61 = OpAccessChain %_ptr_Function_bool %vb2_0 %uint_0
%62 = OpAccessChain %_ptr_Private_float %my_global %uint_2
%63 = OpLoad %float %62
%64 = OpFOrdNotEqual %bool %63 %34
OpStore %61 %64
%65 = OpAccessChain %_ptr_Function_bool %vb2_0 %uint_0
%66 = OpAccessChain %_ptr_Uniform_float %my_uniform %uint_0
%67 = OpLoad %float %66
%68 = OpFOrdEqual %bool %67 %float_n1
OpStore %65 %68
OpStore %vb2_0 %25
%69 = OpAccessChain %_ptr_Function_bool %vb2_0 %uint_0
%70 = OpLoad %bool %69
OpSelectionMerge %71 None
OpBranchConditional %70 %72 %71
%72 = OpLabel
%74 = OpLoad %14 %my_sampler
%75 = OpLoad %11 %my_texture
%76 = OpSampledImage %54 %75 %74
%73 = OpImageSampleImplicitLod %v4float %76 %57 Bias %34
OpBranch %71
%71 = OpLabel
OpReturn
OpFunctionEnd