mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 18:59:21 +00:00
Add reflection APIs for wgpu::Texture.
This requires adding a custom implementation of DeviceCreateTexture and the Texture object in the wire client. In dawn::native this requires the format enum separately from mFormat which is a `const Format&` so that garbage format values can be reflected correctly for error textures. Bug: dawn:1451 Change-Id: I75b5635f36647f6f04dae54e92154f2b552beb64 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/92661 Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Loko Kung <lokokung@google.com> Commit-Queue: Loko Kung <lokokung@google.com> Commit-Queue: Corentin Wallez <cwallez@chromium.org> Auto-Submit: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
bd30d9e594
commit
736e97c5e0
@@ -1209,7 +1209,7 @@ TextureBase* DeviceBase::APICreateTexture(const TextureDescriptor* descriptor) {
|
||||
Ref<TextureBase> result;
|
||||
if (ConsumedError(CreateTexture(descriptor), &result, "calling %s.CreateTexture(%s).", this,
|
||||
descriptor)) {
|
||||
return TextureBase::MakeError(this);
|
||||
return TextureBase::MakeError(this, descriptor);
|
||||
}
|
||||
return result.Detach();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user