James Price | 88c231b | 2023-08-15 12:47:28 +0000 | [diff] [blame] | 1 | ; SPIR-V |
| 2 | ; Version: 1.3 |
| 3 | ; Generator: Google Tint Compiler; 0 |
| 4 | ; Bound: 44 |
| 5 | ; Schema: 0 |
| 6 | OpCapability Shader |
| 7 | OpCapability Image1D |
| 8 | OpCapability ImageQuery |
| 9 | OpMemoryModel Logical GLSL450 |
| 10 | OpEntryPoint Vertex %vertex_main "vertex_main" %value %vertex_point_size |
| 11 | OpEntryPoint Fragment %fragment_main "fragment_main" |
| 12 | OpEntryPoint GLCompute %compute_main "compute_main" |
| 13 | OpExecutionMode %fragment_main OriginUpperLeft |
| 14 | OpExecutionMode %compute_main LocalSize 1 1 1 |
| 15 | OpName %value "value" |
| 16 | OpName %vertex_point_size "vertex_point_size" |
| 17 | OpName %arg_0 "arg_0" |
| 18 | OpName %prevent_dce_block "prevent_dce_block" |
| 19 | OpMemberName %prevent_dce_block 0 "inner" |
| 20 | OpName %prevent_dce "prevent_dce" |
| 21 | OpName %textureDimensions_8e5de6 "textureDimensions_8e5de6" |
| 22 | OpName %res "res" |
| 23 | OpName %vertex_main_inner "vertex_main_inner" |
| 24 | OpName %vertex_main "vertex_main" |
| 25 | OpName %fragment_main "fragment_main" |
| 26 | OpName %compute_main "compute_main" |
| 27 | OpDecorate %value BuiltIn Position |
| 28 | OpDecorate %vertex_point_size BuiltIn PointSize |
| 29 | OpDecorate %arg_0 NonWritable |
| 30 | OpDecorate %arg_0 DescriptorSet 1 |
| 31 | OpDecorate %arg_0 Binding 0 |
| 32 | OpDecorate %prevent_dce_block Block |
| 33 | OpMemberDecorate %prevent_dce_block 0 Offset 0 |
| 34 | OpDecorate %prevent_dce DescriptorSet 2 |
| 35 | OpDecorate %prevent_dce Binding 0 |
| 36 | %float = OpTypeFloat 32 |
| 37 | %v4float = OpTypeVector %float 4 |
| 38 | %_ptr_Output_v4float = OpTypePointer Output %v4float |
| 39 | %5 = OpConstantNull %v4float |
| 40 | %value = OpVariable %_ptr_Output_v4float Output %5 |
| 41 | %_ptr_Output_float = OpTypePointer Output %float |
| 42 | %8 = OpConstantNull %float |
| 43 | %vertex_point_size = OpVariable %_ptr_Output_float Output %8 |
| 44 | %int = OpTypeInt 32 1 |
| 45 | %11 = OpTypeImage %int 1D 0 0 0 2 R32i |
| 46 | %_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11 |
| 47 | %arg_0 = OpVariable %_ptr_UniformConstant_11 UniformConstant |
| 48 | %uint = OpTypeInt 32 0 |
| 49 | %prevent_dce_block = OpTypeStruct %uint |
| 50 | %_ptr_StorageBuffer_prevent_dce_block = OpTypePointer StorageBuffer %prevent_dce_block |
| 51 | %prevent_dce = OpVariable %_ptr_StorageBuffer_prevent_dce_block StorageBuffer |
| 52 | %void = OpTypeVoid |
| 53 | %17 = OpTypeFunction %void |
| 54 | %_ptr_Function_uint = OpTypePointer Function %uint |
| 55 | %25 = OpConstantNull %uint |
| 56 | %uint_0 = OpConstant %uint 0 |
| 57 | %_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint |
| 58 | %30 = OpTypeFunction %v4float |
| 59 | %float_1 = OpConstant %float 1 |
| 60 | %textureDimensions_8e5de6 = OpFunction %void None %17 |
| 61 | %20 = OpLabel |
| 62 | %res = OpVariable %_ptr_Function_uint Function %25 |
| 63 | %22 = OpLoad %11 %arg_0 |
| 64 | %21 = OpImageQuerySize %uint %22 |
| 65 | OpStore %res %21 |
| 66 | %28 = OpAccessChain %_ptr_StorageBuffer_uint %prevent_dce %uint_0 |
| 67 | %29 = OpLoad %uint %res |
| 68 | OpStore %28 %29 |
| 69 | OpReturn |
| 70 | OpFunctionEnd |
| 71 | %vertex_main_inner = OpFunction %v4float None %30 |
| 72 | %32 = OpLabel |
| 73 | %33 = OpFunctionCall %void %textureDimensions_8e5de6 |
| 74 | OpReturnValue %5 |
| 75 | OpFunctionEnd |
| 76 | %vertex_main = OpFunction %void None %17 |
| 77 | %35 = OpLabel |
| 78 | %36 = OpFunctionCall %v4float %vertex_main_inner |
| 79 | OpStore %value %36 |
| 80 | OpStore %vertex_point_size %float_1 |
| 81 | OpReturn |
| 82 | OpFunctionEnd |
| 83 | %fragment_main = OpFunction %void None %17 |
| 84 | %39 = OpLabel |
| 85 | %40 = OpFunctionCall %void %textureDimensions_8e5de6 |
| 86 | OpReturn |
| 87 | OpFunctionEnd |
| 88 | %compute_main = OpFunction %void None %17 |
| 89 | %42 = OpLabel |
| 90 | %43 = OpFunctionCall %void %textureDimensions_8e5de6 |
| 91 | OpReturn |
| 92 | OpFunctionEnd |