gpu: make RenderBundle an enum with methods
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
068b829384
commit
6fcb70b295
3 changed files with 7 additions and 3 deletions
|
|
@ -1 +0,0 @@
|
|||
ptr: *anyopaque,
|
||||
|
|
@ -23,7 +23,7 @@ pub const Instance = @import("instance.zig").Instance;
|
|||
pub const PipelineLayout = @import("pipeline_layout.zig").PipelineLayout;
|
||||
pub const QuerySet = @import("query_set.zig").QuerySet;
|
||||
pub const Queue = @import("queue.zig").Queue;
|
||||
pub const RenderBundle = @import("RenderBundle.zig");
|
||||
pub const RenderBundle = @import("render_bundle.zig").RenderBundle;
|
||||
pub const RenderBundleEncoder = @import("RenderBundleEncoder.zig");
|
||||
pub const RenderPassEncoder = @import("RenderPassEncoder.zig");
|
||||
pub const RenderPipeline = @import("RenderPipeline.zig");
|
||||
|
|
@ -51,7 +51,7 @@ test {
|
|||
refAllDecls(@import("pipeline_layout.zig"));
|
||||
refAllDecls(@import("query_set.zig"));
|
||||
refAllDecls(@import("queue.zig"));
|
||||
refAllDecls(@import("RenderBundle.zig"));
|
||||
refAllDecls(@import("render_bundle.zig"));
|
||||
refAllDecls(@import("RenderBundleEncoder.zig"));
|
||||
refAllDecls(@import("RenderPassEncoder.zig"));
|
||||
refAllDecls(@import("RenderPipeline.zig"));
|
||||
|
|
|
|||
5
gpu/src/render_bundle.zig
Normal file
5
gpu/src/render_bundle.zig
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
pub const RenderBundle = enum(usize) {
|
||||
_,
|
||||
|
||||
pub const none: RenderBundle = @intToEnum(RenderBundle, 0);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue