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