mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 10:49:14 +00:00
Move most of Ref's functionality in RefBase for reuse.
This will allow using the same logic for other kinds of smartpointers, like NSRef<> Bug: dawn:89 Change-Id: Idbe08208fdb38b236f52635bc913162e60baf0f0 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/32160 Reviewed-by: Stephen White <senorblanco@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
b70a5b02e9
commit
2089adc62a
@@ -483,7 +483,7 @@ namespace dawn_native { namespace vulkan {
|
||||
Ref<Texture> texture =
|
||||
AcquireRef(new Texture(device, descriptor, TextureState::OwnedExternal));
|
||||
texture->InitializeForSwapChain(nativeImage);
|
||||
return std::move(texture);
|
||||
return texture;
|
||||
}
|
||||
|
||||
MaybeError Texture::InitializeAsInternalTexture(VkImageUsageFlags extraUsages) {
|
||||
|
||||
Reference in New Issue
Block a user