Ben Clayton | 7204756 | 2021-07-23 16:43:01 +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 | 7204756 | 2021-07-23 16:43:01 +0000 | [diff] [blame] | 5 | ; Schema: 0 |
| 6 | OpCapability Shader |
| 7 | %15 = OpExtInstImport "GLSL.std.450" |
| 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 | 7204756 | 2021-07-23 16:43:01 +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 | 7204756 | 2021-07-23 16:43:01 +0000 | [diff] [blame] | 16 | OpName %mix_315264 "mix_315264" |
| 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 | 7204756 | 2021-07-23 16:43:01 +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 | 7204756 | 2021-07-23 16:43:01 +0000 | [diff] [blame] | 24 | %float = OpTypeFloat 32 |
Ben Clayton | 7204756 | 2021-07-23 16:43:01 +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 | 7204756 | 2021-07-23 16:43:01 +0000 | [diff] [blame] | 32 | %void = OpTypeVoid |
| 33 | %9 = OpTypeFunction %void |
| 34 | %v3float = OpTypeVector %float 3 |
| 35 | %16 = OpConstantNull %v3float |
| 36 | %float_1 = OpConstant %float 1 |
| 37 | %_ptr_Function_v3float = OpTypePointer Function %v3float |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 38 | %22 = OpTypeFunction %v4float |
Ben Clayton | 7204756 | 2021-07-23 16:43:01 +0000 | [diff] [blame] | 39 | %mix_315264 = OpFunction %void None %9 |
| 40 | %12 = OpLabel |
| 41 | %18 = OpVariable %_ptr_Function_v3float Function %16 |
| 42 | %res = OpVariable %_ptr_Function_v3float Function %16 |
| 43 | %20 = OpCompositeConstruct %v3float %float_1 %float_1 %float_1 |
| 44 | %13 = OpExtInst %v3float %15 FMix %16 %16 %20 |
| 45 | OpStore %res %13 |
| 46 | OpReturn |
| 47 | OpFunctionEnd |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 48 | %vertex_main_inner = OpFunction %v4float None %22 |
| 49 | %24 = OpLabel |
| 50 | %25 = OpFunctionCall %void %mix_315264 |
| 51 | OpReturnValue %5 |
Ben Clayton | 7204756 | 2021-07-23 16:43:01 +0000 | [diff] [blame] | 52 | OpFunctionEnd |
| 53 | %vertex_main = OpFunction %void None %9 |
| 54 | %27 = OpLabel |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 55 | %28 = OpFunctionCall %v4float %vertex_main_inner |
| 56 | OpStore %value %28 |
| 57 | OpStore %vertex_point_size %float_1 |
Ben Clayton | 7204756 | 2021-07-23 16:43:01 +0000 | [diff] [blame] | 58 | OpReturn |
| 59 | OpFunctionEnd |
| 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 %mix_315264 |
Ben Clayton | 7204756 | 2021-07-23 16:43:01 +0000 | [diff] [blame] | 63 | OpReturn |
| 64 | OpFunctionEnd |
| 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 %mix_315264 |
Ben Clayton | 7204756 | 2021-07-23 16:43:01 +0000 | [diff] [blame] | 68 | OpReturn |
| 69 | OpFunctionEnd |