gpu: add type-safety for chaining ExternalTexture.BindingEntry

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-08-16 20:32:03 -07:00
parent 34ea41e319
commit 1f0b50ba13
3 changed files with 8 additions and 3 deletions

View file

@ -3,7 +3,6 @@ const TextureView = @import("texture_view.zig").TextureView;
const Impl = @import("interface.zig").Impl;
pub const ExternalTexture = opaque {
/// TODO: Can be chained in gpu.BindGroup.Entry
pub const BindingEntry = extern struct {
chain: ChainedStruct = .{ .next = null, .s_type = .external_texture_binding_entry },
external_texture: *ExternalTexture,