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: 106
|
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_leading_bit "tint_first_leading_bit"
|
|
|
|
OpName %v "v"
|
|
|
|
OpName %x "x"
|
|
|
|
OpName %firstLeadingBit_000ff3 "firstLeadingBit_000ff3"
|
|
|
|
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
|
|
|
%20 = OpConstantNull %v4uint
|
2022-06-02 14:36:10 +00:00
|
|
|
%bool = OpTypeBool
|
|
|
|
%v4bool = OpTypeVector %bool 4
|
|
|
|
%uint_4294901760 = OpConstant %uint 4294901760
|
2023-03-06 18:25:08 +00:00
|
|
|
%27 = OpConstantComposite %v4uint %uint_4294901760 %uint_4294901760 %uint_4294901760 %uint_4294901760
|
2022-06-02 14:36:10 +00:00
|
|
|
%uint_16 = OpConstant %uint 16
|
2023-03-06 18:25:08 +00:00
|
|
|
%30 = OpConstantComposite %v4uint %uint_16 %uint_16 %uint_16 %uint_16
|
2022-06-02 14:36:10 +00:00
|
|
|
%uint_65280 = OpConstant %uint 65280
|
2023-03-06 18:25:08 +00:00
|
|
|
%37 = OpConstantComposite %v4uint %uint_65280 %uint_65280 %uint_65280 %uint_65280
|
2022-06-02 14:36:10 +00:00
|
|
|
%uint_8 = OpConstant %uint 8
|
2023-03-06 18:25:08 +00:00
|
|
|
%40 = OpConstantComposite %v4uint %uint_8 %uint_8 %uint_8 %uint_8
|
2022-06-02 14:36:10 +00:00
|
|
|
%uint_240 = OpConstant %uint 240
|
2023-03-06 18:25:08 +00:00
|
|
|
%47 = OpConstantComposite %v4uint %uint_240 %uint_240 %uint_240 %uint_240
|
2022-06-02 14:36:10 +00:00
|
|
|
%uint_4 = OpConstant %uint 4
|
2023-03-06 18:25:08 +00:00
|
|
|
%50 = OpConstantComposite %v4uint %uint_4 %uint_4 %uint_4 %uint_4
|
2022-06-02 14:36:10 +00:00
|
|
|
%uint_12 = OpConstant %uint 12
|
2023-03-06 18:25:08 +00:00
|
|
|
%57 = OpConstantComposite %v4uint %uint_12 %uint_12 %uint_12 %uint_12
|
2022-06-02 14:36:10 +00:00
|
|
|
%uint_2 = OpConstant %uint 2
|
2023-03-06 18:25:08 +00:00
|
|
|
%60 = 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
|
|
|
%73 = 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
|
|
|
%80 = OpTypeFunction %void
|
|
|
|
%uint_0 = OpConstant %uint 0
|
|
|
|
%_ptr_StorageBuffer_v4uint = OpTypePointer StorageBuffer %v4uint
|
|
|
|
%92 = 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_leading_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 %20
|
2022-06-02 14:36:10 +00:00
|
|
|
OpStore %x %v
|
2023-03-06 18:25:08 +00:00
|
|
|
%25 = OpLoad %v4uint %x
|
|
|
|
%28 = OpBitwiseAnd %v4uint %25 %27
|
|
|
|
%22 = OpINotEqual %v4bool %28 %20
|
|
|
|
%21 = OpSelect %v4uint %22 %30 %20
|
|
|
|
%31 = OpLoad %v4uint %x
|
|
|
|
%32 = OpShiftRightLogical %v4uint %31 %21
|
|
|
|
OpStore %x %32
|
|
|
|
%35 = OpLoad %v4uint %x
|
|
|
|
%38 = OpBitwiseAnd %v4uint %35 %37
|
|
|
|
%34 = OpINotEqual %v4bool %38 %20
|
|
|
|
%33 = OpSelect %v4uint %34 %40 %20
|
|
|
|
%41 = OpLoad %v4uint %x
|
|
|
|
%42 = OpShiftRightLogical %v4uint %41 %33
|
|
|
|
OpStore %x %42
|
|
|
|
%45 = OpLoad %v4uint %x
|
|
|
|
%48 = OpBitwiseAnd %v4uint %45 %47
|
|
|
|
%44 = OpINotEqual %v4bool %48 %20
|
|
|
|
%43 = OpSelect %v4uint %44 %50 %20
|
|
|
|
%51 = OpLoad %v4uint %x
|
|
|
|
%52 = OpShiftRightLogical %v4uint %51 %43
|
|
|
|
OpStore %x %52
|
|
|
|
%55 = OpLoad %v4uint %x
|
|
|
|
%58 = OpBitwiseAnd %v4uint %55 %57
|
|
|
|
%54 = OpINotEqual %v4bool %58 %20
|
|
|
|
%53 = OpSelect %v4uint %54 %60 %20
|
|
|
|
%61 = OpLoad %v4uint %x
|
|
|
|
%62 = OpShiftRightLogical %v4uint %61 %53
|
|
|
|
OpStore %x %62
|
|
|
|
%65 = OpLoad %v4uint %x
|
|
|
|
%66 = OpBitwiseAnd %v4uint %65 %60
|
|
|
|
%64 = OpINotEqual %v4bool %66 %20
|
|
|
|
%63 = OpSelect %v4uint %64 %68 %20
|
|
|
|
%70 = OpLoad %v4uint %x
|
|
|
|
%71 = OpIEqual %v4bool %70 %20
|
|
|
|
%69 = OpSelect %v4uint %71 %73 %20
|
|
|
|
%75 = OpBitwiseOr %v4uint %21 %33
|
|
|
|
%76 = OpBitwiseOr %v4uint %75 %43
|
|
|
|
%77 = OpBitwiseOr %v4uint %76 %53
|
|
|
|
%78 = OpBitwiseOr %v4uint %77 %63
|
|
|
|
%79 = OpBitwiseOr %v4uint %78 %69
|
|
|
|
OpReturnValue %79
|
2022-06-02 14:36:10 +00:00
|
|
|
OpFunctionEnd
|
2023-03-06 18:25:08 +00:00
|
|
|
%firstLeadingBit_000ff3 = OpFunction %void None %80
|
|
|
|
%83 = OpLabel
|
|
|
|
%arg_0 = OpVariable %_ptr_Function_v4uint Function %20
|
|
|
|
%res = OpVariable %_ptr_Function_v4uint Function %20
|
|
|
|
OpStore %arg_0 %68
|
|
|
|
%86 = OpLoad %v4uint %arg_0
|
|
|
|
%85 = OpFunctionCall %v4uint %tint_first_leading_bit %86
|
|
|
|
OpStore %res %85
|
|
|
|
%90 = OpAccessChain %_ptr_StorageBuffer_v4uint %prevent_dce %uint_0
|
|
|
|
%91 = OpLoad %v4uint %res
|
|
|
|
OpStore %90 %91
|
2022-06-02 14:36:10 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2023-03-06 18:25:08 +00:00
|
|
|
%vertex_main_inner = OpFunction %v4float None %92
|
|
|
|
%94 = OpLabel
|
|
|
|
%95 = OpFunctionCall %void %firstLeadingBit_000ff3
|
2022-06-02 14:36:10 +00:00
|
|
|
OpReturnValue %5
|
|
|
|
OpFunctionEnd
|
2023-03-06 18:25:08 +00:00
|
|
|
%vertex_main = OpFunction %void None %80
|
|
|
|
%97 = OpLabel
|
|
|
|
%98 = OpFunctionCall %v4float %vertex_main_inner
|
|
|
|
OpStore %value %98
|
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 %80
|
|
|
|
%101 = OpLabel
|
|
|
|
%102 = OpFunctionCall %void %firstLeadingBit_000ff3
|
2022-06-02 14:36:10 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2023-03-06 18:25:08 +00:00
|
|
|
%compute_main = OpFunction %void None %80
|
|
|
|
%104 = OpLabel
|
|
|
|
%105 = OpFunctionCall %void %firstLeadingBit_000ff3
|
2022-06-02 14:36:10 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|