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:
parent
e5753d2fb8
commit
527045fe55
|
@ -868,8 +868,9 @@
|
||||||
"present mode": {
|
"present mode": {
|
||||||
"category": "enum",
|
"category": "enum",
|
||||||
"values": [
|
"values": [
|
||||||
{"value": 0, "name": "no v sync"},
|
{"value": 0, "name": "immediate"},
|
||||||
{"value": 1, "name": "v sync"}
|
{"value": 1, "name": "mailbox"},
|
||||||
|
{"value": 2, "name": "fifo"}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"programmable stage descriptor": {
|
"programmable stage descriptor": {
|
||||||
|
|
|
@ -43,7 +43,7 @@ class SwapChainValidationTests : public ValidationTest {
|
||||||
goodDescriptor.height = 1;
|
goodDescriptor.height = 1;
|
||||||
goodDescriptor.usage = wgpu::TextureUsage::OutputAttachment;
|
goodDescriptor.usage = wgpu::TextureUsage::OutputAttachment;
|
||||||
goodDescriptor.format = wgpu::TextureFormat::BGRA8Unorm;
|
goodDescriptor.format = wgpu::TextureFormat::BGRA8Unorm;
|
||||||
goodDescriptor.presentMode = wgpu::PresentMode::VSync;
|
goodDescriptor.presentMode = wgpu::PresentMode::Mailbox;
|
||||||
|
|
||||||
badDescriptor = goodDescriptor;
|
badDescriptor = goodDescriptor;
|
||||||
badDescriptor.width = 0;
|
badDescriptor.width = 0;
|
||||||
|
|
Loading…
Reference in New Issue