mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 13:38:00 +00:00
Rename nxtProcTable and nxtSetProcs to dawn
This commit is contained in:
committed by
Corentin Wallez
parent
b1669e3fa4
commit
be5ca38351
@@ -85,11 +85,11 @@ dawn::Device CreateCppDawnDevice() {
|
||||
binding->SetWindow(window);
|
||||
|
||||
dawnDevice backendDevice;
|
||||
nxtProcTable backendProcs;
|
||||
dawnProcTable backendProcs;
|
||||
binding->GetProcAndDevice(&backendProcs, &backendDevice);
|
||||
|
||||
dawnDevice cDevice = nullptr;
|
||||
nxtProcTable procs;
|
||||
dawnProcTable procs;
|
||||
switch (cmdBufType) {
|
||||
case CmdBufType::None:
|
||||
procs = backendProcs;
|
||||
@@ -105,7 +105,7 @@ dawn::Device CreateCppDawnDevice() {
|
||||
c2sBuf->SetHandler(wireServer);
|
||||
|
||||
dawnDevice clientDevice;
|
||||
nxtProcTable clientProcs;
|
||||
dawnProcTable clientProcs;
|
||||
wireClient = dawn::wire::NewClientDevice(&clientProcs, &clientDevice, c2sBuf);
|
||||
s2cBuf->SetHandler(wireClient);
|
||||
|
||||
@@ -115,7 +115,7 @@ dawn::Device CreateCppDawnDevice() {
|
||||
break;
|
||||
}
|
||||
|
||||
nxtSetProcs(&procs);
|
||||
dawnSetProcs(&procs);
|
||||
procs.deviceSetErrorCallback(cDevice, PrintDeviceError, 0);
|
||||
return dawn::Device::Acquire(cDevice);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user