|
1 |
| -// RUN: %dxc -T ps_6_0 -E main -fcgl %s -spirv | FileCheck %s |
| 1 | +// RUN: %dxc -T ps_6_0 -E main -fcgl %s -spirv | FileCheck %s --check-prefixes=CHECK,INFER |
| 2 | +// RUN: %dxc -fspv-target-env=vulkan1.3 -T ps_6_0 -E main -fcgl %s -spirv | FileCheck %s --check-prefixes=CHECK,UNKNOWN |
| 3 | +// RUN: %dxc -fspv-target-env=universal1.5 -T ps_6_0 -E main -fcgl %s -spirv | FileCheck %s --check-prefixes=CHECK,UNKNOWN |
| 4 | + |
| 5 | +// Before vulkan1.3, we should be trying to infer the image type for because |
| 6 | +// we cannot necessarily use Unknown. However in VK1.3 and later, we can use |
| 7 | +// Unknown. |
2 | 8 |
|
3 | 9 | // CHECK: OpCapability SampledBuffer
|
4 |
| -// CHECK: OpCapability StorageImageExtendedFormats |
| 10 | +// INFER: OpCapability StorageImageExtendedFormats |
5 | 11 |
|
6 |
| -// CHECK: %type_buffer_image = OpTypeImage %int Buffer 2 0 0 1 R32i |
| 12 | +// INFER: %type_buffer_image = OpTypeImage %int Buffer 2 0 0 1 R32i |
| 13 | +// UNKNOWN: %type_buffer_image = OpTypeImage %int Buffer 2 0 0 1 Unknown |
7 | 14 | // CHECK: %_ptr_UniformConstant_type_buffer_image = OpTypePointer UniformConstant %type_buffer_image
|
8 | 15 | Buffer<int> intbuf;
|
9 |
| -// CHECK: %type_buffer_image_0 = OpTypeImage %uint Buffer 2 0 0 1 R32ui |
| 16 | +// INFER: %type_buffer_image_0 = OpTypeImage %uint Buffer 2 0 0 1 R32ui |
| 17 | +// UNKNOWN: %type_buffer_image_0 = OpTypeImage %uint Buffer 2 0 0 1 Unknown |
10 | 18 | // CHECK: %_ptr_UniformConstant_type_buffer_image_0 = OpTypePointer UniformConstant %type_buffer_image_0
|
11 | 19 | Buffer<uint> uintbuf;
|
12 |
| -// CHECK: %type_buffer_image_1 = OpTypeImage %float Buffer 2 0 0 1 R32f |
| 20 | +// INFER: %type_buffer_image_1 = OpTypeImage %float Buffer 2 0 0 1 R32f |
| 21 | +// UNKNOWN: %type_buffer_image_1 = OpTypeImage %float Buffer 2 0 0 1 Unknown |
13 | 22 | // CHECK: %_ptr_UniformConstant_type_buffer_image_1 = OpTypePointer UniformConstant %type_buffer_image_1
|
14 | 23 | Buffer<float> floatbuf;
|
15 | 24 |
|
16 |
| -// CHECK: %type_buffer_image_2 = OpTypeImage %int Buffer 2 0 0 2 R32i |
| 25 | +// INFER: %type_buffer_image_2 = OpTypeImage %int Buffer 2 0 0 2 R32i |
| 26 | +// UNKNOWN: %type_buffer_image_2 = OpTypeImage %int Buffer 2 0 0 2 Unknown |
17 | 27 | // CHECK: %_ptr_UniformConstant_type_buffer_image_2 = OpTypePointer UniformConstant %type_buffer_image_2
|
18 | 28 | RWBuffer<int> intrwbuf;
|
19 |
| -// CHECK: %type_buffer_image_3 = OpTypeImage %uint Buffer 2 0 0 2 R32ui |
| 29 | +// INFER: %type_buffer_image_3 = OpTypeImage %uint Buffer 2 0 0 2 R32ui |
| 30 | +// UNKNOWN: %type_buffer_image_3 = OpTypeImage %uint Buffer 2 0 0 2 Unknown |
20 | 31 | // CHECK: %_ptr_UniformConstant_type_buffer_image_3 = OpTypePointer UniformConstant %type_buffer_image_3
|
21 | 32 | RWBuffer<uint> uintrwbuf;
|
22 |
| -// CHECK: %type_buffer_image_4 = OpTypeImage %float Buffer 2 0 0 2 R32f |
| 33 | +// INFER: %type_buffer_image_4 = OpTypeImage %float Buffer 2 0 0 2 R32f |
| 34 | +// UNKNOWN: %type_buffer_image_4 = OpTypeImage %float Buffer 2 0 0 2 Unknown |
23 | 35 | // CHECK: %_ptr_UniformConstant_type_buffer_image_4 = OpTypePointer UniformConstant %type_buffer_image_4
|
24 | 36 | RWBuffer<float> floatrwbuf;
|
25 | 37 |
|
26 |
| -// CHECK: %type_buffer_image_5 = OpTypeImage %int Buffer 2 0 0 1 Rg32i |
27 |
| -// CHECK: %_ptr_UniformConstant_type_buffer_image_5 = OpTypePointer UniformConstant %type_buffer_image_5 |
| 38 | +// If the `Unkonwn image format is used, then the images below will reuse the types above. |
| 39 | +// UNKNOWN-NOT: OpTypeImage |
| 40 | + |
| 41 | +// INFER: %type_buffer_image_5 = OpTypeImage %int Buffer 2 0 0 1 Rg32i |
| 42 | +// INFER: %_ptr_UniformConstant_type_buffer_image_5 = OpTypePointer UniformConstant %type_buffer_image_5 |
28 | 43 | Buffer<int2> int2buf;
|
29 |
| -// CHECK: %type_buffer_image_6 = OpTypeImage %uint Buffer 2 0 0 1 Rg32ui |
30 |
| -// CHECK: %_ptr_UniformConstant_type_buffer_image_6 = OpTypePointer UniformConstant %type_buffer_image_6 |
| 44 | +// INFER: %type_buffer_image_6 = OpTypeImage %uint Buffer 2 0 0 1 Rg32ui |
| 45 | +// INFER: %_ptr_UniformConstant_type_buffer_image_6 = OpTypePointer UniformConstant %type_buffer_image_6 |
31 | 46 | Buffer<uint2> uint2buf;
|
32 |
| -// CHECK: %type_buffer_image_7 = OpTypeImage %float Buffer 2 0 0 1 Rg32f |
33 |
| -// CHECK: %_ptr_UniformConstant_type_buffer_image_7 = OpTypePointer UniformConstant %type_buffer_image_7 |
| 47 | +// INFER: %type_buffer_image_7 = OpTypeImage %float Buffer 2 0 0 1 Rg32f |
| 48 | +// INFER: %_ptr_UniformConstant_type_buffer_image_7 = OpTypePointer UniformConstant %type_buffer_image_7 |
34 | 49 | Buffer<float2> float2buf;
|
35 | 50 |
|
36 |
| -// CHECK: %type_buffer_image_8 = OpTypeImage %int Buffer 2 0 0 2 Rg32i |
37 |
| -// CHECK: %_ptr_UniformConstant_type_buffer_image_8 = OpTypePointer UniformConstant %type_buffer_image_8 |
| 51 | +// INFER: %type_buffer_image_8 = OpTypeImage %int Buffer 2 0 0 2 Rg32i |
| 52 | +// INFER: %_ptr_UniformConstant_type_buffer_image_8 = OpTypePointer UniformConstant %type_buffer_image_8 |
38 | 53 | RWBuffer<int2> int2rwbuf;
|
39 |
| -// CHECK: %type_buffer_image_9 = OpTypeImage %uint Buffer 2 0 0 2 Rg32ui |
40 |
| -// CHECK: %_ptr_UniformConstant_type_buffer_image_9 = OpTypePointer UniformConstant %type_buffer_image_9 |
| 54 | +// INFER: %type_buffer_image_9 = OpTypeImage %uint Buffer 2 0 0 2 Rg32ui |
| 55 | +// INFER: %_ptr_UniformConstant_type_buffer_image_9 = OpTypePointer UniformConstant %type_buffer_image_9 |
41 | 56 | RWBuffer<uint2> uint2rwbuf;
|
42 |
| -// CHECK: %type_buffer_image_10 = OpTypeImage %float Buffer 2 0 0 2 Rg32f |
43 |
| -// CHECK: %_ptr_UniformConstant_type_buffer_image_10 = OpTypePointer UniformConstant %type_buffer_image_10 |
| 57 | +// INFER: %type_buffer_image_10 = OpTypeImage %float Buffer 2 0 0 2 Rg32f |
| 58 | +// INFER: %_ptr_UniformConstant_type_buffer_image_10 = OpTypePointer UniformConstant %type_buffer_image_10 |
44 | 59 | RWBuffer<float2> float2rwbuf;
|
45 | 60 |
|
46 |
| -// CHECK: %type_buffer_image_11 = OpTypeImage %int Buffer 2 0 0 1 Unknown |
47 |
| -// CHECK: %_ptr_UniformConstant_type_buffer_image_11 = OpTypePointer UniformConstant %type_buffer_image_11 |
48 |
| -// CHECK: %type_buffer_image_12 = OpTypeImage %int Buffer 2 0 0 1 Rgba32i |
49 |
| -// CHECK: %_ptr_UniformConstant_type_buffer_image_12 = OpTypePointer UniformConstant %type_buffer_image_12 |
| 61 | +// INFER: %type_buffer_image_11 = OpTypeImage %int Buffer 2 0 0 1 Unknown |
| 62 | +// INFER: %_ptr_UniformConstant_type_buffer_image_11 = OpTypePointer UniformConstant %type_buffer_image_11 |
| 63 | +// INFER: %type_buffer_image_12 = OpTypeImage %int Buffer 2 0 0 1 Rgba32i |
| 64 | +// INFER: %_ptr_UniformConstant_type_buffer_image_12 = OpTypePointer UniformConstant %type_buffer_image_12 |
50 | 65 | Buffer<int3> int3buf;
|
51 | 66 | Buffer<int4> int4buf;
|
52 |
| -// CHECK: %type_buffer_image_13 = OpTypeImage %uint Buffer 2 0 0 1 Unknown |
53 |
| -// CHECK: %_ptr_UniformConstant_type_buffer_image_13 = OpTypePointer UniformConstant %type_buffer_image_13 |
54 |
| -// CHECK: %type_buffer_image_14 = OpTypeImage %uint Buffer 2 0 0 1 Rgba32ui |
55 |
| -// CHECK: %_ptr_UniformConstant_type_buffer_image_14 = OpTypePointer UniformConstant %type_buffer_image_14 |
| 67 | +// INFER: %type_buffer_image_13 = OpTypeImage %uint Buffer 2 0 0 1 Unknown |
| 68 | +// INFER: %_ptr_UniformConstant_type_buffer_image_13 = OpTypePointer UniformConstant %type_buffer_image_13 |
| 69 | +// INFER: %type_buffer_image_14 = OpTypeImage %uint Buffer 2 0 0 1 Rgba32ui |
| 70 | +// INFER: %_ptr_UniformConstant_type_buffer_image_14 = OpTypePointer UniformConstant %type_buffer_image_14 |
56 | 71 | Buffer<uint3> uint3buf;
|
57 | 72 | Buffer<uint4> uint4buf;
|
58 |
| -// CHECK: %type_buffer_image_15 = OpTypeImage %float Buffer 2 0 0 1 Unknown |
59 |
| -// CHECK: %_ptr_UniformConstant_type_buffer_image_15 = OpTypePointer UniformConstant %type_buffer_image_15 |
60 |
| -// CHECK: %type_buffer_image_16 = OpTypeImage %float Buffer 2 0 0 1 Rgba32f |
61 |
| -// CHECK: %_ptr_UniformConstant_type_buffer_image_16 = OpTypePointer UniformConstant %type_buffer_image_16 |
| 73 | +// INFER: %type_buffer_image_15 = OpTypeImage %float Buffer 2 0 0 1 Unknown |
| 74 | +// INFER: %_ptr_UniformConstant_type_buffer_image_15 = OpTypePointer UniformConstant %type_buffer_image_15 |
| 75 | +// INFER: %type_buffer_image_16 = OpTypeImage %float Buffer 2 0 0 1 Rgba32f |
| 76 | +// INFER: %_ptr_UniformConstant_type_buffer_image_16 = OpTypePointer UniformConstant %type_buffer_image_16 |
62 | 77 | Buffer<float3> float3buf;
|
63 | 78 | Buffer<float4> float4buf;
|
64 | 79 |
|
65 |
| -// CHECK: %type_buffer_image_17 = OpTypeImage %int Buffer 2 0 0 2 Unknown |
66 |
| -// CHECK: %_ptr_UniformConstant_type_buffer_image_17 = OpTypePointer UniformConstant %type_buffer_image_17 |
67 |
| -// CHECK: %type_buffer_image_18 = OpTypeImage %int Buffer 2 0 0 2 Rgba32i |
68 |
| -// CHECK: %_ptr_UniformConstant_type_buffer_image_18 = OpTypePointer UniformConstant %type_buffer_image_18 |
| 80 | +// INFER: %type_buffer_image_17 = OpTypeImage %int Buffer 2 0 0 2 Unknown |
| 81 | +// INFER: %_ptr_UniformConstant_type_buffer_image_17 = OpTypePointer UniformConstant %type_buffer_image_17 |
| 82 | +// INFER: %type_buffer_image_18 = OpTypeImage %int Buffer 2 0 0 2 Rgba32i |
| 83 | +// INFER: %_ptr_UniformConstant_type_buffer_image_18 = OpTypePointer UniformConstant %type_buffer_image_18 |
69 | 84 | RWBuffer<int3> int3rwbuf;
|
70 | 85 | RWBuffer<int4> int4rwbuf;
|
71 |
| -// CHECK: %type_buffer_image_19 = OpTypeImage %uint Buffer 2 0 0 2 Unknown |
72 |
| -// CHECK: %_ptr_UniformConstant_type_buffer_image_19 = OpTypePointer UniformConstant %type_buffer_image_19 |
73 |
| -// CHECK: %type_buffer_image_20 = OpTypeImage %uint Buffer 2 0 0 2 Rgba32ui |
74 |
| -// CHECK: %_ptr_UniformConstant_type_buffer_image_20 = OpTypePointer UniformConstant %type_buffer_image_20 |
| 86 | +// INFER: %type_buffer_image_19 = OpTypeImage %uint Buffer 2 0 0 2 Unknown |
| 87 | +// INFER: %_ptr_UniformConstant_type_buffer_image_19 = OpTypePointer UniformConstant %type_buffer_image_19 |
| 88 | +// INFER: %type_buffer_image_20 = OpTypeImage %uint Buffer 2 0 0 2 Rgba32ui |
| 89 | +// INFER: %_ptr_UniformConstant_type_buffer_image_20 = OpTypePointer UniformConstant %type_buffer_image_20 |
75 | 90 | RWBuffer<uint3> uint3rwbuf;
|
76 | 91 | RWBuffer<uint4> uint4rwbuf;
|
77 |
| -// CHECK: %type_buffer_image_21 = OpTypeImage %float Buffer 2 0 0 2 Unknown |
78 |
| -// CHECK: %_ptr_UniformConstant_type_buffer_image_21 = OpTypePointer UniformConstant %type_buffer_image_21 |
79 |
| -// CHECK: %type_buffer_image_22 = OpTypeImage %float Buffer 2 0 0 2 Rgba32f |
80 |
| -// CHECK: %_ptr_UniformConstant_type_buffer_image_22 = OpTypePointer UniformConstant %type_buffer_image_22 |
| 92 | +// INFER: %type_buffer_image_21 = OpTypeImage %float Buffer 2 0 0 2 Unknown |
| 93 | +// INFER: %_ptr_UniformConstant_type_buffer_image_21 = OpTypePointer UniformConstant %type_buffer_image_21 |
| 94 | +// INFER: %type_buffer_image_22 = OpTypeImage %float Buffer 2 0 0 2 Rgba32f |
| 95 | +// INFER: %_ptr_UniformConstant_type_buffer_image_22 = OpTypePointer UniformConstant %type_buffer_image_22 |
81 | 96 | RWBuffer<float3> float3rwbuf;
|
82 | 97 | RWBuffer<float4> float4rwbuf;
|
83 | 98 |
|
84 |
| -// CHECK: %intbuf = OpVariable %_ptr_UniformConstant_type_buffer_image UniformConstant |
85 |
| -// CHECK: %uintbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_0 UniformConstant |
86 |
| -// CHECK: %floatbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_1 UniformConstant |
87 |
| -// CHECK: %intrwbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_2 UniformConstant |
88 |
| -// CHECK: %uintrwbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_3 UniformConstant |
89 |
| -// CHECK: %floatrwbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_4 UniformConstant |
90 |
| -// CHECK: %int2buf = OpVariable %_ptr_UniformConstant_type_buffer_image_5 UniformConstant |
91 |
| -// CHECK: %uint2buf = OpVariable %_ptr_UniformConstant_type_buffer_image_6 UniformConstant |
92 |
| -// CHECK: %float2buf = OpVariable %_ptr_UniformConstant_type_buffer_image_7 UniformConstant |
93 |
| -// CHECK: %int2rwbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_8 UniformConstant |
94 |
| -// CHECK: %uint2rwbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_9 UniformConstant |
95 |
| -// CHECK: %float2rwbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_10 UniformConstant |
96 |
| -// CHECK: %int3buf = OpVariable %_ptr_UniformConstant_type_buffer_image_11 UniformConstant |
97 |
| -// CHECK: %int4buf = OpVariable %_ptr_UniformConstant_type_buffer_image_12 UniformConstant |
98 |
| -// CHECK: %uint3buf = OpVariable %_ptr_UniformConstant_type_buffer_image_13 UniformConstant |
99 |
| -// CHECK: %uint4buf = OpVariable %_ptr_UniformConstant_type_buffer_image_14 UniformConstant |
100 |
| -// CHECK: %float3buf = OpVariable %_ptr_UniformConstant_type_buffer_image_15 UniformConstant |
101 |
| -// CHECK: %float4buf = OpVariable %_ptr_UniformConstant_type_buffer_image_16 UniformConstant |
102 |
| -// CHECK: %int3rwbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_17 UniformConstant |
103 |
| -// CHECK: %int4rwbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_18 UniformConstant |
104 |
| -// CHECK: %uint3rwbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_19 UniformConstant |
105 |
| -// CHECK: %uint4rwbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_20 UniformConstant |
106 |
| -// CHECK: %float3rwbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_21 UniformConstant |
107 |
| -// CHECK: %float4rwbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_22 UniformConstant |
| 99 | +// INFER: %intbuf = OpVariable %_ptr_UniformConstant_type_buffer_image UniformConstant |
| 100 | +// INFER: %uintbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_0 UniformConstant |
| 101 | +// INFER: %floatbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_1 UniformConstant |
| 102 | +// INFER: %intrwbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_2 UniformConstant |
| 103 | +// INFER: %uintrwbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_3 UniformConstant |
| 104 | +// INFER: %floatrwbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_4 UniformConstant |
| 105 | +// INFER: %int2buf = OpVariable %_ptr_UniformConstant_type_buffer_image_5 UniformConstant |
| 106 | +// INFER: %uint2buf = OpVariable %_ptr_UniformConstant_type_buffer_image_6 UniformConstant |
| 107 | +// INFER: %float2buf = OpVariable %_ptr_UniformConstant_type_buffer_image_7 UniformConstant |
| 108 | +// INFER: %int2rwbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_8 UniformConstant |
| 109 | +// INFER: %uint2rwbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_9 UniformConstant |
| 110 | +// INFER: %float2rwbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_10 UniformConstant |
| 111 | +// INFER: %int3buf = OpVariable %_ptr_UniformConstant_type_buffer_image_11 UniformConstant |
| 112 | +// INFER: %int4buf = OpVariable %_ptr_UniformConstant_type_buffer_image_12 UniformConstant |
| 113 | +// INFER: %uint3buf = OpVariable %_ptr_UniformConstant_type_buffer_image_13 UniformConstant |
| 114 | +// INFER: %uint4buf = OpVariable %_ptr_UniformConstant_type_buffer_image_14 UniformConstant |
| 115 | +// INFER: %float3buf = OpVariable %_ptr_UniformConstant_type_buffer_image_15 UniformConstant |
| 116 | +// INFER: %float4buf = OpVariable %_ptr_UniformConstant_type_buffer_image_16 UniformConstant |
| 117 | +// INFER: %int3rwbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_17 UniformConstant |
| 118 | +// INFER: %int4rwbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_18 UniformConstant |
| 119 | +// INFER: %uint3rwbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_19 UniformConstant |
| 120 | +// INFER: %uint4rwbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_20 UniformConstant |
| 121 | +// INFER: %float3rwbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_21 UniformConstant |
| 122 | +// INFER: %float4rwbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_22 UniformConstant |
| 123 | + |
| 124 | +// UNKNOWN: %intbuf = OpVariable %_ptr_UniformConstant_type_buffer_image UniformConstant |
| 125 | +// UNKNOWN: %uintbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_0 UniformConstant |
| 126 | +// UNKNOWN: %floatbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_1 UniformConstant |
| 127 | +// UNKNOWN: %intrwbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_2 UniformConstant |
| 128 | +// UNKNOWN: %uintrwbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_3 UniformConstant |
| 129 | +// UNKNOWN: %floatrwbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_4 UniformConstant |
| 130 | +// UNKNOWN: %int2buf = OpVariable %_ptr_UniformConstant_type_buffer_image UniformConstant |
| 131 | +// UNKNOWN: %uint2buf = OpVariable %_ptr_UniformConstant_type_buffer_image_0 UniformConstant |
| 132 | +// UNKNOWN: %float2buf = OpVariable %_ptr_UniformConstant_type_buffer_image_1 UniformConstant |
| 133 | +// UNKNOWN: %int2rwbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_2 UniformConstant |
| 134 | +// UNKNOWN: %uint2rwbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_3 UniformConstant |
| 135 | +// UNKNOWN: %float2rwbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_4 UniformConstant |
| 136 | +// UNKNOWN: %int3buf = OpVariable %_ptr_UniformConstant_type_buffer_image UniformConstant |
| 137 | +// UNKNOWN: %int4buf = OpVariable %_ptr_UniformConstant_type_buffer_image UniformConstant |
| 138 | +// UNKNOWN: %uint3buf = OpVariable %_ptr_UniformConstant_type_buffer_image_0 UniformConstant |
| 139 | +// UNKNOWN: %uint4buf = OpVariable %_ptr_UniformConstant_type_buffer_image_0 UniformConstant |
| 140 | +// UNKNOWN: %float3buf = OpVariable %_ptr_UniformConstant_type_buffer_image_1 UniformConstant |
| 141 | +// UNKNOWN: %float4buf = OpVariable %_ptr_UniformConstant_type_buffer_image_1 UniformConstant |
| 142 | +// UNKNOWN: %int3rwbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_2 UniformConstant |
| 143 | +// UNKNOWN: %int4rwbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_2 UniformConstant |
| 144 | +// UNKNOWN: %uint3rwbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_3 UniformConstant |
| 145 | +// UNKNOWN: %uint4rwbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_3 UniformConstant |
| 146 | +// UNKNOWN: %float3rwbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_4 UniformConstant |
| 147 | +// UNKNOWN: %float4rwbuf = OpVariable %_ptr_UniformConstant_type_buffer_image_4 UniformConstant |
108 | 148 |
|
109 | 149 | void main() {}
|
0 commit comments