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: 107
|
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_110f2c "firstTrailingBit_110f2c"
|
|
|
|
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
|
|
|
|
%v4uint = OpTypeVector %uint 4
|
2023-03-06 18:25:08 +00:00
|
|
|
%prevent_dce_block = OpTypeStruct %v4uint
|
|
|
|
%_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block
|
|
|
|
%prevent_dce = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer
|
|
|
|
%14 = OpTypeFunction %v4uint %v4uint
|
2022-06-02 14:36:10 +00:00
|
|
|
%_ptr_Function_v4uint = OpTypePointer Function %v4uint
|
2023-03-06 18:25:08 +00:00
|
|
|
%21 = 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
|
|
|
%28 = 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
|
|
|
%31 = 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
|
|
|
%38 = 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
|
|
|
%41 = 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
|
|
|
%48 = 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
|
|
|
%51 = 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
|
|
|
%58 = 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
|
|
|
%61 = 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
|
|
|
%68 = OpConstantComposite %v4uint %uint_1 %uint_1 %uint_1 %uint_1
|
2022-06-02 14:36:10 +00:00
|
|
|
%uint_4294967295 = OpConstant %uint 4294967295
|
2023-03-06 18:25:08 +00:00
|
|
|
%74 = OpConstantComposite %v4uint %uint_4294967295 %uint_4294967295 %uint_4294967295 %uint_4294967295
|
2022-06-02 14:36:10 +00:00
|
|
|
%void = OpTypeVoid
|
2023-03-06 18:25:08 +00:00
|
|
|
%81 = OpTypeFunction %void
|
|
|
|
%uint_0 = OpConstant %uint 0
|
|
|
|
%_ptr_StorageBuffer_v4uint = OpTypePointer StorageBuffer %v4uint
|
|
|
|
%93 = 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 %v4uint None %14
|
2022-06-02 14:36:10 +00:00
|
|
|
%v = OpFunctionParameter %v4uint
|
2023-03-06 18:25:08 +00:00
|
|
|
%17 = OpLabel
|
|
|
|
%x = OpVariable %_ptr_Function_v4uint Function %21
|
2022-06-02 14:36:10 +00:00
|
|
|
OpStore %x %v
|
2023-03-06 18:25:08 +00:00
|
|
|
%26 = OpLoad %v4uint %x
|
|
|
|
%29 = OpBitwiseAnd %v4uint %26 %28
|
|
|
|
%23 = OpINotEqual %v4bool %29 %21
|
|
|
|
%22 = OpSelect %v4uint %23 %21 %31
|
|
|
|
%32 = OpLoad %v4uint %x
|
|
|
|
%33 = OpShiftRightLogical %v4uint %32 %22
|
|
|
|
OpStore %x %33
|
|
|
|
%36 = OpLoad %v4uint %x
|
|
|
|
%39 = OpBitwiseAnd %v4uint %36 %38
|
|
|
|
%35 = OpINotEqual %v4bool %39 %21
|
|
|
|
%34 = OpSelect %v4uint %35 %21 %41
|
|
|
|
%42 = OpLoad %v4uint %x
|
|
|
|
%43 = OpShiftRightLogical %v4uint %42 %34
|
|
|
|
OpStore %x %43
|
|
|
|
%46 = OpLoad %v4uint %x
|
|
|
|
%49 = OpBitwiseAnd %v4uint %46 %48
|
|
|
|
%45 = OpINotEqual %v4bool %49 %21
|
|
|
|
%44 = OpSelect %v4uint %45 %21 %51
|
|
|
|
%52 = OpLoad %v4uint %x
|
|
|
|
%53 = OpShiftRightLogical %v4uint %52 %44
|
|
|
|
OpStore %x %53
|
|
|
|
%56 = OpLoad %v4uint %x
|
|
|
|
%59 = OpBitwiseAnd %v4uint %56 %58
|
|
|
|
%55 = OpINotEqual %v4bool %59 %21
|
|
|
|
%54 = OpSelect %v4uint %55 %21 %61
|
|
|
|
%62 = OpLoad %v4uint %x
|
|
|
|
%63 = OpShiftRightLogical %v4uint %62 %54
|
|
|
|
OpStore %x %63
|
|
|
|
%66 = OpLoad %v4uint %x
|
|
|
|
%69 = OpBitwiseAnd %v4uint %66 %68
|
|
|
|
%65 = OpINotEqual %v4bool %69 %21
|
|
|
|
%64 = OpSelect %v4uint %65 %21 %68
|
|
|
|
%71 = OpLoad %v4uint %x
|
|
|
|
%72 = OpIEqual %v4bool %71 %21
|
|
|
|
%70 = OpSelect %v4uint %72 %74 %21
|
|
|
|
%76 = OpBitwiseOr %v4uint %22 %34
|
|
|
|
%77 = OpBitwiseOr %v4uint %76 %44
|
|
|
|
%78 = OpBitwiseOr %v4uint %77 %54
|
|
|
|
%79 = OpBitwiseOr %v4uint %78 %64
|
|
|
|
%80 = OpBitwiseOr %v4uint %79 %70
|
|
|
|
OpReturnValue %80
|
2022-06-02 14:36:10 +00:00
|
|
|
OpFunctionEnd
|
2023-03-06 18:25:08 +00:00
|
|
|
%firstTrailingBit_110f2c = OpFunction %void None %81
|
|
|
|
%84 = OpLabel
|
|
|
|
%arg_0 = OpVariable %_ptr_Function_v4uint Function %21
|
|
|
|
%res = OpVariable %_ptr_Function_v4uint Function %21
|
|
|
|
OpStore %arg_0 %68
|
|
|
|
%87 = OpLoad %v4uint %arg_0
|
|
|
|
%86 = OpFunctionCall %v4uint %tint_first_trailing_bit %87
|
|
|
|
OpStore %res %86
|
|
|
|
%91 = OpAccessChain %_ptr_StorageBuffer_v4uint %prevent_dce %uint_0
|
|
|
|
%92 = OpLoad %v4uint %res
|
|
|
|
OpStore %91 %92
|
2022-06-02 14:36:10 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2023-03-06 18:25:08 +00:00
|
|
|
%vertex_main_inner = OpFunction %v4float None %93
|
|
|
|
%95 = OpLabel
|
|
|
|
%96 = OpFunctionCall %void %firstTrailingBit_110f2c
|
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
|
|
|
|
%98 = OpLabel
|
|
|
|
%99 = OpFunctionCall %v4float %vertex_main_inner
|
|
|
|
OpStore %value %99
|
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
|
|
|
|
%102 = OpLabel
|
|
|
|
%103 = OpFunctionCall %void %firstTrailingBit_110f2c
|
2022-06-02 14:36:10 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2023-03-06 18:25:08 +00:00
|
|
|
%compute_main = OpFunction %void None %81
|
|
|
|
%105 = OpLabel
|
|
|
|
%106 = OpFunctionCall %void %firstTrailingBit_110f2c
|
2022-06-02 14:36:10 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|