mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-05 06:03: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()
|
||||
.SetImplementation(binding->GetSwapChainImplementation())
|
||||
.GetResult();
|
||||
swapchain.Configure(nxt::TextureFormat::R8G8B8A8Unorm, 400, 400);
|
||||
|
||||
device.SetErrorCallback(DeviceErrorCauseTestFailure, 0);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user