Add Device::CreateQueue() instead of the builder

We are changing all object creation to use descriptors but there is no
creation argument to pass for queue, so instead Device::CreateQueue
takes no argument.
This commit is contained in:
Corentin Wallez
2018-06-14 20:26:27 -04:00
committed by Corentin Wallez
parent 40e72d79ca
commit b703def640
35 changed files with 65 additions and 115 deletions

View File

@@ -26,12 +26,7 @@ nxtTextureFormat swapChainFormat;
void init() {
device = CreateCppNXTDevice().Release();
{
nxtQueueBuilder builder = nxtDeviceCreateQueueBuilder(device);
queue = nxtQueueBuilderGetResult(builder);
nxtQueueBuilderRelease(builder);
}
queue = nxtDeviceCreateQueue(device);
{
nxtSwapChainBuilder builder = nxtDeviceCreateSwapChainBuilder(device);