gpu: make CommandEncoder an enum with methods
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
9ff6409d73
commit
df0f827851
3 changed files with 7 additions and 3 deletions
|
|
@ -1 +0,0 @@
|
|||
ptr: *anyopaque,
|
||||
5
gpu/src/command_encoder.zig
Normal file
5
gpu/src/command_encoder.zig
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
pub const CommandEncoder = enum(usize) {
|
||||
_,
|
||||
|
||||
pub const none: CommandEncoder = @intToEnum(CommandEncoder, 0);
|
||||
};
|
||||
|
|
@ -14,7 +14,7 @@ pub const BindGroup = @import("bind_group.zig").BindGroup;
|
|||
pub const BindGroupLayout = @import("bind_group_layout.zig").BindGroupLayout;
|
||||
pub const Buffer = @import("buffer.zig").Buffer;
|
||||
pub const CommandBuffer = @import("command_buffer.zig").CommandBuffer;
|
||||
pub const CommandEncoder = @import("CommandEncoder.zig");
|
||||
pub const CommandEncoder = @import("command_encoder.zig").CommandEncoder;
|
||||
pub const ComputePassEncoder = @import("ComputePassEncoder.zig");
|
||||
pub const ComputePipeline = @import("ComputePipeline.zig");
|
||||
pub const Device = @import("Device.zig");
|
||||
|
|
@ -42,7 +42,7 @@ test {
|
|||
refAllDecls(@import("bind_group_layout.zig"));
|
||||
refAllDecls(@import("buffer.zig"));
|
||||
refAllDecls(@import("command_buffer.zig"));
|
||||
refAllDecls(@import("CommandEncoder.zig"));
|
||||
refAllDecls(@import("command_encoder.zig"));
|
||||
refAllDecls(@import("ComputePassEncoder.zig"));
|
||||
refAllDecls(@import("ComputePipeline.zig"));
|
||||
refAllDecls(@import("Device.zig"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue