dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 1 | ; SPIR-V |
| 2 | ; Version: 1.3 |
| 3 | ; Generator: Google Tint Compiler; 1 |
| 4 | ; Bound: 56 |
| 5 | ; Schema: 0 |
| 6 | OpCapability Shader |
| 7 | OpMemoryModel Logical GLSL450 |
| 8 | OpEntryPoint Fragment %fragment_main "fragment_main" |
| 9 | OpEntryPoint GLCompute %compute_main "compute_main" |
| 10 | OpEntryPoint Vertex %vertex_main "vertex_main" %vertex_main_position_Output %vertex_main_loc0_Output %vertex_main___point_size_Output |
| 11 | OpExecutionMode %fragment_main OriginUpperLeft |
| 12 | OpExecutionMode %compute_main LocalSize 1 1 1 |
| 13 | OpMemberName %tint_symbol_1 0 "tint_symbol" |
| 14 | OpName %tint_symbol_1 "tint_symbol_1" |
| 15 | OpName %vertex_main_position_Output "vertex_main_position_Output" |
| 16 | OpName %vertex_main_loc0_Output "vertex_main_loc0_Output" |
| 17 | OpName %vertex_main___point_size_Output "vertex_main___point_size_Output" |
| 18 | OpName %reverseBits_35fea9 "reverseBits_35fea9" |
| 19 | OpName %arg_0 "arg_0" |
| 20 | OpName %res "res" |
| 21 | OpName %fragment_main "fragment_main" |
| 22 | OpName %compute_main "compute_main" |
| 23 | OpName %vertex_main_inner "vertex_main_inner" |
| 24 | OpMemberName %VertexOutput 0 "pos" |
| 25 | OpMemberName %VertexOutput 1 "prevent_dce" |
| 26 | OpName %VertexOutput "VertexOutput" |
| 27 | OpName %out "out" |
| 28 | OpName %vertex_main "vertex_main" |
| 29 | OpMemberDecorate %tint_symbol_1 0 Offset 0 |
| 30 | OpDecorate %tint_symbol_1 Block |
| 31 | OpDecorate %1 DescriptorSet 0 |
| 32 | OpDecorate %1 Binding 0 |
| 33 | OpDecorate %vertex_main_position_Output BuiltIn Position |
| 34 | OpDecorate %vertex_main_loc0_Output Location 0 |
| 35 | OpDecorate %vertex_main_loc0_Output Flat |
| 36 | OpDecorate %vertex_main___point_size_Output BuiltIn PointSize |
| 37 | OpMemberDecorate %VertexOutput 0 Offset 0 |
| 38 | OpMemberDecorate %VertexOutput 1 Offset 16 |
| 39 | %uint = OpTypeInt 32 0 |
| 40 | %v4uint = OpTypeVector %uint 4 |
| 41 | %tint_symbol_1 = OpTypeStruct %v4uint |
| 42 | %_ptr_StorageBuffer_tint_symbol_1 = OpTypePointer StorageBuffer %tint_symbol_1 |
| 43 | %1 = OpVariable %_ptr_StorageBuffer_tint_symbol_1 StorageBuffer |
| 44 | %float = OpTypeFloat 32 |
| 45 | %v4float = OpTypeVector %float 4 |
| 46 | %_ptr_Output_v4float = OpTypePointer Output %v4float |
| 47 | %vertex_main_position_Output = OpVariable %_ptr_Output_v4float Output |
| 48 | %_ptr_Output_v4uint = OpTypePointer Output %v4uint |
| 49 | %vertex_main_loc0_Output = OpVariable %_ptr_Output_v4uint Output |
| 50 | %_ptr_Output_float = OpTypePointer Output %float |
| 51 | %vertex_main___point_size_Output = OpVariable %_ptr_Output_float Output |
| 52 | %15 = OpTypeFunction %v4uint |
| 53 | %_ptr_Function_v4uint = OpTypePointer Function %v4uint |
| 54 | %uint_1 = OpConstant %uint 1 |
| 55 | %19 = OpConstantComposite %v4uint %uint_1 %uint_1 %uint_1 %uint_1 |
| 56 | %void = OpTypeVoid |
| 57 | %27 = OpTypeFunction %void |
| 58 | %_ptr_StorageBuffer_v4uint = OpTypePointer StorageBuffer %v4uint |
| 59 | %uint_0 = OpConstant %uint 0 |
| 60 | %VertexOutput = OpTypeStruct %v4float %v4uint |
| 61 | %39 = OpTypeFunction %VertexOutput |
| 62 | %_ptr_Function_VertexOutput = OpTypePointer Function %VertexOutput |
| 63 | %43 = OpConstantNull %VertexOutput |
| 64 | %_ptr_Function_v4float = OpTypePointer Function %v4float |
| 65 | %46 = OpConstantNull %v4float |
| 66 | %float_1 = OpConstant %float 1 |
| 67 | %reverseBits_35fea9 = OpFunction %v4uint None %15 |
| 68 | %16 = OpLabel |
| 69 | %arg_0 = OpVariable %_ptr_Function_v4uint Function |
| 70 | %res = OpVariable %_ptr_Function_v4uint Function |
| 71 | OpStore %arg_0 %19 |
| 72 | %21 = OpLoad %v4uint %arg_0 |
| 73 | %22 = OpBitReverse %v4uint %21 |
| 74 | OpStore %res %22 |
| 75 | %24 = OpLoad %v4uint %res |
| 76 | OpReturnValue %24 |
| 77 | OpFunctionEnd |
| 78 | %fragment_main = OpFunction %void None %27 |
| 79 | %28 = OpLabel |
| 80 | %29 = OpFunctionCall %v4uint %reverseBits_35fea9 |
| 81 | %30 = OpAccessChain %_ptr_StorageBuffer_v4uint %1 %uint_0 |
| 82 | OpStore %30 %29 |
| 83 | OpReturn |
| 84 | OpFunctionEnd |
| 85 | %compute_main = OpFunction %void None %27 |
| 86 | %34 = OpLabel |
| 87 | %35 = OpFunctionCall %v4uint %reverseBits_35fea9 |
| 88 | %36 = OpAccessChain %_ptr_StorageBuffer_v4uint %1 %uint_0 |
| 89 | OpStore %36 %35 |
| 90 | OpReturn |
| 91 | OpFunctionEnd |
| 92 | %vertex_main_inner = OpFunction %VertexOutput None %39 |
| 93 | %40 = OpLabel |
| 94 | %out = OpVariable %_ptr_Function_VertexOutput Function %43 |
| 95 | %44 = OpAccessChain %_ptr_Function_v4float %out %uint_0 |
| 96 | OpStore %44 %46 |
| 97 | %47 = OpAccessChain %_ptr_Function_v4uint %out %uint_1 |
| 98 | %48 = OpFunctionCall %v4uint %reverseBits_35fea9 |
| 99 | OpStore %47 %48 |
| 100 | %49 = OpLoad %VertexOutput %out |
| 101 | OpReturnValue %49 |
| 102 | OpFunctionEnd |
| 103 | %vertex_main = OpFunction %void None %27 |
| 104 | %51 = OpLabel |
| 105 | %52 = OpFunctionCall %VertexOutput %vertex_main_inner |
| 106 | %53 = OpCompositeExtract %v4float %52 0 |
| 107 | OpStore %vertex_main_position_Output %53 |
| 108 | %54 = OpCompositeExtract %v4uint %52 1 |
| 109 | OpStore %vertex_main_loc0_Output %54 |
| 110 | OpStore %vertex_main___point_size_Output %float_1 |
| 111 | OpReturn |
| 112 | OpFunctionEnd |