gpu: add type-safety for chaining ExternalTexture.BindingLayout

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-08-16 20:36:12 -07:00
parent 1f0b50ba13
commit 8826cfb7a0
2 changed files with 7 additions and 2 deletions

View file

@ -8,7 +8,6 @@ pub const ExternalTexture = opaque {
external_texture: *ExternalTexture,
};
/// TODO: Can be chained in gpu.BindGroupLayout.Entry
pub const BindingLayout = extern struct {
chain: ChainedStruct = .{ .next = null, .s_type = .external_texture_binding_layout },
};