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: 38 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 5 | ; Schema: 0 |
| 6 | OpCapability Shader |
| 7 | OpCapability ImageQuery |
| 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 %arg_0 "arg_0" |
| 17 | OpName %textureDimensions_2fe1cc "textureDimensions_2fe1cc" |
| 18 | OpName %res "res" |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 19 | OpName %vertex_main_inner "vertex_main_inner" |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 20 | OpName %vertex_main "vertex_main" |
| 21 | OpName %fragment_main "fragment_main" |
| 22 | OpName %compute_main "compute_main" |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 23 | OpDecorate %value BuiltIn Position |
| 24 | OpDecorate %vertex_point_size BuiltIn PointSize |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 25 | OpDecorate %arg_0 DescriptorSet 1 |
| 26 | OpDecorate %arg_0 Binding 0 |
| 27 | %float = OpTypeFloat 32 |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 28 | %v4float = OpTypeVector %float 4 |
| 29 | %_ptr_Output_v4float = OpTypePointer Output %v4float |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 30 | %5 = OpConstantNull %v4float |
| 31 | %value = OpVariable %_ptr_Output_v4float Output %5 |
| 32 | %_ptr_Output_float = OpTypePointer Output %float |
| 33 | %8 = OpConstantNull %float |
| 34 | %vertex_point_size = OpVariable %_ptr_Output_float Output %8 |
| 35 | %11 = OpTypeImage %float 2D 0 0 0 1 Unknown |
| 36 | %_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11 |
| 37 | %arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 38 | %void = OpTypeVoid |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 39 | %12 = OpTypeFunction %void |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 40 | %int = OpTypeInt 32 1 |
| 41 | %v2int = OpTypeVector %int 2 |
Ben Clayton | e4fd4a2 | 2021-07-08 21:04:53 +0000 | [diff] [blame] | 42 | %int_0 = OpConstant %int 0 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 43 | %_ptr_Function_v2int = OpTypePointer Function %v2int |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 44 | %23 = OpConstantNull %v2int |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 45 | %24 = OpTypeFunction %v4float |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 46 | %float_1 = OpConstant %float 1 |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 47 | %textureDimensions_2fe1cc = OpFunction %void None %12 |
| 48 | %15 = OpLabel |
| 49 | %res = OpVariable %_ptr_Function_v2int Function %23 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 50 | %19 = OpLoad %11 %arg_0 |
Ben Clayton | e4fd4a2 | 2021-07-08 21:04:53 +0000 | [diff] [blame] | 51 | %16 = OpImageQuerySizeLod %v2int %19 %int_0 |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 52 | OpStore %res %16 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 53 | OpReturn |
| 54 | OpFunctionEnd |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 55 | %vertex_main_inner = OpFunction %v4float None %24 |
| 56 | %26 = OpLabel |
| 57 | %27 = OpFunctionCall %void %textureDimensions_2fe1cc |
| 58 | OpReturnValue %5 |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 59 | OpFunctionEnd |
| 60 | %vertex_main = OpFunction %void None %12 |
| 61 | %29 = OpLabel |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 62 | %30 = OpFunctionCall %v4float %vertex_main_inner |
| 63 | OpStore %value %30 |
| 64 | OpStore %vertex_point_size %float_1 |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 65 | OpReturn |
| 66 | OpFunctionEnd |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 67 | %fragment_main = OpFunction %void None %12 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 68 | %33 = OpLabel |
| 69 | %34 = OpFunctionCall %void %textureDimensions_2fe1cc |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 70 | OpReturn |
| 71 | OpFunctionEnd |
James Price | 9fd3bef | 2021-06-04 17:31:48 +0000 | [diff] [blame] | 72 | %compute_main = OpFunction %void None %12 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 73 | %36 = OpLabel |
| 74 | %37 = OpFunctionCall %void %textureDimensions_2fe1cc |
Ben Clayton | b07a7ce | 2021-06-03 11:26:17 +0000 | [diff] [blame] | 75 | OpReturn |
| 76 | OpFunctionEnd |