gpu: add RenderPipeline.Descriptor

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-16 21:08:22 -07:00 committed by Stephen Gutekanst
parent 122713a44d
commit 616395c583
3 changed files with 20 additions and 12 deletions

View file

@ -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);