gpu: fix bufferGetMapState
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
77217ddffc
commit
0db9f5f83d
1 changed files with 1 additions and 1 deletions
|
|
@ -119,7 +119,7 @@ pub const Interface = struct {
|
|||
}
|
||||
|
||||
pub inline fn bufferGetMapState(buffer: *gpu.Buffer) gpu.Buffer.MapState {
|
||||
return procs.bufferGetMapState.?(@as(c.WGPUBuffer, @ptrCast(buffer)));
|
||||
return @enumFromInt(procs.bufferGetMapState.?(@as(c.WGPUBuffer, @ptrCast(buffer))));
|
||||
}
|
||||
|
||||
// TODO: dawn: return value not marked as nullable in dawn.json but in fact is.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue