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

@@ -167,7 +167,7 @@ void NXTTest::SetUp() {
// deferred expectations.
nxtSetProcs(&procs);
device = nxt::Device::Acquire(cDevice);
queue = device.CreateQueueBuilder().GetResult();
queue = device.CreateQueue();
// The swapchain isn't used by tests but is useful when debugging with graphics debuggers that
// capture at frame boundaries.

View File

@@ -367,15 +367,9 @@ TEST_F(WireTests, ObjectsAsPointerArgument) {
}
// Create queue
nxtQueueBuilder queueBuilder = nxtDeviceCreateQueueBuilder(device);
nxtQueue queue = nxtQueueBuilderGetResult(queueBuilder);
nxtQueueBuilder apiQueueBuilder = api.GetNewQueueBuilder();
EXPECT_CALL(api, DeviceCreateQueueBuilder(apiDevice))
.WillOnce(Return(apiQueueBuilder));
nxtQueue queue = nxtDeviceCreateQueue(device);
nxtQueue apiQueue = api.GetNewQueue();
EXPECT_CALL(api, QueueBuilderGetResult(apiQueueBuilder))
EXPECT_CALL(api, DeviceCreateQueue(apiDevice))
.WillOnce(Return(apiQueue));
// Submit command buffer and check we got a call with both API-side command buffers

View File

@@ -72,7 +72,7 @@ class BufferValidationTest : public ValidationTest {
mockBufferMapReadCallback = new MockBufferMapReadCallback;
mockBufferMapWriteCallback = new MockBufferMapWriteCallback;
queue = device.CreateQueueBuilder().GetResult();
queue = device.CreateQueue();
}
void TearDown() override {

View File

@@ -40,7 +40,7 @@ class PushConstantTest : public ValidationTest {
private:
void SetUp() override {
ValidationTest::SetUp();
queue = device.CreateQueueBuilder().GetResult();
queue = device.CreateQueue();
}
};

View File

@@ -25,7 +25,7 @@ class UsageValidationTest : public ValidationTest {
private:
void SetUp() override {
ValidationTest::SetUp();
queue = device.CreateQueueBuilder().GetResult();
queue = device.CreateQueue();
}
};