Zig Version
0.16.0
Steps to Reproduce and Observed Behavior
constgpu=@import("std").gpu;constx=[_]f32{1,2,3};exportfnmain()callconv(.spirv_vertex)void{gpu.point_size_out.*=x[gpu.vertex_index];}$ zig build-obj -target spirv32-vulkan -mcpu vulkan_v1_2 test.zig
$ spirv-val --target-env vulkan1.2 test.spv
error: line 71: [VUID-StandaloneSpirv-None-10684] Invalid explicit layout decorations on type for operand '21[%_ptr_Function__arr_f32_u32_3]', the Function storage class has a explicit layout from the ArrayStride decoration.
%50 = OpVariable %_ptr_Function__arr_f32_u32_3 Function
Seems to occur with any array access.
Expected Behavior
No validation error.
### Zig Version
0.16.0
### Steps to Reproduce and Observed Behavior
```zig
const gpu = @import("std").gpu;
const x = [_]f32{ 1, 2, 3 };
export fn main() callconv(.spirv_vertex) void {
gpu.point_size_out.* = x[gpu.vertex_index];
}
```
```
$ zig build-obj -target spirv32-vulkan -mcpu vulkan_v1_2 test.zig
$ spirv-val --target-env vulkan1.2 test.spv
error: line 71: [VUID-StandaloneSpirv-None-10684] Invalid explicit layout decorations on type for operand '21[%_ptr_Function__arr_f32_u32_3]', the Function storage class has a explicit layout from the ArrayStride decoration.
%50 = OpVariable %_ptr_Function__arr_f32_u32_3 Function
```
Seems to occur with any array access.
### Expected Behavior
No validation error.