| ; SPIR-V | |
| ; Version: 1.3 | |
| ; Generator: Google Tint Compiler; 1 | |
| ; Bound: 39 | |
| ; Schema: 0 | |
| OpCapability Shader | |
| %29 = OpExtInstImport "GLSL.std.450" | |
| OpMemoryModel Logical GLSL450 | |
| OpEntryPoint GLCompute %main "main" | |
| OpExecutionMode %main LocalSize 1 1 1 | |
| OpMemberName %s_block_tint_explicit_layout 0 "inner" | |
| OpName %s_block_tint_explicit_layout "s_block_tint_explicit_layout" | |
| OpName %main "main" | |
| OpName %q "q" | |
| OpDecorate %_runtimearr_uint ArrayStride 4 | |
| OpMemberDecorate %s_block_tint_explicit_layout 0 Offset 0 | |
| OpDecorate %s_block_tint_explicit_layout Block | |
| OpDecorate %1 DescriptorSet 0 | |
| OpDecorate %1 Binding 0 | |
| OpDecorate %1 Coherent | |
| %uint = OpTypeInt 32 0 | |
| %_runtimearr_uint = OpTypeRuntimeArray %uint | |
| %s_block_tint_explicit_layout = OpTypeStruct %_runtimearr_uint | |
| %_ptr_StorageBuffer_s_block_tint_explicit_layout = OpTypePointer StorageBuffer %s_block_tint_explicit_layout | |
| %1 = OpVariable %_ptr_StorageBuffer_s_block_tint_explicit_layout StorageBuffer | |
| %v2uint = OpTypeVector %uint 2 | |
| %uint_2 = OpConstant %uint 2 | |
| %_arr_v2uint_uint_2 = OpTypeArray %v2uint %uint_2 | |
| %_ptr_Private__arr_v2uint_uint_2 = OpTypePointer Private %_arr_v2uint_uint_2 | |
| %uint_1 = OpConstant %uint 1 | |
| %12 = OpConstantComposite %v2uint %uint_1 %uint_2 | |
| %uint_3 = OpConstant %uint 3 | |
| %uint_4 = OpConstant %uint 4 | |
| %14 = OpConstantComposite %v2uint %uint_3 %uint_4 | |
| %11 = OpConstantComposite %_arr_v2uint_uint_2 %12 %14 | |
| %6 = OpVariable %_ptr_Private__arr_v2uint_uint_2 Private %11 | |
| %void = OpTypeVoid | |
| %19 = OpTypeFunction %void | |
| %_ptr_Function_uint = OpTypePointer Function %uint | |
| %uint_0 = OpConstant %uint 0 | |
| %_ptr_StorageBuffer__runtimearr_uint = OpTypePointer StorageBuffer %_runtimearr_uint | |
| %_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint | |
| %_ptr_Private_v2uint = OpTypePointer Private %v2uint | |
| %_ptr_Private_uint = OpTypePointer Private %uint | |
| %main = OpFunction %void None %19 | |
| %20 = OpLabel | |
| %q = OpVariable %_ptr_Function_uint Function | |
| OpStore %q %uint_0 | |
| %24 = OpAccessChain %_ptr_StorageBuffer__runtimearr_uint %1 %uint_0 | |
| %26 = OpArrayLength %uint %1 0 | |
| %27 = OpISub %uint %26 %uint_1 | |
| %28 = OpExtInst %uint %29 UMin %uint_0 %27 | |
| %30 = OpAccessChain %_ptr_StorageBuffer_uint %1 %uint_0 %28 | |
| %32 = OpLoad %uint %q None | |
| %33 = OpExtInst %uint %29 UMin %32 %uint_1 | |
| %34 = OpAccessChain %_ptr_Private_v2uint %6 %33 | |
| %36 = OpAccessChain %_ptr_Private_uint %34 %uint_0 | |
| %38 = OpLoad %uint %36 None | |
| OpStore %30 %38 None | |
| OpReturn | |
| OpFunctionEnd |