const test = .{ .x = 0, .y = 1 };
(It would need the type to be specified in the called function definition, or inline when assigning) const Sampler = @SpirvType(.sampler);
^
const Image = @SpirvType(.{ .image = .{
.usage = .{ .sampled = u32 },
.format = .unknown,
^
} });
Everything else about zig is quite readable, but this gets me every time. Maybe I'm being dumb though.
Will it ultimately be manually loading a build into specific hardware each time, or is there a level of automation that can be done here?