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: 99
|
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_3a2acc "firstTrailingBit_3a2acc"
|
|
|
|
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
|
2023-03-06 18:25:08 +00:00
|
|
|
%prevent_dce_block = OpTypeStruct %int
|
|
|
|
%_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block
|
|
|
|
%prevent_dce = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer
|
|
|
|
%13 = OpTypeFunction %int %int
|
2022-06-02 14:36:10 +00:00
|
|
|
%uint = OpTypeInt 32 0
|
|
|
|
%_ptr_Function_uint = OpTypePointer Function %uint
|
2023-03-06 18:25:08 +00:00
|
|
|
%21 = 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
|
|
|
%70 = OpTypeFunction %void
|
2022-06-02 14:36:10 +00:00
|
|
|
%int_1 = OpConstant %int 1
|
|
|
|
%_ptr_Function_int = OpTypePointer Function %int
|
2023-03-06 18:25:08 +00:00
|
|
|
%77 = OpConstantNull %int
|
|
|
|
%uint_0 = OpConstant %uint 0
|
|
|
|
%_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int
|
|
|
|
%85 = 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 %int None %13
|
2022-06-02 14:36:10 +00:00
|
|
|
%v = OpFunctionParameter %int
|
2023-03-06 18:25:08 +00:00
|
|
|
%16 = OpLabel
|
|
|
|
%x = OpVariable %_ptr_Function_uint Function %21
|
|
|
|
%17 = OpBitcast %uint %v
|
|
|
|
OpStore %x %17
|
|
|
|
%25 = OpLoad %uint %x
|
|
|
|
%27 = OpBitwiseAnd %uint %25 %uint_65535
|
|
|
|
%23 = OpINotEqual %bool %27 %21
|
|
|
|
%22 = OpSelect %uint %23 %21 %uint_16
|
|
|
|
%29 = OpLoad %uint %x
|
|
|
|
%30 = OpShiftRightLogical %uint %29 %22
|
|
|
|
OpStore %x %30
|
|
|
|
%33 = OpLoad %uint %x
|
|
|
|
%35 = OpBitwiseAnd %uint %33 %uint_255
|
|
|
|
%32 = OpINotEqual %bool %35 %21
|
|
|
|
%31 = OpSelect %uint %32 %21 %uint_8
|
|
|
|
%37 = OpLoad %uint %x
|
|
|
|
%38 = OpShiftRightLogical %uint %37 %31
|
|
|
|
OpStore %x %38
|
|
|
|
%41 = OpLoad %uint %x
|
|
|
|
%43 = OpBitwiseAnd %uint %41 %uint_15
|
|
|
|
%40 = OpINotEqual %bool %43 %21
|
|
|
|
%39 = OpSelect %uint %40 %21 %uint_4
|
|
|
|
%45 = OpLoad %uint %x
|
|
|
|
%46 = OpShiftRightLogical %uint %45 %39
|
|
|
|
OpStore %x %46
|
|
|
|
%49 = OpLoad %uint %x
|
|
|
|
%51 = OpBitwiseAnd %uint %49 %uint_3
|
|
|
|
%48 = OpINotEqual %bool %51 %21
|
|
|
|
%47 = OpSelect %uint %48 %21 %uint_2
|
|
|
|
%53 = OpLoad %uint %x
|
|
|
|
%54 = OpShiftRightLogical %uint %53 %47
|
|
|
|
OpStore %x %54
|
|
|
|
%57 = OpLoad %uint %x
|
|
|
|
%59 = OpBitwiseAnd %uint %57 %uint_1
|
|
|
|
%56 = OpINotEqual %bool %59 %21
|
|
|
|
%55 = OpSelect %uint %56 %21 %uint_1
|
|
|
|
%61 = OpLoad %uint %x
|
|
|
|
%62 = OpIEqual %bool %61 %21
|
|
|
|
%60 = OpSelect %uint %62 %uint_4294967295 %21
|
|
|
|
%65 = OpBitwiseOr %uint %22 %31
|
|
|
|
%66 = OpBitwiseOr %uint %65 %39
|
|
|
|
%67 = OpBitwiseOr %uint %66 %47
|
|
|
|
%68 = OpBitwiseOr %uint %67 %55
|
|
|
|
%69 = OpBitwiseOr %uint %68 %60
|
|
|
|
%64 = OpBitcast %int %69
|
|
|
|
OpReturnValue %64
|
2022-06-02 14:36:10 +00:00
|
|
|
OpFunctionEnd
|
2023-03-06 18:25:08 +00:00
|
|
|
%firstTrailingBit_3a2acc = OpFunction %void None %70
|
|
|
|
%73 = OpLabel
|
|
|
|
%arg_0 = OpVariable %_ptr_Function_int Function %77
|
|
|
|
%res = OpVariable %_ptr_Function_int Function %77
|
2022-06-02 14:36:10 +00:00
|
|
|
OpStore %arg_0 %int_1
|
2023-03-06 18:25:08 +00:00
|
|
|
%79 = OpLoad %int %arg_0
|
|
|
|
%78 = OpFunctionCall %int %tint_first_trailing_bit %79
|
|
|
|
OpStore %res %78
|
|
|
|
%83 = OpAccessChain %_ptr_StorageBuffer_int %prevent_dce %uint_0
|
|
|
|
%84 = OpLoad %int %res
|
|
|
|
OpStore %83 %84
|
2022-06-02 14:36:10 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2023-03-06 18:25:08 +00:00
|
|
|
%vertex_main_inner = OpFunction %v4float None %85
|
|
|
|
%87 = OpLabel
|
|
|
|
%88 = OpFunctionCall %void %firstTrailingBit_3a2acc
|
2022-06-02 14:36:10 +00:00
|
|
|
OpReturnValue %5
|
|
|
|
OpFunctionEnd
|
2023-03-06 18:25:08 +00:00
|
|
|
%vertex_main = OpFunction %void None %70
|
|
|
|
%90 = OpLabel
|
|
|
|
%91 = OpFunctionCall %v4float %vertex_main_inner
|
|
|
|
OpStore %value %91
|
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 %70
|
|
|
|
%94 = OpLabel
|
|
|
|
%95 = OpFunctionCall %void %firstTrailingBit_3a2acc
|
2022-06-02 14:36:10 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2023-03-06 18:25:08 +00:00
|
|
|
%compute_main = OpFunction %void None %70
|
|
|
|
%97 = OpLabel
|
|
|
|
%98 = OpFunctionCall %void %firstTrailingBit_3a2acc
|
2022-06-02 14:36:10 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|