2022-06-02 14:36:10 +00:00
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.3
|
|
|
|
; Generator: Google Tint Compiler; 0
|
2023-03-06 18:25:08 +00:00
|
|
|
; Bound: 111
|
2022-06-02 14:36:10 +00:00
|
|
|
; 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"
|
2023-03-06 18:25:08 +00:00
|
|
|
OpName %prevent_dce_block "prevent_dce_block"
|
|
|
|
OpMemberName %prevent_dce_block 0 "inner"
|
|
|
|
OpName %prevent_dce "prevent_dce"
|
2022-06-02 14:36:10 +00:00
|
|
|
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
|
2023-03-06 18:25:08 +00:00
|
|
|
OpDecorate %prevent_dce_block Block
|
|
|
|
OpMemberDecorate %prevent_dce_block 0 Offset 0
|
|
|
|
OpDecorate %prevent_dce DescriptorSet 2
|
|
|
|
OpDecorate %prevent_dce Binding 0
|
2022-06-02 14:36:10 +00:00
|
|
|
%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
|
2023-03-06 18:25:08 +00:00
|
|
|
%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
|
2022-06-02 14:36:10 +00:00
|
|
|
%uint = OpTypeInt 32 0
|
|
|
|
%v4uint = OpTypeVector %uint 4
|
|
|
|
%_ptr_Function_v4uint = OpTypePointer Function %v4uint
|
2023-03-06 18:25:08 +00:00
|
|
|
%23 = OpConstantNull %v4uint
|
2022-06-02 14:36:10 +00:00
|
|
|
%bool = OpTypeBool
|
|
|
|
%v4bool = OpTypeVector %bool 4
|
|
|
|
%uint_65535 = OpConstant %uint 65535
|
2023-03-06 18:25:08 +00:00
|
|
|
%30 = OpConstantComposite %v4uint %uint_65535 %uint_65535 %uint_65535 %uint_65535
|
2022-06-02 14:36:10 +00:00
|
|
|
%uint_16 = OpConstant %uint 16
|
2023-03-06 18:25:08 +00:00
|
|
|
%33 = OpConstantComposite %v4uint %uint_16 %uint_16 %uint_16 %uint_16
|
2022-06-02 14:36:10 +00:00
|
|
|
%uint_255 = OpConstant %uint 255
|
2023-03-06 18:25:08 +00:00
|
|
|
%40 = OpConstantComposite %v4uint %uint_255 %uint_255 %uint_255 %uint_255
|
2022-06-02 14:36:10 +00:00
|
|
|
%uint_8 = OpConstant %uint 8
|
2023-03-06 18:25:08 +00:00
|
|
|
%43 = OpConstantComposite %v4uint %uint_8 %uint_8 %uint_8 %uint_8
|
2022-06-02 14:36:10 +00:00
|
|
|
%uint_15 = OpConstant %uint 15
|
2023-03-06 18:25:08 +00:00
|
|
|
%50 = OpConstantComposite %v4uint %uint_15 %uint_15 %uint_15 %uint_15
|
2022-06-02 14:36:10 +00:00
|
|
|
%uint_4 = OpConstant %uint 4
|
2023-03-06 18:25:08 +00:00
|
|
|
%53 = OpConstantComposite %v4uint %uint_4 %uint_4 %uint_4 %uint_4
|
2022-06-02 14:36:10 +00:00
|
|
|
%uint_3 = OpConstant %uint 3
|
2023-03-06 18:25:08 +00:00
|
|
|
%60 = OpConstantComposite %v4uint %uint_3 %uint_3 %uint_3 %uint_3
|
2022-06-02 14:36:10 +00:00
|
|
|
%uint_2 = OpConstant %uint 2
|
2023-03-06 18:25:08 +00:00
|
|
|
%63 = OpConstantComposite %v4uint %uint_2 %uint_2 %uint_2 %uint_2
|
2022-06-02 14:36:10 +00:00
|
|
|
%uint_1 = OpConstant %uint 1
|
2023-03-06 18:25:08 +00:00
|
|
|
%70 = OpConstantComposite %v4uint %uint_1 %uint_1 %uint_1 %uint_1
|
2022-06-02 14:36:10 +00:00
|
|
|
%void = OpTypeVoid
|
2023-03-06 18:25:08 +00:00
|
|
|
%81 = OpTypeFunction %void
|
2022-07-26 14:27:25 +00:00
|
|
|
%int_1 = OpConstant %int 1
|
2023-03-06 18:25:08 +00:00
|
|
|
%86 = OpConstantComposite %v4int %int_1 %int_1 %int_1 %int_1
|
2022-06-02 14:36:10 +00:00
|
|
|
%_ptr_Function_v4int = OpTypePointer Function %v4int
|
2023-03-06 18:25:08 +00:00
|
|
|
%89 = OpConstantNull %v4int
|
|
|
|
%uint_0 = OpConstant %uint 0
|
|
|
|
%_ptr_StorageBuffer_v4int = OpTypePointer StorageBuffer %v4int
|
|
|
|
%97 = OpTypeFunction %v4float
|
2022-06-02 14:36:10 +00:00
|
|
|
%float_1 = OpConstant %float 1
|
2023-03-06 18:25:08 +00:00
|
|
|
%tint_count_trailing_zeros = OpFunction %v4int None %14
|
2022-06-02 14:36:10 +00:00
|
|
|
%v = OpFunctionParameter %v4int
|
2023-03-06 18:25:08 +00:00
|
|
|
%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
|
2022-06-02 14:36:10 +00:00
|
|
|
OpFunctionEnd
|
2023-03-06 18:25:08 +00:00
|
|
|
%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
|
2022-06-02 14:36:10 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2023-03-06 18:25:08 +00:00
|
|
|
%vertex_main_inner = OpFunction %v4float None %97
|
|
|
|
%99 = OpLabel
|
|
|
|
%100 = OpFunctionCall %void %countTrailingZeros_1dc84a
|
2022-06-02 14:36:10 +00:00
|
|
|
OpReturnValue %5
|
|
|
|
OpFunctionEnd
|
2023-03-06 18:25:08 +00:00
|
|
|
%vertex_main = OpFunction %void None %81
|
|
|
|
%102 = OpLabel
|
|
|
|
%103 = OpFunctionCall %v4float %vertex_main_inner
|
|
|
|
OpStore %value %103
|
2022-06-02 14:36:10 +00:00
|
|
|
OpStore %vertex_point_size %float_1
|
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2023-03-06 18:25:08 +00:00
|
|
|
%fragment_main = OpFunction %void None %81
|
|
|
|
%106 = OpLabel
|
|
|
|
%107 = OpFunctionCall %void %countTrailingZeros_1dc84a
|
2022-06-02 14:36:10 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2023-03-06 18:25:08 +00:00
|
|
|
%compute_main = OpFunction %void None %81
|
|
|
|
%109 = OpLabel
|
|
|
|
%110 = OpFunctionCall %void %countTrailingZeros_1dc84a
|
2022-06-02 14:36:10 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|