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_7496d6 "firstTrailingBit_7496d6"
|
|
|
|
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
|
|
|
|
%v3int = OpTypeVector %int 3
|
2023-03-06 18:25:08 +00:00
|
|
|
%prevent_dce_block = OpTypeStruct %v3int
|
|
|
|
%_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block
|
|
|
|
%prevent_dce = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer
|
|
|
|
%14 = OpTypeFunction %v3int %v3int
|
2022-06-02 14:36:10 +00:00
|
|
|
%uint = OpTypeInt 32 0
|
|
|
|
%v3uint = OpTypeVector %uint 3
|
|
|
|
%_ptr_Function_v3uint = OpTypePointer Function %v3uint
|
2023-03-06 18:25:08 +00:00
|
|
|
%23 = OpConstantNull %v3uint
|
2022-06-02 14:36:10 +00:00
|
|
|
%bool = OpTypeBool
|
|
|
|
%v3bool = OpTypeVector %bool 3
|
|
|
|
%uint_65535 = OpConstant %uint 65535
|
2023-03-06 18:25:08 +00:00
|
|
|
%30 = OpConstantComposite %v3uint %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
|
|
|
%33 = OpConstantComposite %v3uint %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
|
|
|
%40 = OpConstantComposite %v3uint %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
|
|
|
%43 = OpConstantComposite %v3uint %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
|
|
|
%50 = OpConstantComposite %v3uint %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
|
|
|
%53 = OpConstantComposite %v3uint %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
|
|
|
%60 = OpConstantComposite %v3uint %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
|
|
|
%63 = OpConstantComposite %v3uint %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
|
|
|
%70 = OpConstantComposite %v3uint %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
|
|
|
%76 = OpConstantComposite %v3uint %uint_4294967295 %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 %v3int %int_1 %int_1 %int_1
|
2022-06-02 14:36:10 +00:00
|
|
|
%_ptr_Function_v3int = OpTypePointer Function %v3int
|
2023-03-06 18:25:08 +00:00
|
|
|
%91 = OpConstantNull %v3int
|
|
|
|
%uint_0 = OpConstant %uint 0
|
|
|
|
%_ptr_StorageBuffer_v3int = OpTypePointer StorageBuffer %v3int
|
|
|
|
%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 %v3int None %14
|
2022-06-02 14:36:10 +00:00
|
|
|
%v = OpFunctionParameter %v3int
|
2023-03-06 18:25:08 +00:00
|
|
|
%17 = OpLabel
|
|
|
|
%x = OpVariable %_ptr_Function_v3uint Function %23
|
|
|
|
%18 = OpBitcast %v3uint %v
|
|
|
|
OpStore %x %18
|
|
|
|
%28 = OpLoad %v3uint %x
|
|
|
|
%31 = OpBitwiseAnd %v3uint %28 %30
|
|
|
|
%25 = OpINotEqual %v3bool %31 %23
|
|
|
|
%24 = OpSelect %v3uint %25 %23 %33
|
|
|
|
%34 = OpLoad %v3uint %x
|
|
|
|
%35 = OpShiftRightLogical %v3uint %34 %24
|
|
|
|
OpStore %x %35
|
|
|
|
%38 = OpLoad %v3uint %x
|
|
|
|
%41 = OpBitwiseAnd %v3uint %38 %40
|
|
|
|
%37 = OpINotEqual %v3bool %41 %23
|
|
|
|
%36 = OpSelect %v3uint %37 %23 %43
|
|
|
|
%44 = OpLoad %v3uint %x
|
|
|
|
%45 = OpShiftRightLogical %v3uint %44 %36
|
|
|
|
OpStore %x %45
|
|
|
|
%48 = OpLoad %v3uint %x
|
|
|
|
%51 = OpBitwiseAnd %v3uint %48 %50
|
|
|
|
%47 = OpINotEqual %v3bool %51 %23
|
|
|
|
%46 = OpSelect %v3uint %47 %23 %53
|
|
|
|
%54 = OpLoad %v3uint %x
|
|
|
|
%55 = OpShiftRightLogical %v3uint %54 %46
|
|
|
|
OpStore %x %55
|
|
|
|
%58 = OpLoad %v3uint %x
|
|
|
|
%61 = OpBitwiseAnd %v3uint %58 %60
|
|
|
|
%57 = OpINotEqual %v3bool %61 %23
|
|
|
|
%56 = OpSelect %v3uint %57 %23 %63
|
|
|
|
%64 = OpLoad %v3uint %x
|
|
|
|
%65 = OpShiftRightLogical %v3uint %64 %56
|
|
|
|
OpStore %x %65
|
|
|
|
%68 = OpLoad %v3uint %x
|
|
|
|
%71 = OpBitwiseAnd %v3uint %68 %70
|
|
|
|
%67 = OpINotEqual %v3bool %71 %23
|
|
|
|
%66 = OpSelect %v3uint %67 %23 %70
|
|
|
|
%73 = OpLoad %v3uint %x
|
|
|
|
%74 = OpIEqual %v3bool %73 %23
|
|
|
|
%72 = OpSelect %v3uint %74 %76 %23
|
|
|
|
%78 = OpBitwiseOr %v3uint %24 %36
|
|
|
|
%79 = OpBitwiseOr %v3uint %78 %46
|
|
|
|
%80 = OpBitwiseOr %v3uint %79 %56
|
|
|
|
%81 = OpBitwiseOr %v3uint %80 %66
|
|
|
|
%82 = OpBitwiseOr %v3uint %81 %72
|
|
|
|
%77 = OpBitcast %v3int %82
|
|
|
|
OpReturnValue %77
|
2022-06-02 14:36:10 +00:00
|
|
|
OpFunctionEnd
|
2023-03-06 18:25:08 +00:00
|
|
|
%firstTrailingBit_7496d6 = OpFunction %void None %83
|
|
|
|
%86 = OpLabel
|
|
|
|
%arg_0 = OpVariable %_ptr_Function_v3int Function %91
|
|
|
|
%res = OpVariable %_ptr_Function_v3int Function %91
|
|
|
|
OpStore %arg_0 %88
|
|
|
|
%93 = OpLoad %v3int %arg_0
|
|
|
|
%92 = OpFunctionCall %v3int %tint_first_trailing_bit %93
|
|
|
|
OpStore %res %92
|
|
|
|
%97 = OpAccessChain %_ptr_StorageBuffer_v3int %prevent_dce %uint_0
|
|
|
|
%98 = OpLoad %v3int %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_7496d6
|
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_7496d6
|
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_7496d6
|
2022-06-02 14:36:10 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|