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,11 +3,17 @@ const Sampler = @import("sampler.zig").Sampler;
|
|||
const TextureView = @import("texture_view.zig").TextureView;
|
||||
const ChainedStruct = @import("types.zig").ChainedStruct;
|
||||
const BindGroupLayout = @import("bind_group_layout.zig").BindGroupLayout;
|
||||
const ExternalTexture = @import("external_texture.zig").ExternalTexture;
|
||||
const Impl = @import("interface.zig").Impl;
|
||||
|
||||
pub const BindGroup = opaque {
|
||||
pub const Entry = extern struct {
|
||||
next_in_chain: ?*const ChainedStruct = null,
|
||||
pub const NextInChain = extern union {
|
||||
generic: ?*const ChainedStruct,
|
||||
external_texture_binding_entry: *const ExternalTexture.BindingEntry,
|
||||
};
|
||||
|
||||
next_in_chain: NextInChain = .{ .generic = null },
|
||||
binding: u32,
|
||||
buffer: ?*Buffer = null,
|
||||
offset: u64 = 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue