Callbacks through which asynchronous functions return. More...
Typedefs | |
typedef void(* | WGPUBufferMapCallback) (WGPUMapAsyncStatus status, WGPUStringView message, void *userdata1, void *userdata2) |
typedef void(* | WGPUCompilationInfoCallback) (WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const *compilationInfo, void *userdata1, void *userdata2) |
typedef void(* | WGPUCreateComputePipelineAsyncCallback) (WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2) |
typedef void(* | WGPUCreateRenderPipelineAsyncCallback) (WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2) |
typedef void(* | WGPUDeviceLostCallback) (WGPUDevice const *device, WGPUDeviceLostReason reason, WGPUStringView message, void *userdata1, void *userdata2) |
typedef void(* | WGPUPopErrorScopeCallback) (WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2) |
typedef void(* | WGPUQueueWorkDoneCallback) (WGPUQueueWorkDoneStatus status, void *userdata1, void *userdata2) |
typedef void(* | WGPURequestAdapterCallback) (WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, void *userdata1, void *userdata2) |
typedef void(* | WGPURequestDeviceCallback) (WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, void *userdata1, void *userdata2) |
typedef void(* | WGPUUncapturedErrorCallback) (WGPUDevice const *device, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2) |
Callbacks through which asynchronous functions return.
typedef void(* WGPUBufferMapCallback) (WGPUMapAsyncStatus status, WGPUStringView message, void *userdata1, void *userdata2) |
See also Callback Error.
message | This parameter is Passed without Ownership. |
typedef void(* WGPUCompilationInfoCallback) (WGPUCompilationInfoRequestStatus status, struct WGPUCompilationInfo const *compilationInfo, void *userdata1, void *userdata2) |
See also Callback Error.
compilationInfo | This argument contains multiple Implementation-Allocated Struct Chain roots. Arbitrary chains must be handled gracefully by the application! This parameter is Passed without Ownership. |
typedef void(* WGPUCreateComputePipelineAsyncCallback) (WGPUCreatePipelineAsyncStatus status, WGPUComputePipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2) |
See also Callback Error.
pipeline | This parameter is Passed with Ownership. |
typedef void(* WGPUCreateRenderPipelineAsyncCallback) (WGPUCreatePipelineAsyncStatus status, WGPURenderPipeline pipeline, WGPUStringView message, void *userdata1, void *userdata2) |
See also Callback Error.
pipeline | This parameter is Passed with Ownership. |
typedef void(* WGPUDeviceLostCallback) (WGPUDevice const *device, WGPUDeviceLostReason reason, WGPUStringView message, void *userdata1, void *userdata2) |
See also Callback Error.
device | Reference to the device which was lost. If, and only if, the reason is WGPUDeviceLostReason_FailedCreation, this is a non-null pointer to a null WGPUDevice. This parameter is Passed without Ownership. |
message | This parameter is Passed without Ownership. |
typedef void(* WGPUPopErrorScopeCallback) (WGPUPopErrorScopeStatus status, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2) |
See also Callback Error.
status | See WGPUPopErrorScopeStatus. |
type | The type of the error caught by the scope, or WGPUErrorType_NoError if there was none. If the status is not WGPUPopErrorScopeStatus_Success, this is WGPUErrorType_NoError. |
message | If the status is not WGPUPopErrorScopeStatus_Success or the type is not WGPUErrorType_NoError, this is a non-empty Localizable Human-Readable Message String; otherwise, this is an empty string. This parameter is Passed without Ownership. |
typedef void(* WGPUQueueWorkDoneCallback) (WGPUQueueWorkDoneStatus status, void *userdata1, void *userdata2) |
See also Callback Error.
typedef void(* WGPURequestAdapterCallback) (WGPURequestAdapterStatus status, WGPUAdapter adapter, WGPUStringView message, void *userdata1, void *userdata2) |
See also Callback Error.
adapter | This parameter is Passed with Ownership. |
message | This parameter is Passed without Ownership. |
typedef void(* WGPURequestDeviceCallback) (WGPURequestDeviceStatus status, WGPUDevice device, WGPUStringView message, void *userdata1, void *userdata2) |
See also Callback Error.
device | This parameter is Passed with Ownership. |
message | This parameter is Passed without Ownership. |
typedef void(* WGPUUncapturedErrorCallback) (WGPUDevice const *device, WGPUErrorType type, WGPUStringView message, void *userdata1, void *userdata2) |
See also Callback Error.
device | This parameter is Passed without Ownership. |
message | This parameter is Passed without Ownership. |