2021-02-02 03:30:50 +08:00
|
|
|
// RUN: mlir-translate -test-spirv-roundtrip %s | FileCheck %s
|
|
|
|
|
|
|
|
spv.module Logical GLSL450 requires #spv.vce<v1.0, [Shader], []> {
|
|
|
|
// CHECK: !spv.ptr<!spv.image<f32, Dim1D, NoDepth, NonArrayed, SingleSampled, SamplerUnknown, Unknown>, UniformConstant>
|
2021-03-05 05:17:12 +08:00
|
|
|
spv.GlobalVariable @var0 bind(0, 1) : !spv.ptr<!spv.image<f32, Dim1D, NoDepth, NonArrayed, SingleSampled, SamplerUnknown, Unknown>, UniformConstant>
|
2021-02-02 03:30:50 +08:00
|
|
|
|
|
|
|
// CHECK: !spv.ptr<!spv.image<si32, Cube, IsDepth, NonArrayed, SingleSampled, NeedSampler, R8ui>, UniformConstant>
|
2021-03-05 05:17:12 +08:00
|
|
|
spv.GlobalVariable @var1 : !spv.ptr<!spv.image<si32, Cube, IsDepth, NonArrayed, SingleSampled, NeedSampler, R8ui>, UniformConstant>
|
2021-02-02 03:30:50 +08:00
|
|
|
|
|
|
|
// CHECK: !spv.ptr<!spv.image<i32, SubpassData, DepthUnknown, Arrayed, MultiSampled, NoSampler, Unknown>, UniformConstant>
|
2021-03-05 05:17:12 +08:00
|
|
|
spv.GlobalVariable @var2 : !spv.ptr<!spv.image<i32, SubpassData, DepthUnknown, Arrayed, MultiSampled, NoSampler, Unknown>, UniformConstant>
|
2021-02-02 03:30:50 +08:00
|
|
|
}
|