gpu: add type-safety for chaining ExternalTexture.BindingEntry
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
34ea41e319
commit
1f0b50ba13
3 changed files with 8 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue