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: 95
|
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_first_trailing_bit "tint_first_trailing_bit"
|
|
|
|
OpName %v "v"
|
|
|
|
OpName %x "x"
|
|
|
|
OpName %firstTrailingBit_47d475 "firstTrailingBit_47d475"
|
|
|
|
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
|
|
|
|
%uint_4294967295 = OpConstant %uint 4294967295
|
|
|
|
%void = OpTypeVoid
|
2023-03-06 18:25:08 +00:00
|
|
|
%69 = OpTypeFunction %void
|
|
|
|
%uint_0 = OpConstant %uint 0
|
|
|
|
%_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint
|
|
|
|
%81 = OpTypeFunction %v4float
|
2022-06-02 14:36:10 +00:00
|
|
|
%float_1 = OpConstant %float 1
|
2023-03-06 18:25:08 +00:00
|
|
|
%tint_first_trailing_bit = 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_4294967295 %20
|
|
|
|
%64 = OpBitwiseOr %uint %21 %30
|
|
|
|
%65 = OpBitwiseOr %uint %64 %38
|
|
|
|
%66 = OpBitwiseOr %uint %65 %46
|
|
|
|
%67 = OpBitwiseOr %uint %66 %54
|
|
|
|
%68 = OpBitwiseOr %uint %67 %59
|
|
|
|
OpReturnValue %68
|
2022-06-02 14:36:10 +00:00
|
|
|
OpFunctionEnd
|
2023-03-06 18:25:08 +00:00
|
|
|
%firstTrailingBit_47d475 = OpFunction %void None %69
|
|
|
|
%72 = 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
|
|
|
%75 = OpLoad %uint %arg_0
|
|
|
|
%74 = OpFunctionCall %uint %tint_first_trailing_bit %75
|
|
|
|
OpStore %res %74
|
|
|
|
%79 = OpAccessChain %_ptr_StorageBuffer_uint %prevent_dce %uint_0
|
|
|
|
%80 = OpLoad %uint %res
|
|
|
|
OpStore %79 %80
|
2022-06-02 14:36:10 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2023-03-06 18:25:08 +00:00
|
|
|
%vertex_main_inner = OpFunction %v4float None %81
|
|
|
|
%83 = OpLabel
|
|
|
|
%84 = OpFunctionCall %void %firstTrailingBit_47d475
|
2022-06-02 14:36:10 +00:00
|
|
|
OpReturnValue %5
|
|
|
|
OpFunctionEnd
|
2023-03-06 18:25:08 +00:00
|
|
|
%vertex_main = OpFunction %void None %69
|
|
|
|
%86 = OpLabel
|
|
|
|
%87 = OpFunctionCall %v4float %vertex_main_inner
|
|
|
|
OpStore %value %87
|
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 %69
|
|
|
|
%90 = OpLabel
|
|
|
|
%91 = OpFunctionCall %void %firstTrailingBit_47d475
|
2022-06-02 14:36:10 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2023-03-06 18:25:08 +00:00
|
|
|
%compute_main = OpFunction %void None %69
|
|
|
|
%93 = OpLabel
|
|
|
|
%94 = OpFunctionCall %void %firstTrailingBit_47d475
|
2022-06-02 14:36:10 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|