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