mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-08 13:14:56 +00:00
Rename namespace dawn_wire to dawn::wire.
But keep a namespace alias to avoid breaking project that depend on the previous namespace name while they get updated. Bug: dawn:824 Change-Id: I1e99c4d0d2acf7644a225a88d07806d1a64478e6 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/75540 Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
f07477a1ce
commit
5d846ab503
@@ -86,8 +86,8 @@ static utils::BackendBinding* binding = nullptr;
|
||||
|
||||
static GLFWwindow* window = nullptr;
|
||||
|
||||
static dawn_wire::WireServer* wireServer = nullptr;
|
||||
static dawn_wire::WireClient* wireClient = nullptr;
|
||||
static dawn::wire::WireServer* wireServer = nullptr;
|
||||
static dawn::wire::WireClient* wireClient = nullptr;
|
||||
static utils::TerribleCommandBuffer* c2sBuf = nullptr;
|
||||
static utils::TerribleCommandBuffer* s2cBuf = nullptr;
|
||||
|
||||
@@ -149,18 +149,18 @@ wgpu::Device CreateCppDawnDevice() {
|
||||
c2sBuf = new utils::TerribleCommandBuffer();
|
||||
s2cBuf = new utils::TerribleCommandBuffer();
|
||||
|
||||
dawn_wire::WireServerDescriptor serverDesc = {};
|
||||
dawn::wire::WireServerDescriptor serverDesc = {};
|
||||
serverDesc.procs = &backendProcs;
|
||||
serverDesc.serializer = s2cBuf;
|
||||
|
||||
wireServer = new dawn_wire::WireServer(serverDesc);
|
||||
wireServer = new dawn::wire::WireServer(serverDesc);
|
||||
c2sBuf->SetHandler(wireServer);
|
||||
|
||||
dawn_wire::WireClientDescriptor clientDesc = {};
|
||||
dawn::wire::WireClientDescriptor clientDesc = {};
|
||||
clientDesc.serializer = c2sBuf;
|
||||
|
||||
wireClient = new dawn_wire::WireClient(clientDesc);
|
||||
procs = dawn_wire::client::GetProcs();
|
||||
wireClient = new dawn::wire::WireClient(clientDesc);
|
||||
procs = dawn::wire::client::GetProcs();
|
||||
s2cBuf->SetHandler(wireClient);
|
||||
|
||||
auto deviceReservation = wireClient->ReserveDevice();
|
||||
|
||||
Reference in New Issue
Block a user