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: 113
|
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_50c072 "firstTrailingBit_50c072"
|
|
|
|
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
|
|
|
|
%v2int = OpTypeVector %int 2
|
2023-03-06 18:25:08 +00:00
|
|
|
%prevent_dce_block = OpTypeStruct %v2int
|
|
|
|
%_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block
|
|
|
|
%prevent_dce = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer
|
|
|
|
%14 = OpTypeFunction %v2int %v2int
|
2022-06-02 14:36:10 +00:00
|
|
|
%uint = OpTypeInt 32 0
|
|
|
|
%v2uint = OpTypeVector %uint 2
|
|
|
|
%_ptr_Function_v2uint = OpTypePointer Function %v2uint
|
2023-03-06 18:25:08 +00:00
|
|
|
%23 = 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
|
|
|
%30 = 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
|
|
|
%33 = 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
|
|
|
%40 = 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
|
|
|
%43 = 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
|
|
|
%50 = 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
|
|
|
%53 = 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
|
|
|
%60 = 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
|
|
|
%63 = 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
|
|
|
%70 = OpConstantComposite %v2uint %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
|
|
|
%76 = OpConstantComposite %v2uint %uint_4294967295 %uint_4294967295
|
2022-06-02 14:36:10 +00:00
|
|
|
%void = OpTypeVoid
|
2023-03-06 18:25:08 +00:00
|
|
|
%83 = OpTypeFunction %void
|
2022-07-26 14:27:25 +00:00
|
|
|
%int_1 = OpConstant %int 1
|
2023-03-06 18:25:08 +00:00
|
|
|
%88 = OpConstantComposite %v2int %int_1 %int_1
|
2022-06-02 14:36:10 +00:00
|
|
|
%_ptr_Function_v2int = OpTypePointer Function %v2int
|
2023-03-06 18:25:08 +00:00
|
|
|
%91 = OpConstantNull %v2int
|
|
|
|
%uint_0 = OpConstant %uint 0
|
|
|
|
%_ptr_StorageBuffer_v2int = OpTypePointer StorageBuffer %v2int
|
|
|
|
%99 = 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 %v2int None %14
|
2022-06-02 14:36:10 +00:00
|
|
|
%v = OpFunctionParameter %v2int
|
2023-03-06 18:25:08 +00:00
|
|
|
%17 = OpLabel
|
|
|
|
%x = OpVariable %_ptr_Function_v2uint Function %23
|
|
|
|
%18 = OpBitcast %v2uint %v
|
|
|
|
OpStore %x %18
|
|
|
|
%28 = OpLoad %v2uint %x
|
|
|
|
%31 = OpBitwiseAnd %v2uint %28 %30
|
|
|
|
%25 = OpINotEqual %v2bool %31 %23
|
|
|
|
%24 = OpSelect %v2uint %25 %23 %33
|
|
|
|
%34 = OpLoad %v2uint %x
|
|
|
|
%35 = OpShiftRightLogical %v2uint %34 %24
|
|
|
|
OpStore %x %35
|
|
|
|
%38 = OpLoad %v2uint %x
|
|
|
|
%41 = OpBitwiseAnd %v2uint %38 %40
|
|
|
|
%37 = OpINotEqual %v2bool %41 %23
|
|
|
|
%36 = OpSelect %v2uint %37 %23 %43
|
|
|
|
%44 = OpLoad %v2uint %x
|
|
|
|
%45 = OpShiftRightLogical %v2uint %44 %36
|
|
|
|
OpStore %x %45
|
|
|
|
%48 = OpLoad %v2uint %x
|
|
|
|
%51 = OpBitwiseAnd %v2uint %48 %50
|
|
|
|
%47 = OpINotEqual %v2bool %51 %23
|
|
|
|
%46 = OpSelect %v2uint %47 %23 %53
|
|
|
|
%54 = OpLoad %v2uint %x
|
|
|
|
%55 = OpShiftRightLogical %v2uint %54 %46
|
|
|
|
OpStore %x %55
|
|
|
|
%58 = OpLoad %v2uint %x
|
|
|
|
%61 = OpBitwiseAnd %v2uint %58 %60
|
|
|
|
%57 = OpINotEqual %v2bool %61 %23
|
|
|
|
%56 = OpSelect %v2uint %57 %23 %63
|
|
|
|
%64 = OpLoad %v2uint %x
|
|
|
|
%65 = OpShiftRightLogical %v2uint %64 %56
|
|
|
|
OpStore %x %65
|
|
|
|
%68 = OpLoad %v2uint %x
|
|
|
|
%71 = OpBitwiseAnd %v2uint %68 %70
|
|
|
|
%67 = OpINotEqual %v2bool %71 %23
|
|
|
|
%66 = OpSelect %v2uint %67 %23 %70
|
|
|
|
%73 = OpLoad %v2uint %x
|
|
|
|
%74 = OpIEqual %v2bool %73 %23
|
|
|
|
%72 = OpSelect %v2uint %74 %76 %23
|
|
|
|
%78 = OpBitwiseOr %v2uint %24 %36
|
|
|
|
%79 = OpBitwiseOr %v2uint %78 %46
|
|
|
|
%80 = OpBitwiseOr %v2uint %79 %56
|
|
|
|
%81 = OpBitwiseOr %v2uint %80 %66
|
|
|
|
%82 = OpBitwiseOr %v2uint %81 %72
|
|
|
|
%77 = OpBitcast %v2int %82
|
|
|
|
OpReturnValue %77
|
2022-06-02 14:36:10 +00:00
|
|
|
OpFunctionEnd
|
2023-03-06 18:25:08 +00:00
|
|
|
%firstTrailingBit_50c072 = OpFunction %void None %83
|
|
|
|
%86 = OpLabel
|
|
|
|
%arg_0 = OpVariable %_ptr_Function_v2int Function %91
|
|
|
|
%res = OpVariable %_ptr_Function_v2int Function %91
|
|
|
|
OpStore %arg_0 %88
|
|
|
|
%93 = OpLoad %v2int %arg_0
|
|
|
|
%92 = OpFunctionCall %v2int %tint_first_trailing_bit %93
|
|
|
|
OpStore %res %92
|
|
|
|
%97 = OpAccessChain %_ptr_StorageBuffer_v2int %prevent_dce %uint_0
|
|
|
|
%98 = OpLoad %v2int %res
|
|
|
|
OpStore %97 %98
|
2022-06-02 14:36:10 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2023-03-06 18:25:08 +00:00
|
|
|
%vertex_main_inner = OpFunction %v4float None %99
|
|
|
|
%101 = OpLabel
|
|
|
|
%102 = OpFunctionCall %void %firstTrailingBit_50c072
|
2022-06-02 14:36:10 +00:00
|
|
|
OpReturnValue %5
|
|
|
|
OpFunctionEnd
|
2023-03-06 18:25:08 +00:00
|
|
|
%vertex_main = OpFunction %void None %83
|
|
|
|
%104 = OpLabel
|
|
|
|
%105 = OpFunctionCall %v4float %vertex_main_inner
|
|
|
|
OpStore %value %105
|
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 %83
|
|
|
|
%108 = OpLabel
|
|
|
|
%109 = OpFunctionCall %void %firstTrailingBit_50c072
|
2022-06-02 14:36:10 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2023-03-06 18:25:08 +00:00
|
|
|
%compute_main = OpFunction %void None %83
|
|
|
|
%111 = OpLabel
|
|
|
|
%112 = OpFunctionCall %void %firstTrailingBit_50c072
|
2022-06-02 14:36:10 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|