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