gpu: update TODOs, give all chain fields default values

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-08-16 19:44:57 -07:00
parent 093be3aa53
commit 26755e0837
6 changed files with 18 additions and 22 deletions

View file

@ -5,13 +5,13 @@ 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,
chain: ChainedStruct = .{ .next = null, .s_type = .external_texture_binding_entry },
external_texture: *ExternalTexture,
};
/// TODO: Can be chained in gpu.BindGroupLayout.Entry
pub const BindingLayout = extern struct {
chain: ChainedStruct,
chain: ChainedStruct = .{ .next = null, .s_type = .external_texture_binding_layout },
};
pub const Descriptor = extern struct {