dan sinclair | 1b77b6c | 2024-08-06 15:47:05 +0000 | [diff] [blame] | 1 | ; SPIR-V |
| 2 | ; Version: 1.3 |
| 3 | ; Generator: Google Tint Compiler; 1 |
| 4 | ; Bound: 35 |
| 5 | ; Schema: 0 |
| 6 | OpCapability Shader |
| 7 | OpMemoryModel Logical GLSL450 |
| 8 | OpEntryPoint Fragment %fragment_main "fragment_main" |
| 9 | OpEntryPoint GLCompute %compute_main "compute_main" |
| 10 | OpExecutionMode %fragment_main OriginUpperLeft |
| 11 | OpExecutionMode %compute_main LocalSize 1 1 1 |
| 12 | OpMemberName %tint_symbol_1 0 "tint_symbol" |
| 13 | OpName %tint_symbol_1 "tint_symbol_1" |
| 14 | OpName %arg_0 "arg_0" |
| 15 | OpName %textureLoad_6ba9ab "textureLoad_6ba9ab" |
| 16 | OpName %res "res" |
| 17 | OpName %fragment_main "fragment_main" |
| 18 | OpName %compute_main "compute_main" |
| 19 | OpMemberDecorate %tint_symbol_1 0 Offset 0 |
| 20 | OpDecorate %tint_symbol_1 Block |
| 21 | OpDecorate %1 DescriptorSet 0 |
| 22 | OpDecorate %1 Binding 0 |
| 23 | OpDecorate %arg_0 DescriptorSet 1 |
| 24 | OpDecorate %arg_0 Binding 0 |
| 25 | %float = OpTypeFloat 32 |
| 26 | %v4float = OpTypeVector %float 4 |
| 27 | %tint_symbol_1 = OpTypeStruct %v4float |
| 28 | %_ptr_StorageBuffer_tint_symbol_1 = OpTypePointer StorageBuffer %tint_symbol_1 |
| 29 | %1 = OpVariable %_ptr_StorageBuffer_tint_symbol_1 StorageBuffer |
| 30 | %8 = OpTypeImage %float 2D 0 1 0 2 Rgba8 |
| 31 | %_ptr_UniformConstant_8 = OpTypePointer UniformConstant %8 |
| 32 | %arg_0 = OpVariable %_ptr_UniformConstant_8 UniformConstant |
| 33 | %10 = OpTypeFunction %v4float |
| 34 | %uint = OpTypeInt 32 0 |
| 35 | %v3uint = OpTypeVector %uint 3 |
| 36 | %v2uint = OpTypeVector %uint 2 |
| 37 | %uint_1 = OpConstant %uint 1 |
| 38 | %16 = OpConstantComposite %v2uint %uint_1 %uint_1 |
| 39 | %_ptr_Function_v4float = OpTypePointer Function %v4float |
| 40 | %void = OpTypeVoid |
| 41 | %25 = OpTypeFunction %void |
| 42 | %_ptr_StorageBuffer_v4float = OpTypePointer StorageBuffer %v4float |
| 43 | %uint_0 = OpConstant %uint 0 |
| 44 | %textureLoad_6ba9ab = OpFunction %v4float None %10 |
| 45 | %11 = OpLabel |
| 46 | %res = OpVariable %_ptr_Function_v4float Function |
| 47 | %12 = OpLoad %8 %arg_0 |
| 48 | %15 = OpCompositeConstruct %v3uint %16 %uint_1 |
| 49 | %19 = OpImageRead %v4float %12 %15 None |
| 50 | OpStore %res %19 |
| 51 | %22 = OpLoad %v4float %res |
| 52 | OpReturnValue %22 |
| 53 | OpFunctionEnd |
| 54 | %fragment_main = OpFunction %void None %25 |
| 55 | %26 = OpLabel |
| 56 | %27 = OpFunctionCall %v4float %textureLoad_6ba9ab |
| 57 | %28 = OpAccessChain %_ptr_StorageBuffer_v4float %1 %uint_0 |
| 58 | OpStore %28 %27 |
| 59 | OpReturn |
| 60 | OpFunctionEnd |
| 61 | %compute_main = OpFunction %void None %25 |
| 62 | %32 = OpLabel |
| 63 | %33 = OpFunctionCall %v4float %textureLoad_6ba9ab |
| 64 | %34 = OpAccessChain %_ptr_StorageBuffer_v4float %1 %uint_0 |
| 65 | OpStore %34 %33 |
| 66 | OpReturn |
| 67 | OpFunctionEnd |