// RUN: mlir-translate -split-input-file -test-spirv-roundtrip %s | FileCheck %s spv.module Logical GLSL450 requires #spv.vce { // CHECK: location = 0 : i32 spv.globalVariable @var {location = 0 : i32} : !spv.ptr, Input> } // ----- spv.module Logical GLSL450 requires #spv.vce { // CHECK: no_perspective spv.globalVariable @var {no_perspective} : !spv.ptr, Input> } // ----- spv.module Logical GLSL450 requires #spv.vce { // CHECK: flat spv.globalVariable @var {flat} : !spv.ptr } // ----- spv.module Logical GLSL450 requires #spv.vce { // CHECK: aliased // CHECK: aliased spv.globalVariable @var1 bind(0, 0) {aliased} : !spv.ptr[0])>, StorageBuffer> spv.globalVariable @var2 bind(0, 0) {aliased} : !spv.ptr[0])>, StorageBuffer> } // ----- spv.module Logical GLSL450 requires #spv.vce { // CHECK: non_readable spv.globalVariable @var bind(0, 0) {non_readable} : !spv.ptr[0])>, StorageBuffer> } // ----- spv.module Logical GLSL450 requires #spv.vce { // CHECK: non_writable spv.globalVariable @var bind(0, 0) {non_writable} : !spv.ptr[0])>, StorageBuffer> } // ----- spv.module Logical GLSL450 requires #spv.vce { // CHECK: restrict spv.globalVariable @var bind(0, 0) {restrict} : !spv.ptr[0])>, StorageBuffer> }