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…
Reference in New Issue