There doesn’t seem to be an exposed instrinsic or std.spirv function analogous to GLSL’s texture(), and the documentation for the OpImageSample instructions in SPIR-V seems to be lacking. How can this be done in Zig?
There doesn’t seem to be an exposed instrinsic or std.spirv function analogous to GLSL’s texture(), and the documentation for the OpImageSample instructions in SPIR-V seems to be lacking. How can this be done in Zig?
See this and other examples.
You can replace @import("spirv.zig") with std.spirv.