mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 02:39:11 +00:00
dawn_native: Make CreateView's descriptor default to nullptr
This matches the defaults of webgpu.h and allows its use from inside dawn_native for the implementations of SwapChain. Bug: dawn:269 Change-Id: Icfe15f1775e78690fe4fb7b871bd0c0365d444e4 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/33783 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Stephen White <senorblanco@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
ce74d8256e
commit
a66263753a
@@ -383,7 +383,7 @@ namespace dawn_native { namespace null {
|
||||
TextureDescriptor textureDesc = GetSwapChainBaseTextureDescriptor(this);
|
||||
mTexture = AcquireRef(
|
||||
new Texture(GetDevice(), &textureDesc, TextureBase::TextureState::OwnedInternal));
|
||||
return mTexture->CreateView(nullptr);
|
||||
return mTexture->CreateView();
|
||||
}
|
||||
|
||||
void SwapChain::DetachFromSurfaceImpl() {
|
||||
|
||||
Reference in New Issue
Block a user