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: 105
|
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_1ad138 "countTrailingZeros_1ad138"
|
|
|
|
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
|
|
|
|
%uint = OpTypeInt 32 0
|
|
|
|
%v2uint = OpTypeVector %uint 2
|
2023-03-06 18:25:08 +00:00
|
|
|
%prevent_dce_block = OpTypeStruct %v2uint
|
|
|
|
%_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block
|
|
|
|
%prevent_dce = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer
|
|
|
|
%14 = OpTypeFunction %v2uint %v2uint
|
2022-06-02 14:36:10 +00:00
|
|
|
%_ptr_Function_v2uint = OpTypePointer Function %v2uint
|
2023-03-06 18:25:08 +00:00
|
|
|
%21 = OpConstantNull %v2uint
|
2022-06-02 14:36:10 +00:00
|
|
|
%bool = OpTypeBool
|
|
|
|
%v2bool = OpTypeVector %bool 2
|
|
|
|
%uint_65535 = OpConstant %uint 65535
|
2023-03-06 18:25:08 +00:00
|
|
|
%28 = OpConstantComposite %v2uint %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
|
|
|
%31 = OpConstantComposite %v2uint %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
|
|
|
%38 = OpConstantComposite %v2uint %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
|
|
|
%41 = OpConstantComposite %v2uint %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
|
|
|
%48 = OpConstantComposite %v2uint %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
|
|
|
%51 = OpConstantComposite %v2uint %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
|
|
|
%58 = OpConstantComposite %v2uint %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
|
|
|
%61 = OpConstantComposite %v2uint %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
|
|
|
%68 = OpConstantComposite %v2uint %uint_1 %uint_1
|
2022-06-02 14:36:10 +00:00
|
|
|
%void = OpTypeVoid
|
2023-03-06 18:25:08 +00:00
|
|
|
%79 = OpTypeFunction %void
|
|
|
|
%uint_0 = OpConstant %uint 0
|
|
|
|
%_ptr_StorageBuffer_v2uint = OpTypePointer StorageBuffer %v2uint
|
|
|
|
%91 = 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 %v2uint None %14
|
2022-06-02 14:36:10 +00:00
|
|
|
%v = OpFunctionParameter %v2uint
|
2023-03-06 18:25:08 +00:00
|
|
|
%17 = OpLabel
|
|
|
|
%x = OpVariable %_ptr_Function_v2uint Function %21
|
2022-06-02 14:36:10 +00:00
|
|
|
OpStore %x %v
|
2023-03-06 18:25:08 +00:00
|
|
|
%26 = OpLoad %v2uint %x
|
|
|
|
%29 = OpBitwiseAnd %v2uint %26 %28
|
|
|
|
%23 = OpINotEqual %v2bool %29 %21
|
|
|
|
%22 = OpSelect %v2uint %23 %21 %31
|
|
|
|
%32 = OpLoad %v2uint %x
|
|
|
|
%33 = OpShiftRightLogical %v2uint %32 %22
|
|
|
|
OpStore %x %33
|
|
|
|
%36 = OpLoad %v2uint %x
|
|
|
|
%39 = OpBitwiseAnd %v2uint %36 %38
|
|
|
|
%35 = OpINotEqual %v2bool %39 %21
|
|
|
|
%34 = OpSelect %v2uint %35 %21 %41
|
|
|
|
%42 = OpLoad %v2uint %x
|
|
|
|
%43 = OpShiftRightLogical %v2uint %42 %34
|
|
|
|
OpStore %x %43
|
|
|
|
%46 = OpLoad %v2uint %x
|
|
|
|
%49 = OpBitwiseAnd %v2uint %46 %48
|
|
|
|
%45 = OpINotEqual %v2bool %49 %21
|
|
|
|
%44 = OpSelect %v2uint %45 %21 %51
|
|
|
|
%52 = OpLoad %v2uint %x
|
|
|
|
%53 = OpShiftRightLogical %v2uint %52 %44
|
|
|
|
OpStore %x %53
|
|
|
|
%56 = OpLoad %v2uint %x
|
|
|
|
%59 = OpBitwiseAnd %v2uint %56 %58
|
|
|
|
%55 = OpINotEqual %v2bool %59 %21
|
|
|
|
%54 = OpSelect %v2uint %55 %21 %61
|
|
|
|
%62 = OpLoad %v2uint %x
|
|
|
|
%63 = OpShiftRightLogical %v2uint %62 %54
|
|
|
|
OpStore %x %63
|
|
|
|
%66 = OpLoad %v2uint %x
|
|
|
|
%69 = OpBitwiseAnd %v2uint %66 %68
|
|
|
|
%65 = OpINotEqual %v2bool %69 %21
|
|
|
|
%64 = OpSelect %v2uint %65 %21 %68
|
|
|
|
%71 = OpLoad %v2uint %x
|
|
|
|
%72 = OpIEqual %v2bool %71 %21
|
|
|
|
%70 = OpSelect %v2uint %72 %68 %21
|
|
|
|
%74 = OpBitwiseOr %v2uint %22 %34
|
|
|
|
%75 = OpBitwiseOr %v2uint %74 %44
|
|
|
|
%76 = OpBitwiseOr %v2uint %75 %54
|
|
|
|
%77 = OpBitwiseOr %v2uint %76 %64
|
|
|
|
%78 = OpIAdd %v2uint %77 %70
|
|
|
|
OpReturnValue %78
|
2022-06-02 14:36:10 +00:00
|
|
|
OpFunctionEnd
|
2023-03-06 18:25:08 +00:00
|
|
|
%countTrailingZeros_1ad138 = OpFunction %void None %79
|
|
|
|
%82 = OpLabel
|
|
|
|
%arg_0 = OpVariable %_ptr_Function_v2uint Function %21
|
|
|
|
%res = OpVariable %_ptr_Function_v2uint Function %21
|
|
|
|
OpStore %arg_0 %68
|
|
|
|
%85 = OpLoad %v2uint %arg_0
|
|
|
|
%84 = OpFunctionCall %v2uint %tint_count_trailing_zeros %85
|
|
|
|
OpStore %res %84
|
|
|
|
%89 = OpAccessChain %_ptr_StorageBuffer_v2uint %prevent_dce %uint_0
|
|
|
|
%90 = OpLoad %v2uint %res
|
|
|
|
OpStore %89 %90
|
2022-06-02 14:36:10 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2023-03-06 18:25:08 +00:00
|
|
|
%vertex_main_inner = OpFunction %v4float None %91
|
|
|
|
%93 = OpLabel
|
|
|
|
%94 = OpFunctionCall %void %countTrailingZeros_1ad138
|
2022-06-02 14:36:10 +00:00
|
|
|
OpReturnValue %5
|
|
|
|
OpFunctionEnd
|
2023-03-06 18:25:08 +00:00
|
|
|
%vertex_main = OpFunction %void None %79
|
|
|
|
%96 = OpLabel
|
|
|
|
%97 = OpFunctionCall %v4float %vertex_main_inner
|
|
|
|
OpStore %value %97
|
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 %79
|
|
|
|
%100 = OpLabel
|
|
|
|
%101 = OpFunctionCall %void %countTrailingZeros_1ad138
|
2022-06-02 14:36:10 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2023-03-06 18:25:08 +00:00
|
|
|
%compute_main = OpFunction %void None %79
|
|
|
|
%103 = OpLabel
|
|
|
|
%104 = OpFunctionCall %void %countTrailingZeros_1ad138
|
2022-06-02 14:36:10 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|