Remove wgpu::Device::CreateQueue
It was deprecated in favor of wgpu::Device::GetDefaultQueue. Bug: dawn:22 Change-Id: I28d7e616b2beb7de8eed3a3df501eb97a6475928 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/21682 Commit-Queue: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Stephen White <senorblanco@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org>
This commit is contained in:
parent
b761fe1346
commit
437655216e
|
@ -557,10 +557,6 @@
|
||||||
{"name": "descriptor", "type": "pipeline layout descriptor", "annotation": "const*"}
|
{"name": "descriptor", "type": "pipeline layout descriptor", "annotation": "const*"}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "create queue",
|
|
||||||
"returns": "queue"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "create render bundle encoder",
|
"name": "create render bundle encoder",
|
||||||
"returns": "render bundle encoder",
|
"returns": "render bundle encoder",
|
||||||
|
|
|
@ -56,21 +56,6 @@ class DeprecationTests : public DawnTest {
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
// Tests for Device::CreateQueue -> Device::GetDefaultQueue.
|
|
||||||
|
|
||||||
// Test that using CreateQueue produces a deprecation warning
|
|
||||||
TEST_P(DeprecationTests, CreateQueueIsDeprecated) {
|
|
||||||
EXPECT_DEPRECATION_WARNING(device.CreateQueue());
|
|
||||||
}
|
|
||||||
|
|
||||||
// Test that queues created from CreateQueue can be used for things
|
|
||||||
TEST_P(DeprecationTests, CreateQueueReturnsFunctionalQueue) {
|
|
||||||
wgpu::Queue q;
|
|
||||||
EXPECT_DEPRECATION_WARNING(q = device.CreateQueue());
|
|
||||||
|
|
||||||
q.Submit(0, nullptr);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Tests for ShaderModuleDescriptor.code/codeSize -> ShaderModuleSPIRVDescriptor
|
// Tests for ShaderModuleDescriptor.code/codeSize -> ShaderModuleSPIRVDescriptor
|
||||||
|
|
||||||
static const char kEmptyShader[] = R"(#version 450
|
static const char kEmptyShader[] = R"(#version 450
|
||||||
|
|
Loading…
Reference in New Issue