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:
Corentin Wallez
2020-11-25 09:39:44 +00:00
committed by Commit Bot service account
parent ce74d8256e
commit a66263753a
5 changed files with 6 additions and 6 deletions

View File

@@ -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() {