Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 1 | ; SPIR-V |
| 2 | ; Version: 1.3 |
| 3 | ; Generator: Google Tint Compiler; 0 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 4 | ; Bound: 33 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 5 | ; Schema: 0 |
| 6 | OpCapability Shader |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 7 | %15 = OpExtInstImport "GLSL.std.450" |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 8 | OpMemoryModel Logical GLSL450 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 9 | OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 10 | OpEntryPoint Fragment %fragment_main "fragment_main" |
| 11 | OpEntryPoint GLCompute %compute_main "compute_main" |
| 12 | OpExecutionMode %fragment_main OriginUpperLeft |
| 13 | OpExecutionMode %compute_main LocalSize 1 1 1 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 14 | OpName %value "value" |
| 15 | OpName %vertex_point_size "vertex_point_size" |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 16 | OpName %fract_a49758 "fract_a49758" |
| 17 | OpName %res "res" |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 18 | OpName %vertex_main_inner "vertex_main_inner" |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 19 | OpName %vertex_main "vertex_main" |
| 20 | OpName %fragment_main "fragment_main" |
| 21 | OpName %compute_main "compute_main" |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 22 | OpDecorate %value BuiltIn Position |
| 23 | OpDecorate %vertex_point_size BuiltIn PointSize |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 24 | %float = OpTypeFloat 32 |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 25 | %v4float = OpTypeVector %float 4 |
| 26 | %_ptr_Output_v4float = OpTypePointer Output %v4float |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 27 | %5 = OpConstantNull %v4float |
| 28 | %value = OpVariable %_ptr_Output_v4float Output %5 |
| 29 | %_ptr_Output_float = OpTypePointer Output %float |
| 30 | %8 = OpConstantNull %float |
| 31 | %vertex_point_size = OpVariable %_ptr_Output_float Output %8 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 32 | %void = OpTypeVoid |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 33 | %9 = OpTypeFunction %void |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 34 | %v3float = OpTypeVector %float 3 |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 35 | %16 = OpConstantNull %v3float |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 36 | %_ptr_Function_v3float = OpTypePointer Function %v3float |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 37 | %19 = OpTypeFunction %v4float |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 38 | %float_1 = OpConstant %float 1 |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 39 | %fract_a49758 = OpFunction %void None %9 |
| 40 | %12 = OpLabel |
| 41 | %res = OpVariable %_ptr_Function_v3float Function %16 |
| 42 | %13 = OpExtInst %v3float %15 Fract %16 |
| 43 | OpStore %res %13 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 44 | OpReturn |
| 45 | OpFunctionEnd |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 46 | %vertex_main_inner = OpFunction %v4float None %19 |
| 47 | %21 = OpLabel |
| 48 | %22 = OpFunctionCall %void %fract_a49758 |
| 49 | OpReturnValue %5 |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 50 | OpFunctionEnd |
| 51 | %vertex_main = OpFunction %void None %9 |
| 52 | %24 = OpLabel |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 53 | %25 = OpFunctionCall %v4float %vertex_main_inner |
| 54 | OpStore %value %25 |
| 55 | OpStore %vertex_point_size %float_1 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 56 | OpReturn |
| 57 | OpFunctionEnd |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 58 | %fragment_main = OpFunction %void None %9 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 59 | %28 = OpLabel |
| 60 | %29 = OpFunctionCall %void %fract_a49758 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 61 | OpReturn |
| 62 | OpFunctionEnd |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 63 | %compute_main = OpFunction %void None %9 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 64 | %31 = OpLabel |
| 65 | %32 = OpFunctionCall %void %fract_a49758 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 66 | OpReturn |
| 67 | OpFunctionEnd |