mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-08 21:17:45 +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
@@ -22,6 +22,7 @@
|
||||
#include <dawn/dawn.h>
|
||||
#include <dawn/dawncpp.h>
|
||||
#include <dawn/dawn_wsi.h>
|
||||
#include <dawn_native/DawnNative.h>
|
||||
#include "GLFW/glfw3.h"
|
||||
|
||||
#include <cstring>
|
||||
@@ -84,9 +85,8 @@ dawn::Device CreateCppDawnDevice() {
|
||||
|
||||
binding->SetWindow(window);
|
||||
|
||||
dawnDevice backendDevice;
|
||||
dawnProcTable backendProcs;
|
||||
binding->GetProcAndDevice(&backendProcs, &backendDevice);
|
||||
dawnDevice backendDevice = binding->CreateDevice();
|
||||
dawnProcTable backendProcs = dawn_native::GetProcs();
|
||||
|
||||
dawnDevice cDevice = nullptr;
|
||||
dawnProcTable procs;
|
||||
|
||||
Reference in New Issue
Block a user