gpu: convert ComputePipeline from enum(usize) to *opaque
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
ad1122882a
commit
9fd454407a
1 changed files with 6 additions and 11 deletions
|
|
@ -2,16 +2,11 @@ const ChainedStruct = @import("types.zig").ChainedStruct;
|
||||||
const ProgrammableStageDescriptor = @import("types.zig").ProgrammableStageDescriptor;
|
const ProgrammableStageDescriptor = @import("types.zig").ProgrammableStageDescriptor;
|
||||||
const PipelineLayout = @import("pipeline_layout.zig").PipelineLayout;
|
const PipelineLayout = @import("pipeline_layout.zig").PipelineLayout;
|
||||||
|
|
||||||
pub const ComputePipeline = enum(usize) {
|
pub const ComputePipeline = *opaque {};
|
||||||
_,
|
|
||||||
|
|
||||||
// TODO: verify there is a use case for nullable value of this type.
|
pub const ComputePipelineDescriptor = extern struct {
|
||||||
pub const none: ComputePipeline = @intToEnum(ComputePipeline, 0);
|
next_in_chain: *const ChainedStruct,
|
||||||
|
label: ?[*:0]const u8 = null,
|
||||||
pub const Descriptor = extern struct {
|
layout: PipelineLayout = PipelineLayout.none, // nullable
|
||||||
next_in_chain: *const ChainedStruct,
|
compute: ProgrammableStageDescriptor,
|
||||||
label: ?[*:0]const u8 = null,
|
|
||||||
layout: PipelineLayout = PipelineLayout.none, // nullable
|
|
||||||
compute: ProgrammableStageDescriptor,
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue