mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-09 16:13:34 +00:00
NXTTest: Configure the swapchain
Otherwise when trying to use SwapBuffersForCapture a device error is generated.
This commit is contained in:
parent
9a72ea09a9
commit
ab4aa2af3e
@ -142,6 +142,7 @@ void NXTTest::SetUp() {
|
|||||||
swapchain = device.CreateSwapChainBuilder()
|
swapchain = device.CreateSwapChainBuilder()
|
||||||
.SetImplementation(binding->GetSwapChainImplementation())
|
.SetImplementation(binding->GetSwapChainImplementation())
|
||||||
.GetResult();
|
.GetResult();
|
||||||
|
swapchain.Configure(nxt::TextureFormat::R8G8B8A8Unorm, 400, 400);
|
||||||
|
|
||||||
device.SetErrorCallback(DeviceErrorCauseTestFailure, 0);
|
device.SetErrorCallback(DeviceErrorCauseTestFailure, 0);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user