gpu: add BufferMapCallback

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-24 23:19:59 -07:00 committed by Stephen Gutekanst
parent 8f4c618f00
commit 8514687ca4
2 changed files with 2 additions and 1 deletions

View file

@ -1,4 +1,3 @@
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);
typedef void (*WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, char const * message, void * userdata);

View file

@ -3,6 +3,8 @@ const ChainedStruct = @import("types.zig").ChainedStruct;
pub const Buffer = *opaque {};
pub const BufferMapCallback = fn (status: BufferMapAsyncStatus, userdata: *anyopaque) callconv(.C) void;
pub const BufferBindingType = enum(u32) {
undef = 0x00000000,
uniform = 0x00000001,