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: 31 |
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 | %14 = 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 %inverseSqrt_c22347 "inverseSqrt_c22347" |
| 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 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 25 | %v4float = OpTypeVector %float 4 |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 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 |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 32 | %void = OpTypeVoid |
| 33 | %9 = OpTypeFunction %void |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 34 | %_ptr_Function_v4float = OpTypePointer Function %v4float |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 35 | %17 = OpTypeFunction %v4float |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 36 | %float_1 = OpConstant %float 1 |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 37 | %inverseSqrt_c22347 = OpFunction %void None %9 |
| 38 | %12 = OpLabel |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 39 | %res = OpVariable %_ptr_Function_v4float Function %5 |
| 40 | %13 = OpExtInst %v4float %14 InverseSqrt %5 |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 41 | OpStore %res %13 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 42 | OpReturn |
| 43 | OpFunctionEnd |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 44 | %vertex_main_inner = OpFunction %v4float None %17 |
| 45 | %19 = OpLabel |
| 46 | %20 = OpFunctionCall %void %inverseSqrt_c22347 |
| 47 | OpReturnValue %5 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 48 | OpFunctionEnd |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 49 | %vertex_main = OpFunction %void None %9 |
| 50 | %22 = OpLabel |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 51 | %23 = OpFunctionCall %v4float %vertex_main_inner |
| 52 | OpStore %value %23 |
| 53 | OpStore %vertex_point_size %float_1 |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 54 | OpReturn |
| 55 | OpFunctionEnd |
| 56 | %fragment_main = OpFunction %void None %9 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 57 | %26 = OpLabel |
| 58 | %27 = OpFunctionCall %void %inverseSqrt_c22347 |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 59 | OpReturn |
| 60 | OpFunctionEnd |
| 61 | %compute_main = OpFunction %void None %9 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 62 | %29 = OpLabel |
| 63 | %30 = OpFunctionCall %void %inverseSqrt_c22347 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 64 | OpReturn |
| 65 | OpFunctionEnd |