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: 94
|
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_21e394 "countTrailingZeros_21e394"
|
|
|
|
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
|
2023-03-06 18:25:08 +00:00
|
|
|
%prevent_dce_block = OpTypeStruct %uint
|
|
|
|
%_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block
|
|
|
|
%prevent_dce = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer
|
|
|
|
%13 = OpTypeFunction %uint %uint
|
2022-06-02 14:36:10 +00:00
|
|
|
%_ptr_Function_uint = OpTypePointer Function %uint
|
2023-03-06 18:25:08 +00:00
|
|
|
%20 = OpConstantNull %uint
|
2022-06-02 14:36:10 +00:00
|
|
|
%bool = OpTypeBool
|
|
|
|
%uint_65535 = OpConstant %uint 65535
|
|
|
|
%uint_16 = OpConstant %uint 16
|
|
|
|
%uint_255 = OpConstant %uint 255
|
|
|
|
%uint_8 = OpConstant %uint 8
|
|
|
|
%uint_15 = OpConstant %uint 15
|
|
|
|
%uint_4 = OpConstant %uint 4
|
|
|
|
%uint_3 = OpConstant %uint 3
|
|
|
|
%uint_2 = OpConstant %uint 2
|
|
|
|
%uint_1 = OpConstant %uint 1
|
|
|
|
%void = OpTypeVoid
|
2023-03-06 18:25:08 +00:00
|
|
|
%68 = OpTypeFunction %void
|
|
|
|
%uint_0 = OpConstant %uint 0
|
|
|
|
%_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint
|
|
|
|
%80 = 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 %uint None %13
|
2022-06-02 14:36:10 +00:00
|
|
|
%v = OpFunctionParameter %uint
|
2023-03-06 18:25:08 +00:00
|
|
|
%16 = OpLabel
|
|
|
|
%x = OpVariable %_ptr_Function_uint Function %20
|
2022-06-02 14:36:10 +00:00
|
|
|
OpStore %x %v
|
2023-03-06 18:25:08 +00:00
|
|
|
%24 = OpLoad %uint %x
|
|
|
|
%26 = OpBitwiseAnd %uint %24 %uint_65535
|
|
|
|
%22 = OpINotEqual %bool %26 %20
|
|
|
|
%21 = OpSelect %uint %22 %20 %uint_16
|
|
|
|
%28 = OpLoad %uint %x
|
|
|
|
%29 = OpShiftRightLogical %uint %28 %21
|
|
|
|
OpStore %x %29
|
|
|
|
%32 = OpLoad %uint %x
|
|
|
|
%34 = OpBitwiseAnd %uint %32 %uint_255
|
|
|
|
%31 = OpINotEqual %bool %34 %20
|
|
|
|
%30 = OpSelect %uint %31 %20 %uint_8
|
|
|
|
%36 = OpLoad %uint %x
|
|
|
|
%37 = OpShiftRightLogical %uint %36 %30
|
|
|
|
OpStore %x %37
|
|
|
|
%40 = OpLoad %uint %x
|
|
|
|
%42 = OpBitwiseAnd %uint %40 %uint_15
|
|
|
|
%39 = OpINotEqual %bool %42 %20
|
|
|
|
%38 = OpSelect %uint %39 %20 %uint_4
|
|
|
|
%44 = OpLoad %uint %x
|
|
|
|
%45 = OpShiftRightLogical %uint %44 %38
|
|
|
|
OpStore %x %45
|
|
|
|
%48 = OpLoad %uint %x
|
|
|
|
%50 = OpBitwiseAnd %uint %48 %uint_3
|
|
|
|
%47 = OpINotEqual %bool %50 %20
|
|
|
|
%46 = OpSelect %uint %47 %20 %uint_2
|
|
|
|
%52 = OpLoad %uint %x
|
|
|
|
%53 = OpShiftRightLogical %uint %52 %46
|
|
|
|
OpStore %x %53
|
|
|
|
%56 = OpLoad %uint %x
|
|
|
|
%58 = OpBitwiseAnd %uint %56 %uint_1
|
|
|
|
%55 = OpINotEqual %bool %58 %20
|
|
|
|
%54 = OpSelect %uint %55 %20 %uint_1
|
|
|
|
%60 = OpLoad %uint %x
|
|
|
|
%61 = OpIEqual %bool %60 %20
|
|
|
|
%59 = OpSelect %uint %61 %uint_1 %20
|
|
|
|
%63 = OpBitwiseOr %uint %21 %30
|
|
|
|
%64 = OpBitwiseOr %uint %63 %38
|
|
|
|
%65 = OpBitwiseOr %uint %64 %46
|
|
|
|
%66 = OpBitwiseOr %uint %65 %54
|
|
|
|
%67 = OpIAdd %uint %66 %59
|
|
|
|
OpReturnValue %67
|
2022-06-02 14:36:10 +00:00
|
|
|
OpFunctionEnd
|
2023-03-06 18:25:08 +00:00
|
|
|
%countTrailingZeros_21e394 = OpFunction %void None %68
|
|
|
|
%71 = OpLabel
|
|
|
|
%arg_0 = OpVariable %_ptr_Function_uint Function %20
|
|
|
|
%res = OpVariable %_ptr_Function_uint Function %20
|
2022-06-02 14:36:10 +00:00
|
|
|
OpStore %arg_0 %uint_1
|
2023-03-06 18:25:08 +00:00
|
|
|
%74 = OpLoad %uint %arg_0
|
|
|
|
%73 = OpFunctionCall %uint %tint_count_trailing_zeros %74
|
|
|
|
OpStore %res %73
|
|
|
|
%78 = OpAccessChain %_ptr_StorageBuffer_uint %prevent_dce %uint_0
|
|
|
|
%79 = OpLoad %uint %res
|
|
|
|
OpStore %78 %79
|
2022-06-02 14:36:10 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2023-03-06 18:25:08 +00:00
|
|
|
%vertex_main_inner = OpFunction %v4float None %80
|
|
|
|
%82 = OpLabel
|
|
|
|
%83 = OpFunctionCall %void %countTrailingZeros_21e394
|
2022-06-02 14:36:10 +00:00
|
|
|
OpReturnValue %5
|
|
|
|
OpFunctionEnd
|
2023-03-06 18:25:08 +00:00
|
|
|
%vertex_main = OpFunction %void None %68
|
|
|
|
%85 = OpLabel
|
|
|
|
%86 = OpFunctionCall %v4float %vertex_main_inner
|
|
|
|
OpStore %value %86
|
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 %68
|
|
|
|
%89 = OpLabel
|
|
|
|
%90 = OpFunctionCall %void %countTrailingZeros_21e394
|
2022-06-02 14:36:10 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2023-03-06 18:25:08 +00:00
|
|
|
%compute_main = OpFunction %void None %68
|
|
|
|
%92 = OpLabel
|
|
|
|
%93 = OpFunctionCall %void %countTrailingZeros_21e394
|
2022-06-02 14:36:10 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|