| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 45 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Fragment %fragment_main "fragment_main" |
| OpEntryPoint GLCompute %compute_main "compute_main" |
| OpEntryPoint Vertex %vertex_main "vertex_main" %vertex_main_position_Output %vertex_main___point_size_Output |
| OpExecutionMode %fragment_main OriginUpperLeft |
| OpExecutionMode %compute_main LocalSize 1 1 1 |
| OpName %arg_0 "arg_0" |
| OpName %vertex_main_position_Output "vertex_main_position_Output" |
| OpName %vertex_main___point_size_Output "vertex_main___point_size_Output" |
| OpName %textureLoad2d "textureLoad2d" |
| OpName %texture "texture" |
| OpName %coords "coords" |
| OpName %level "level" |
| OpName %doTextureLoad "doTextureLoad" |
| OpName %res "res" |
| OpName %vertex_main_inner "vertex_main_inner" |
| OpName %fragment_main "fragment_main" |
| OpName %compute_main "compute_main" |
| OpName %vertex_main "vertex_main" |
| OpDecorate %arg_0 DescriptorSet 1 |
| OpDecorate %arg_0 Binding 0 |
| OpDecorate %vertex_main_position_Output BuiltIn Position |
| OpDecorate %vertex_main___point_size_Output BuiltIn PointSize |
| %int = OpTypeInt 32 1 |
| %3 = OpTypeImage %int 2D 0 0 0 1 Unknown |
| %_ptr_UniformConstant_3 = OpTypePointer UniformConstant %3 |
| %arg_0 = OpVariable %_ptr_UniformConstant_3 UniformConstant |
| %float = OpTypeFloat 32 |
| %v4float = OpTypeVector %float 4 |
| %_ptr_Output_v4float = OpTypePointer Output %v4float |
| %vertex_main_position_Output = OpVariable %_ptr_Output_v4float Output |
| %_ptr_Output_float = OpTypePointer Output %float |
| %vertex_main___point_size_Output = OpVariable %_ptr_Output_float Output |
| %v4int = OpTypeVector %int 4 |
| %v2int = OpTypeVector %int 2 |
| %17 = OpTypeFunction %v4int %3 %v2int %int |
| %void = OpTypeVoid |
| %22 = OpTypeFunction %void |
| %26 = OpConstantNull %v2int |
| %int_0 = OpConstant %int 0 |
| %_ptr_Function_v4int = OpTypePointer Function %v4int |
| %31 = OpTypeFunction %v4float |
| %34 = OpConstantNull %v4float |
| %float_1 = OpConstant %float 1 |
| %textureLoad2d = OpFunction %v4int None %17 |
| %texture = OpFunctionParameter %3 |
| %coords = OpFunctionParameter %v2int |
| %level = OpFunctionParameter %int |
| %18 = OpLabel |
| %19 = OpImageFetch %v4int %texture %coords Lod %level |
| OpReturnValue %19 |
| OpFunctionEnd |
| %doTextureLoad = OpFunction %void None %22 |
| %23 = OpLabel |
| %res = OpVariable %_ptr_Function_v4int Function |
| %24 = OpLoad %3 %arg_0 |
| %25 = OpFunctionCall %v4int %textureLoad2d %24 %26 %int_0 |
| OpStore %res %25 |
| OpReturn |
| OpFunctionEnd |
| %vertex_main_inner = OpFunction %v4float None %31 |
| %32 = OpLabel |
| %33 = OpFunctionCall %void %doTextureLoad |
| OpReturnValue %34 |
| OpFunctionEnd |
| %fragment_main = OpFunction %void None %22 |
| %36 = OpLabel |
| %37 = OpFunctionCall %void %doTextureLoad |
| OpReturn |
| OpFunctionEnd |
| %compute_main = OpFunction %void None %22 |
| %39 = OpLabel |
| %40 = OpFunctionCall %void %doTextureLoad |
| OpReturn |
| OpFunctionEnd |
| %vertex_main = OpFunction %void None %22 |
| %42 = OpLabel |
| %43 = OpFunctionCall %v4float %vertex_main_inner |
| OpStore %vertex_main_position_Output %43 |
| OpStore %vertex_main___point_size_Output %float_1 |
| OpReturn |
| OpFunctionEnd |