mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 16:37:08 +00:00
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:
committed by
Corentin Wallez
parent
40e72d79ca
commit
b703def640
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -72,7 +72,7 @@ class BufferValidationTest : public ValidationTest {
|
||||
|
||||
mockBufferMapReadCallback = new MockBufferMapReadCallback;
|
||||
mockBufferMapWriteCallback = new MockBufferMapWriteCallback;
|
||||
queue = device.CreateQueueBuilder().GetResult();
|
||||
queue = device.CreateQueue();
|
||||
}
|
||||
|
||||
void TearDown() override {
|
||||
|
||||
@@ -40,7 +40,7 @@ class PushConstantTest : public ValidationTest {
|
||||
private:
|
||||
void SetUp() override {
|
||||
ValidationTest::SetUp();
|
||||
queue = device.CreateQueueBuilder().GetResult();
|
||||
queue = device.CreateQueue();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ class UsageValidationTest : public ValidationTest {
|
||||
private:
|
||||
void SetUp() override {
|
||||
ValidationTest::SetUp();
|
||||
queue = device.CreateQueueBuilder().GetResult();
|
||||
queue = device.CreateQueue();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user