gpu: internalize ComputePipeline types
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
85fbe41a86
commit
b5bf0da50d
3 changed files with 15 additions and 16 deletions
|
|
@ -5,6 +5,13 @@ const BindGroupLayout = @import("bind_group_layout.zig").BindGroupLayout;
|
|||
const Impl = @import("interface.zig").Impl;
|
||||
|
||||
pub const ComputePipeline = opaque {
|
||||
pub const Descriptor = extern struct {
|
||||
next_in_chain: ?*const ChainedStruct = null,
|
||||
label: ?[*:0]const u8 = null,
|
||||
layout: ?*PipelineLayout,
|
||||
compute: ProgrammableStageDescriptor,
|
||||
};
|
||||
|
||||
pub inline fn getBindGroupLayout(compute_pipeline: *ComputePipeline, group_index: u32) *BindGroupLayout {
|
||||
return Impl.computePipelineGetBindGroupLayout(compute_pipeline, group_index);
|
||||
}
|
||||
|
|
@ -21,10 +28,3 @@ pub const ComputePipeline = opaque {
|
|||
Impl.computePipelineRelease(compute_pipeline);
|
||||
}
|
||||
};
|
||||
|
||||
pub const ComputePipelineDescriptor = extern struct {
|
||||
next_in_chain: ?*const ChainedStruct = null,
|
||||
label: ?[*:0]const u8 = null,
|
||||
layout: ?*PipelineLayout,
|
||||
compute: ProgrammableStageDescriptor,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue