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