gpu: add RenderPipeline.Descriptor
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
122713a44d
commit
616395c583
3 changed files with 20 additions and 12 deletions
|
|
@ -1,14 +1,3 @@
|
|||
pub const WGPURenderPipelineDescriptor = extern struct {
|
||||
next_in_chain: *const ChainedStruct,
|
||||
label: ?[*:0]const u8 = null,
|
||||
layout: PipelineLayout = PipelineLayout.none, // nullable
|
||||
vertex: VertexState,
|
||||
primitive: PrimitiveState,
|
||||
depth_stencil: ?*const DepthStencilState = null, // nullable
|
||||
multisample: MultisampleState,
|
||||
fragment: ?*const FragmentState = null, // nullable
|
||||
};
|
||||
|
||||
typedef void (*WGPUBufferMapCallback)(WGPUBufferMapAsyncStatus status, void * userdata);
|
||||
typedef void (*WGPUCompilationInfoCallback)(WGPUCompilationInfoRequestStatus status, WGPUCompilationInfo const * compilationInfo, void * userdata);
|
||||
typedef void (*WGPUCreateComputePipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, char const * message, void * userdata);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue