blob: c89c1a3c3754b18cab68551c2f5bdcf734d54a48 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 111
; 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_count_trailing_zeros "tint_count_trailing_zeros"
OpName %v "v"
OpName %x "x"
OpName %countTrailingZeros_1dc84a "countTrailingZeros_1dc84a"
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
%v4int = OpTypeVector %int 4
%prevent_dce_block = OpTypeStruct %v4int
%_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block
%prevent_dce = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer
%14 = OpTypeFunction %v4int %v4int
%uint = OpTypeInt 32 0
%v4uint = OpTypeVector %uint 4
%_ptr_Function_v4uint = OpTypePointer Function %v4uint
%23 = OpConstantNull %v4uint
%bool = OpTypeBool
%v4bool = OpTypeVector %bool 4
%uint_65535 = OpConstant %uint 65535
%30 = OpConstantComposite %v4uint %uint_65535 %uint_65535 %uint_65535 %uint_65535
%uint_16 = OpConstant %uint 16
%33 = OpConstantComposite %v4uint %uint_16 %uint_16 %uint_16 %uint_16
%uint_255 = OpConstant %uint 255
%40 = OpConstantComposite %v4uint %uint_255 %uint_255 %uint_255 %uint_255
%uint_8 = OpConstant %uint 8
%43 = OpConstantComposite %v4uint %uint_8 %uint_8 %uint_8 %uint_8
%uint_15 = OpConstant %uint 15
%50 = OpConstantComposite %v4uint %uint_15 %uint_15 %uint_15 %uint_15
%uint_4 = OpConstant %uint 4
%53 = OpConstantComposite %v4uint %uint_4 %uint_4 %uint_4 %uint_4
%uint_3 = OpConstant %uint 3
%60 = OpConstantComposite %v4uint %uint_3 %uint_3 %uint_3 %uint_3
%uint_2 = OpConstant %uint 2
%63 = OpConstantComposite %v4uint %uint_2 %uint_2 %uint_2 %uint_2
%uint_1 = OpConstant %uint 1
%70 = OpConstantComposite %v4uint %uint_1 %uint_1 %uint_1 %uint_1
%void = OpTypeVoid
%81 = OpTypeFunction %void
%int_1 = OpConstant %int 1
%86 = OpConstantComposite %v4int %int_1 %int_1 %int_1 %int_1
%_ptr_Function_v4int = OpTypePointer Function %v4int
%89 = OpConstantNull %v4int
%uint_0 = OpConstant %uint 0
%_ptr_StorageBuffer_v4int = OpTypePointer StorageBuffer %v4int
%97 = OpTypeFunction %v4float
%float_1 = OpConstant %float 1
%tint_count_trailing_zeros = OpFunction %v4int None %14
%v = OpFunctionParameter %v4int
%17 = OpLabel
%x = OpVariable %_ptr_Function_v4uint Function %23
%18 = OpBitcast %v4uint %v
OpStore %x %18
%28 = OpLoad %v4uint %x
%31 = OpBitwiseAnd %v4uint %28 %30
%25 = OpINotEqual %v4bool %31 %23
%24 = OpSelect %v4uint %25 %23 %33
%34 = OpLoad %v4uint %x
%35 = OpShiftRightLogical %v4uint %34 %24
OpStore %x %35
%38 = OpLoad %v4uint %x
%41 = OpBitwiseAnd %v4uint %38 %40
%37 = OpINotEqual %v4bool %41 %23
%36 = OpSelect %v4uint %37 %23 %43
%44 = OpLoad %v4uint %x
%45 = OpShiftRightLogical %v4uint %44 %36
OpStore %x %45
%48 = OpLoad %v4uint %x
%51 = OpBitwiseAnd %v4uint %48 %50
%47 = OpINotEqual %v4bool %51 %23
%46 = OpSelect %v4uint %47 %23 %53
%54 = OpLoad %v4uint %x
%55 = OpShiftRightLogical %v4uint %54 %46
OpStore %x %55
%58 = OpLoad %v4uint %x
%61 = OpBitwiseAnd %v4uint %58 %60
%57 = OpINotEqual %v4bool %61 %23
%56 = OpSelect %v4uint %57 %23 %63
%64 = OpLoad %v4uint %x
%65 = OpShiftRightLogical %v4uint %64 %56
OpStore %x %65
%68 = OpLoad %v4uint %x
%71 = OpBitwiseAnd %v4uint %68 %70
%67 = OpINotEqual %v4bool %71 %23
%66 = OpSelect %v4uint %67 %23 %70
%73 = OpLoad %v4uint %x
%74 = OpIEqual %v4bool %73 %23
%72 = OpSelect %v4uint %74 %70 %23
%76 = OpBitwiseOr %v4uint %24 %36
%77 = OpBitwiseOr %v4uint %76 %46
%78 = OpBitwiseOr %v4uint %77 %56
%79 = OpBitwiseOr %v4uint %78 %66
%80 = OpIAdd %v4uint %79 %72
%75 = OpBitcast %v4int %80
OpReturnValue %75
OpFunctionEnd
%countTrailingZeros_1dc84a = OpFunction %void None %81
%84 = OpLabel
%arg_0 = OpVariable %_ptr_Function_v4int Function %89
%res = OpVariable %_ptr_Function_v4int Function %89
OpStore %arg_0 %86
%91 = OpLoad %v4int %arg_0
%90 = OpFunctionCall %v4int %tint_count_trailing_zeros %91
OpStore %res %90
%95 = OpAccessChain %_ptr_StorageBuffer_v4int %prevent_dce %uint_0
%96 = OpLoad %v4int %res
OpStore %95 %96
OpReturn
OpFunctionEnd
%vertex_main_inner = OpFunction %v4float None %97
%99 = OpLabel
%100 = OpFunctionCall %void %countTrailingZeros_1dc84a
OpReturnValue %5
OpFunctionEnd
%vertex_main = OpFunction %void None %81
%102 = OpLabel
%103 = OpFunctionCall %v4float %vertex_main_inner
OpStore %value %103
OpStore %vertex_point_size %float_1
OpReturn
OpFunctionEnd
%fragment_main = OpFunction %void None %81
%106 = OpLabel
%107 = OpFunctionCall %void %countTrailingZeros_1dc84a
OpReturn
OpFunctionEnd
%compute_main = OpFunction %void None %81
%109 = OpLabel
%110 = OpFunctionCall %void %countTrailingZeros_1dc84a
OpReturn
OpFunctionEnd