gpu: make BindGroupLayout an enum with methods
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
138847d425
commit
7563a18ca3
3 changed files with 7 additions and 3 deletions
|
|
@ -1 +0,0 @@
|
|||
ptr: *anyopaque,
|
||||
5
gpu/src/bind_group_layout.zig
Normal file
5
gpu/src/bind_group_layout.zig
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
pub const BindGroupLayout = enum(usize) {
|
||||
_,
|
||||
|
||||
pub const none: BindGroupLayout = @intToEnum(BindGroupLayout, 0);
|
||||
};
|
||||
|
|
@ -11,7 +11,7 @@ pub const whole_size = 0xffffffffffffffff;
|
|||
|
||||
pub const Adapter = @import("adapter.zig").Adapter;
|
||||
pub const BindGroup = @import("bind_group.zig").BindGroup;
|
||||
pub const BindGroupLayout = @import("BindGroupLayout.zig");
|
||||
pub const BindGroupLayout = @import("bind_group_layout.zig").BindGroupLayout;
|
||||
pub const Buffer = @import("buffer.zig").Buffer;
|
||||
pub const CommandBuffer = @import("CommandBuffer.zig");
|
||||
pub const CommandEncoder = @import("CommandEncoder.zig");
|
||||
|
|
@ -39,7 +39,7 @@ pub const AlphaMode = @import("types.zig").AlphaMode;
|
|||
test {
|
||||
refAllDecls(@import("adapter.zig"));
|
||||
refAllDecls(@import("bind_group.zig"));
|
||||
refAllDecls(@import("BindGroupLayout.zig"));
|
||||
refAllDecls(@import("bind_group_layout.zig"));
|
||||
refAllDecls(@import("buffer.zig"));
|
||||
refAllDecls(@import("CommandBuffer.zig"));
|
||||
refAllDecls(@import("CommandEncoder.zig"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue