#zig build-obj {
--name test -fno-emit-bin
-target spirv32-vulkan -fno-llvm
-Mroot=test.zig
#}

#write test.zig {
comptime {
    _ = @SpirvType(.{ .image = .{
        .usage = .{ .sampled = bool },
        .format = .unknown,
        .dim = .@"2d",
        .depth = .unknown,
        .arrayed = false,
        .multisampled = false,
        .access = .unknown,
    } });
}

comptime {
    _ = @SpirvType(.{ .image = .{
        .usage = .{ .sampled = void },
        .format = .unknown,
        .dim = .@"2d",
        .depth = .unknown,
        .arrayed = false,
        .multisampled = false,
        .access = .unknown,
    } });
}

comptime {
    _ = @SpirvType(.{ .image = .{
        .usage = .{ .sampled = u24 },
        .format = .unknown,
        .dim = .@"2d",
        .depth = .unknown,
        .arrayed = false,
        .multisampled = false,
        .access = .unknown,
    } });
}
#}
#update
#check errors {
test.zig:2:21: error: invalid 'sampled' field value 'bool'
test.zig:14:21: error: 'void' type for 'sampled' field is only valid under the 'opencl' OS
test.zig:26:21: error: 'sampled' field value must be a 32-bit int, 64-bit int or 32-bit float under the 'vulkan' OS
#}
