Change present modes to match webgpu.h

Bug: dawn:269
Change-Id: I879ce75addde068097ec54d95ec21697d6ac2dc4
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/17400
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Corentin Wallez 2020-03-20 16:47:50 +00:00 committed by Commit Bot service account
parent e5753d2fb8
commit 527045fe55
2 changed files with 4 additions and 3 deletions

View File

@ -868,8 +868,9 @@
"present mode": {
"category": "enum",
"values": [
{"value": 0, "name": "no v sync"},
{"value": 1, "name": "v sync"}
{"value": 0, "name": "immediate"},
{"value": 1, "name": "mailbox"},
{"value": 2, "name": "fifo"}
]
},
"programmable stage descriptor": {

View File

@ -43,7 +43,7 @@ class SwapChainValidationTests : public ValidationTest {
goodDescriptor.height = 1;
goodDescriptor.usage = wgpu::TextureUsage::OutputAttachment;
goodDescriptor.format = wgpu::TextureFormat::BGRA8Unorm;
goodDescriptor.presentMode = wgpu::PresentMode::VSync;
goodDescriptor.presentMode = wgpu::PresentMode::Mailbox;
badDescriptor = goodDescriptor;
badDescriptor.width = 0;