gpu: add CreateRenderPipelineAsyncCallback
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
4bf198b35e
commit
84f0a1c4b3
2 changed files with 8 additions and 1 deletions
|
|
@ -1,4 +1,3 @@
|
||||||
typedef void (*WGPUCreateRenderPipelineAsyncCallback)(WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, char const * message, void * userdata);
|
|
||||||
typedef void (*WGPUDeviceLostCallback)(WGPUDeviceLostReason reason, char const * message, void * userdata);
|
typedef void (*WGPUDeviceLostCallback)(WGPUDeviceLostReason reason, char const * message, void * userdata);
|
||||||
typedef void (*WGPUErrorCallback)(WGPUErrorType type, char const * message, void * userdata);
|
typedef void (*WGPUErrorCallback)(WGPUErrorType type, char const * message, void * userdata);
|
||||||
typedef void (*WGPULoggingCallback)(WGPULoggingType type, char const * message, void * userdata);
|
typedef void (*WGPULoggingCallback)(WGPULoggingType type, char const * message, void * userdata);
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,7 @@ const query_set = @import("query_set.zig");
|
||||||
const texture_view = @import("texture_view.zig");
|
const texture_view = @import("texture_view.zig");
|
||||||
const surface = @import("surface.zig");
|
const surface = @import("surface.zig");
|
||||||
const compute_pipeline = @import("compute_pipeline.zig");
|
const compute_pipeline = @import("compute_pipeline.zig");
|
||||||
|
const render_pipeline = @import("render_pipeline.zig");
|
||||||
|
|
||||||
/// Generic function pointer type, used for returning API function pointers. Must be
|
/// Generic function pointer type, used for returning API function pointers. Must be
|
||||||
/// cast to a `fn (...) callconv(.C) T` before use.
|
/// cast to a `fn (...) callconv(.C) T` before use.
|
||||||
|
|
@ -56,6 +57,13 @@ pub const CreateComputePipelineAsyncCallback = fn (
|
||||||
userdata: *anyopaque,
|
userdata: *anyopaque,
|
||||||
) callconv(.C) void;
|
) callconv(.C) void;
|
||||||
|
|
||||||
|
pub const CreateRenderPipelineAsyncCallback = fn (
|
||||||
|
status: types.CreatePipelineAsyncStatus,
|
||||||
|
pipeline: render_pipeline.RenderPipeline,
|
||||||
|
message: [*:0]const u8,
|
||||||
|
userdata: *anyopaque,
|
||||||
|
) callconv(.C) void;
|
||||||
|
|
||||||
pub const ComputePassTimestampWrite = extern struct {
|
pub const ComputePassTimestampWrite = extern struct {
|
||||||
query_set: query_set.QuerySet,
|
query_set: query_set.QuerySet,
|
||||||
query_index: u32,
|
query_index: u32,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue