| ; SPIR-V | |
| ; Version: 1.3 | |
| ; Generator: Google Tint Compiler; 1 | |
| ; Bound: 24 | |
| ; Schema: 0 | |
| OpCapability Shader | |
| OpMemoryModel Logical GLSL450 | |
| OpEntryPoint GLCompute %main "main" | |
| OpExecutionMode %main LocalSize 1 1 1 | |
| OpMemberName %v_block_tint_explicit_layout 0 "inner" | |
| OpName %v_block_tint_explicit_layout "v_block_tint_explicit_layout" | |
| OpMemberName %out_block 0 "inner" | |
| OpName %out_block "out_block" | |
| OpName %foo "foo" | |
| OpName %main "main" | |
| OpDecorate %_runtimearr_uint ArrayStride 4 | |
| OpMemberDecorate %v_block_tint_explicit_layout 0 Offset 0 | |
| OpDecorate %v_block_tint_explicit_layout Block | |
| OpDecorate %1 DescriptorSet 0 | |
| OpDecorate %1 Binding 0 | |
| OpDecorate %1 Coherent | |
| OpMemberDecorate %out_block 0 Offset 0 | |
| OpDecorate %out_block Block | |
| OpDecorate %6 DescriptorSet 0 | |
| OpDecorate %6 Binding 1 | |
| OpDecorate %6 Coherent | |
| %uint = OpTypeInt 32 0 | |
| %_runtimearr_uint = OpTypeRuntimeArray %uint | |
| %v_block_tint_explicit_layout = OpTypeStruct %_runtimearr_uint | |
| %_ptr_StorageBuffer_v_block_tint_explicit_layout = OpTypePointer StorageBuffer %v_block_tint_explicit_layout | |
| %1 = OpVariable %_ptr_StorageBuffer_v_block_tint_explicit_layout StorageBuffer | |
| %out_block = OpTypeStruct %uint | |
| %_ptr_StorageBuffer_out_block = OpTypePointer StorageBuffer %out_block | |
| %6 = OpVariable %_ptr_StorageBuffer_out_block StorageBuffer | |
| %void = OpTypeVoid | |
| %11 = OpTypeFunction %void | |
| %_ptr_StorageBuffer__runtimearr_uint = OpTypePointer StorageBuffer %_runtimearr_uint | |
| %uint_0 = OpConstant %uint 0 | |
| %uint_4 = OpConstant %uint 4 | |
| %_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint | |
| %foo = OpFunction %void None %11 | |
| %12 = OpLabel | |
| %13 = OpAccessChain %_ptr_StorageBuffer__runtimearr_uint %1 %uint_0 | |
| %16 = OpArrayLength %uint %1 0 | |
| %17 = OpIMul %uint %16 %uint_4 | |
| %19 = OpAccessChain %_ptr_StorageBuffer_uint %6 %uint_0 | |
| OpStore %19 %17 None | |
| OpReturn | |
| OpFunctionEnd | |
| %main = OpFunction %void None %11 | |
| %22 = OpLabel | |
| %23 = OpFunctionCall %void %foo | |
| OpReturn | |
| OpFunctionEnd |