// RUN: mlir-translate -split-input-file -test-spirv-roundtrip %s | FileCheck %s spv.module Logical GLSL450 requires #spv.vce { spv.func @array_stride(%arg0 : !spv.ptr, stride=128>, StorageBuffer>, %arg1 : i32, %arg2 : i32) "None" { // CHECK: {{%.*}} = spv.AccessChain {{%.*}}[{{%.*}}, {{%.*}}] : !spv.ptr, stride=128>, StorageBuffer>, i32, i32 %2 = spv.AccessChain %arg0[%arg1, %arg2] : !spv.ptr, stride=128>, StorageBuffer>, i32, i32 spv.Return } } // ----- spv.module Logical GLSL450 requires #spv.vce { // CHECK: spv.globalVariable {{@.*}} : !spv.ptr, StorageBuffer> spv.globalVariable @var0 : !spv.ptr, StorageBuffer> // CHECK: spv.globalVariable {{@.*}} : !spv.ptr>, Input> spv.globalVariable @var1 : !spv.ptr>, Input> }