gpu: implement Dawn deviceInjectError
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
2113767490
commit
41763018f7
1 changed files with 9 additions and 7 deletions
|
|
@ -558,16 +558,18 @@ pub const Interface = gpu.Interface(struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub inline fn deviceHasFeature(device: *gpu.Device, feature: gpu.FeatureName) bool {
|
pub inline fn deviceHasFeature(device: *gpu.Device, feature: gpu.FeatureName) bool {
|
||||||
_ = device;
|
return procs.deviceHasFeature.?(
|
||||||
_ = feature;
|
@ptrCast(c.WGPUDevice, device),
|
||||||
unreachable;
|
@enumToInt(feature),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub inline fn deviceInjectError(device: *gpu.Device, typ: gpu.ErrorType, message: [*:0]const u8) void {
|
pub inline fn deviceInjectError(device: *gpu.Device, typ: gpu.ErrorType, message: [*:0]const u8) void {
|
||||||
_ = device;
|
procs.deviceInjectError.?(
|
||||||
_ = typ;
|
@ptrCast(c.WGPUDevice, device),
|
||||||
_ = message;
|
@enumToInt(typ),
|
||||||
unreachable;
|
message,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub inline fn deviceLoseForTesting(device: *gpu.Device) void {
|
pub inline fn deviceLoseForTesting(device: *gpu.Device) void {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue