mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-14 07:36:15 +00:00
dawn_native: Factor getting procs into a single function.
Now the backends only expose the creation of devices. Getting the procs is moved to DawnNative that will over time more backend-agnostic APIs.
This commit is contained in:
committed by
Corentin Wallez
parent
f9f44ae289
commit
dcb71a131c
@@ -15,6 +15,8 @@
|
||||
#include "tests/unittests/validation/ValidationTest.h"
|
||||
|
||||
#include "dawn/dawn.h"
|
||||
#include "dawn_native/DawnNative.h"
|
||||
#include "dawn_native/NullBackend.h"
|
||||
|
||||
namespace dawn_native {
|
||||
namespace null {
|
||||
@@ -23,9 +25,8 @@ namespace dawn_native {
|
||||
}
|
||||
|
||||
ValidationTest::ValidationTest() {
|
||||
dawnProcTable procs;
|
||||
dawnDevice cDevice;
|
||||
dawn_native::null::Init(&procs, &cDevice);
|
||||
dawnProcTable procs = dawn_native::GetProcs();
|
||||
dawnDevice cDevice = dawn_native::null::CreateDevice();
|
||||
|
||||
dawnSetProcs(&procs);
|
||||
device = dawn::Device::Acquire(cDevice);
|
||||
|
||||
Reference in New Issue
Block a user