How to sample a texture with SPIR-V?

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?

1 Like

See this and other examples.
You can replace @import("spirv.zig") with std.spirv.

1 Like