Make binding expose the preferred format
diff --git a/examples/HelloTriangle.cpp b/examples/HelloTriangle.cpp
index f540fc3..18821d3 100644
--- a/examples/HelloTriangle.cpp
+++ b/examples/HelloTriangle.cpp
@@ -83,7 +83,8 @@
queue = device.CreateQueueBuilder().GetResult();
swapchain = GetSwapChain(device);
- swapchain.Configure(nxt::TextureFormat::R8G8B8A8Unorm, nxt::TextureUsageBit::OutputAttachment, 640, 480);
+ swapchain.Configure(GetPreferredSwapChainTextureFormat(),
+ nxt::TextureUsageBit::OutputAttachment, 640, 480);
initBuffers();
initTextures();