mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-17 00:47:13 +00:00
Make dawn_wire use the webgpu.h header
BUG=dawn:22 Change-Id: I4963aa27322086e74947a1a6265c921e2c7d3d85 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/12700 Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
15e751e418
commit
1fdcb16b69
@@ -33,12 +33,12 @@ namespace dawn_wire { namespace client {
|
||||
DeviceAllocator().Free(mDevice);
|
||||
}
|
||||
|
||||
ReservedTexture Client::ReserveTexture(DawnDevice cDevice) {
|
||||
ReservedTexture Client::ReserveTexture(WGPUDevice cDevice) {
|
||||
Device* device = reinterpret_cast<Device*>(cDevice);
|
||||
ObjectAllocator<Texture>::ObjectAndSerial* allocation = TextureAllocator().New(device);
|
||||
|
||||
ReservedTexture result;
|
||||
result.texture = reinterpret_cast<DawnTexture>(allocation->object.get());
|
||||
result.texture = reinterpret_cast<WGPUTexture>(allocation->object.get());
|
||||
result.id = allocation->object->id;
|
||||
result.generation = allocation->serial;
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user