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: 42 |
| 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___point_size_Output |
| 11 | OpExecutionMode %fragment_main OriginUpperLeft |
| 12 | OpExecutionMode %compute_main LocalSize 1 1 1 |
| 13 | OpName %vertex_main_position_Output "vertex_main_position_Output" |
| 14 | OpName %vertex_main___point_size_Output "vertex_main___point_size_Output" |
| 15 | OpName %abs_c3321c "abs_c3321c" |
| 16 | OpName %res "res" |
| 17 | OpName %fragment_main "fragment_main" |
| 18 | OpName %compute_main "compute_main" |
| 19 | OpName %vertex_main_inner "vertex_main_inner" |
| 20 | OpMemberName %VertexOutput 0 "pos" |
| 21 | OpName %VertexOutput "VertexOutput" |
| 22 | OpName %out "out" |
| 23 | OpName %vertex_main "vertex_main" |
| 24 | OpDecorate %vertex_main_position_Output BuiltIn Position |
| 25 | OpDecorate %vertex_main___point_size_Output BuiltIn PointSize |
| 26 | OpMemberDecorate %VertexOutput 0 Offset 0 |
| 27 | %float = OpTypeFloat 32 |
| 28 | %v4float = OpTypeVector %float 4 |
| 29 | %_ptr_Output_v4float = OpTypePointer Output %v4float |
| 30 | %vertex_main_position_Output = OpVariable %_ptr_Output_v4float Output |
| 31 | %_ptr_Output_float = OpTypePointer Output %float |
| 32 | %vertex_main___point_size_Output = OpVariable %_ptr_Output_float Output |
| 33 | %void = OpTypeVoid |
| 34 | %9 = OpTypeFunction %void |
| 35 | %int = OpTypeInt 32 1 |
| 36 | %v3int = OpTypeVector %int 3 |
| 37 | %_ptr_Function_v3int = OpTypePointer Function %v3int |
| 38 | %int_1 = OpConstant %int 1 |
| 39 | %15 = OpConstantComposite %v3int %int_1 %int_1 %int_1 |
| 40 | %VertexOutput = OpTypeStruct %v4float |
| 41 | %25 = OpTypeFunction %VertexOutput |
| 42 | %_ptr_Function_VertexOutput = OpTypePointer Function %VertexOutput |
| 43 | %29 = OpConstantNull %VertexOutput |
| 44 | %_ptr_Function_v4float = OpTypePointer Function %v4float |
| 45 | %uint = OpTypeInt 32 0 |
| 46 | %uint_0 = OpConstant %uint 0 |
| 47 | %34 = OpConstantNull %v4float |
| 48 | %float_1 = OpConstant %float 1 |
| 49 | %abs_c3321c = OpFunction %void None %9 |
| 50 | %10 = OpLabel |
| 51 | %res = OpVariable %_ptr_Function_v3int Function |
| 52 | OpStore %res %15 |
| 53 | OpReturn |
| 54 | OpFunctionEnd |
| 55 | %fragment_main = OpFunction %void None %9 |
| 56 | %18 = OpLabel |
| 57 | %19 = OpFunctionCall %void %abs_c3321c |
| 58 | OpReturn |
| 59 | OpFunctionEnd |
| 60 | %compute_main = OpFunction %void None %9 |
| 61 | %21 = OpLabel |
| 62 | %22 = OpFunctionCall %void %abs_c3321c |
| 63 | OpReturn |
| 64 | OpFunctionEnd |
| 65 | %vertex_main_inner = OpFunction %VertexOutput None %25 |
| 66 | %26 = OpLabel |
| 67 | %out = OpVariable %_ptr_Function_VertexOutput Function %29 |
| 68 | %30 = OpAccessChain %_ptr_Function_v4float %out %uint_0 |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 69 | OpStore %30 %34 None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 70 | %35 = OpFunctionCall %void %abs_c3321c |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 71 | %36 = OpLoad %VertexOutput %out None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 72 | OpReturnValue %36 |
| 73 | OpFunctionEnd |
| 74 | %vertex_main = OpFunction %void None %9 |
| 75 | %38 = OpLabel |
| 76 | %39 = OpFunctionCall %VertexOutput %vertex_main_inner |
| 77 | %40 = OpCompositeExtract %v4float %39 0 |
dan sinclair | 5026041 | 2024-08-28 19:43:27 +0000 | [diff] [blame] | 78 | OpStore %vertex_main_position_Output %40 None |
| 79 | OpStore %vertex_main___point_size_Output %float_1 None |
dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 80 | OpReturn |
| 81 | OpFunctionEnd |