Make binding expose the preferred format

This commit is contained in:
Corentin Wallez
2017-09-21 12:54:53 -04:00
committed by Corentin Wallez
parent 405dcd636a
commit 2e31e8f0bf
21 changed files with 51 additions and 14 deletions

View File

@@ -132,6 +132,10 @@ namespace utils {
return reinterpret_cast<uint64_t>(&swapchainImpl);
}
nxtTextureFormat GetPreferredSwapChainTextureFormat() override {
return NXT_TEXTURE_FORMAT_R8_G8_B8_A8_UNORM;
}
private:
nxtDevice backendDevice = nullptr;
nxtSwapChainImplementation swapchainImpl = {};