| ; 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 %UniformBuffer 0 "d" |
| OpName %UniformBuffer "UniformBuffer" |
| OpMemberName %u_input_block 0 "inner" |
| OpName %u_input_block "u_input_block" |
| OpName %main "main" |
| OpName %temp "temp" |
| OpMemberDecorate %UniformBuffer 0 Offset 0 |
| OpMemberDecorate %u_input_block 0 Offset 0 |
| OpDecorate %u_input_block Block |
| OpDecorate %1 DescriptorSet 0 |
| OpDecorate %1 Binding 0 |
| OpDecorate %1 NonWritable |
| %int = OpTypeInt 32 1 |
| %v3int = OpTypeVector %int 3 |
| %UniformBuffer = OpTypeStruct %v3int |
| %u_input_block = OpTypeStruct %UniformBuffer |
| %_ptr_Uniform_u_input_block = OpTypePointer Uniform %u_input_block |
| %1 = OpVariable %_ptr_Uniform_u_input_block Uniform |
| %void = OpTypeVoid |
| %9 = OpTypeFunction %void |
| %_ptr_Uniform_v3int = OpTypePointer Uniform %v3int |
| %uint = OpTypeInt 32 0 |
| %uint_0 = OpConstant %uint 0 |
| %v3uint = OpTypeVector %uint 3 |
| %17 = OpConstantNull %v3uint |
| %uint_31 = OpConstant %uint 31 |
| %19 = OpConstantComposite %v3uint %uint_31 %uint_31 %uint_31 |
| %main = OpFunction %void None %9 |
| %10 = OpLabel |
| %11 = OpAccessChain %_ptr_Uniform_v3int %1 %uint_0 %uint_0 |
| %15 = OpLoad %v3int %11 None |
| %16 = OpBitwiseAnd %v3uint %17 %19 |
| %21 = OpBitcast %v3uint %15 |
| %22 = OpShiftLeftLogical %v3uint %21 %16 |
| %temp = OpBitcast %v3int %22 |
| OpReturn |
| OpFunctionEnd |