blob: bb911ba4d3a467cb3fd6ec81d138fafc6778c5be [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 113
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size
OpEntryPoint Fragment %fragment_main "fragment_main"
OpEntryPoint GLCompute %compute_main "compute_main"
OpExecutionMode %fragment_main OriginUpperLeft
OpExecutionMode %compute_main LocalSize 1 1 1
OpName %value "value"
OpName %vertex_point_size "vertex_point_size"
OpName %prevent_dce_block "prevent_dce_block"
OpMemberName %prevent_dce_block 0 "inner"
OpName %prevent_dce "prevent_dce"
OpName %tint_first_trailing_bit "tint_first_trailing_bit"
OpName %v "v"
OpName %x "x"
OpName %firstTrailingBit_50c072 "firstTrailingBit_50c072"
OpName %arg_0 "arg_0"
OpName %res "res"
OpName %vertex_main_inner "vertex_main_inner"
OpName %vertex_main "vertex_main"
OpName %fragment_main "fragment_main"
OpName %compute_main "compute_main"
OpDecorate %value BuiltIn Position
OpDecorate %vertex_point_size BuiltIn PointSize
OpDecorate %prevent_dce_block Block
OpMemberDecorate %prevent_dce_block 0 Offset 0
OpDecorate %prevent_dce DescriptorSet 2
OpDecorate %prevent_dce Binding 0
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
%5 = OpConstantNull %v4float
%value = OpVariable %_ptr_Output_v4float Output %5
%_ptr_Output_float = OpTypePointer Output %float
%8 = OpConstantNull %float
%vertex_point_size = OpVariable %_ptr_Output_float Output %8
%int = OpTypeInt 32 1
%v2int = OpTypeVector %int 2
%prevent_dce_block = OpTypeStruct %v2int
%_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block
%prevent_dce = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer
%14 = OpTypeFunction %v2int %v2int
%uint = OpTypeInt 32 0
%v2uint = OpTypeVector %uint 2
%_ptr_Function_v2uint = OpTypePointer Function %v2uint
%23 = OpConstantNull %v2uint
%bool = OpTypeBool
%v2bool = OpTypeVector %bool 2
%uint_65535 = OpConstant %uint 65535
%30 = OpConstantComposite %v2uint %uint_65535 %uint_65535
%uint_16 = OpConstant %uint 16
%33 = OpConstantComposite %v2uint %uint_16 %uint_16
%uint_255 = OpConstant %uint 255
%40 = OpConstantComposite %v2uint %uint_255 %uint_255
%uint_8 = OpConstant %uint 8
%43 = OpConstantComposite %v2uint %uint_8 %uint_8
%uint_15 = OpConstant %uint 15
%50 = OpConstantComposite %v2uint %uint_15 %uint_15
%uint_4 = OpConstant %uint 4
%53 = OpConstantComposite %v2uint %uint_4 %uint_4
%uint_3 = OpConstant %uint 3
%60 = OpConstantComposite %v2uint %uint_3 %uint_3
%uint_2 = OpConstant %uint 2
%63 = OpConstantComposite %v2uint %uint_2 %uint_2
%uint_1 = OpConstant %uint 1
%70 = OpConstantComposite %v2uint %uint_1 %uint_1
%uint_4294967295 = OpConstant %uint 4294967295
%76 = OpConstantComposite %v2uint %uint_4294967295 %uint_4294967295
%void = OpTypeVoid
%83 = OpTypeFunction %void
%int_1 = OpConstant %int 1
%88 = OpConstantComposite %v2int %int_1 %int_1
%_ptr_Function_v2int = OpTypePointer Function %v2int
%91 = OpConstantNull %v2int
%uint_0 = OpConstant %uint 0
%_ptr_StorageBuffer_v2int = OpTypePointer StorageBuffer %v2int
%99 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%tint_first_trailing_bit = OpFunction %v2int None %14
%v = OpFunctionParameter %v2int
%17 = OpLabel
%x = OpVariable %_ptr_Function_v2uint Function %23
%18 = OpBitcast %v2uint %v
OpStore %x %18
%28 = OpLoad %v2uint %x
%31 = OpBitwiseAnd %v2uint %28 %30
%25 = OpINotEqual %v2bool %31 %23
%24 = OpSelect %v2uint %25 %23 %33
%34 = OpLoad %v2uint %x
%35 = OpShiftRightLogical %v2uint %34 %24
OpStore %x %35
%38 = OpLoad %v2uint %x
%41 = OpBitwiseAnd %v2uint %38 %40
%37 = OpINotEqual %v2bool %41 %23
%36 = OpSelect %v2uint %37 %23 %43
%44 = OpLoad %v2uint %x
%45 = OpShiftRightLogical %v2uint %44 %36
OpStore %x %45
%48 = OpLoad %v2uint %x
%51 = OpBitwiseAnd %v2uint %48 %50
%47 = OpINotEqual %v2bool %51 %23
%46 = OpSelect %v2uint %47 %23 %53
%54 = OpLoad %v2uint %x
%55 = OpShiftRightLogical %v2uint %54 %46
OpStore %x %55
%58 = OpLoad %v2uint %x
%61 = OpBitwiseAnd %v2uint %58 %60
%57 = OpINotEqual %v2bool %61 %23
%56 = OpSelect %v2uint %57 %23 %63
%64 = OpLoad %v2uint %x
%65 = OpShiftRightLogical %v2uint %64 %56
OpStore %x %65
%68 = OpLoad %v2uint %x
%71 = OpBitwiseAnd %v2uint %68 %70
%67 = OpINotEqual %v2bool %71 %23
%66 = OpSelect %v2uint %67 %23 %70
%73 = OpLoad %v2uint %x
%74 = OpIEqual %v2bool %73 %23
%72 = OpSelect %v2uint %74 %76 %23
%78 = OpBitwiseOr %v2uint %24 %36
%79 = OpBitwiseOr %v2uint %78 %46
%80 = OpBitwiseOr %v2uint %79 %56
%81 = OpBitwiseOr %v2uint %80 %66
%82 = OpBitwiseOr %v2uint %81 %72
%77 = OpBitcast %v2int %82
OpReturnValue %77
OpFunctionEnd
%firstTrailingBit_50c072 = OpFunction %void None %83
%86 = OpLabel
%arg_0 = OpVariable %_ptr_Function_v2int Function %91
%res = OpVariable %_ptr_Function_v2int Function %91
OpStore %arg_0 %88
%93 = OpLoad %v2int %arg_0
%92 = OpFunctionCall %v2int %tint_first_trailing_bit %93
OpStore %res %92
%97 = OpAccessChain %_ptr_StorageBuffer_v2int %prevent_dce %uint_0
%98 = OpLoad %v2int %res
OpStore %97 %98
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %99
%101 = OpLabel
%102 = OpFunctionCall %void %firstTrailingBit_50c072
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %83
%104 = OpLabel
%105 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %105
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %83
%108 = OpLabel
%109 = OpFunctionCall %void %firstTrailingBit_50c072
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %83
%111 = OpLabel
%112 = OpFunctionCall %void %firstTrailingBit_50c072
OpReturn
OpFunctionEnd