dawn/native: Initialize tint
Bug: tint:1853 Change-Id: Id6242163f0670a62ed94ac01dcd575b403145b4e Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/122383 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
parent
f7910f5b95
commit
a5193704f6
|
@ -23,6 +23,7 @@
|
||||||
#include "dawn/native/Instance.h"
|
#include "dawn/native/Instance.h"
|
||||||
#include "dawn/native/Texture.h"
|
#include "dawn/native/Texture.h"
|
||||||
#include "dawn/platform/DawnPlatform.h"
|
#include "dawn/platform/DawnPlatform.h"
|
||||||
|
#include "tint/tint.h"
|
||||||
|
|
||||||
// Contains the entry-points into dawn_native
|
// Contains the entry-points into dawn_native
|
||||||
|
|
||||||
|
@ -187,7 +188,9 @@ AdapterDiscoveryOptionsBase::AdapterDiscoveryOptionsBase(WGPUBackendType type)
|
||||||
// Instance
|
// Instance
|
||||||
|
|
||||||
Instance::Instance(const WGPUInstanceDescriptor* desc)
|
Instance::Instance(const WGPUInstanceDescriptor* desc)
|
||||||
: mImpl(APICreateInstance(reinterpret_cast<const InstanceDescriptor*>(desc))) {}
|
: mImpl(APICreateInstance(reinterpret_cast<const InstanceDescriptor*>(desc))) {
|
||||||
|
tint::Initialize();
|
||||||
|
}
|
||||||
|
|
||||||
Instance::~Instance() {
|
Instance::~Instance() {
|
||||||
if (mImpl != nullptr) {
|
if (mImpl != nullptr) {
|
||||||
|
|
|
@ -91,9 +91,6 @@ struct Coverage {
|
||||||
// types into the global object, and adding the 'create' function on the exported
|
// types into the global object, and adding the 'create' function on the exported
|
||||||
// object.
|
// object.
|
||||||
Napi::Object Initialize(Napi::Env env, Napi::Object exports) {
|
Napi::Object Initialize(Napi::Env env, Napi::Object exports) {
|
||||||
// Initialize Tint
|
|
||||||
tint::Initialize();
|
|
||||||
|
|
||||||
// Set all the Dawn procedure function pointers.
|
// Set all the Dawn procedure function pointers.
|
||||||
dawnProcSetProcs(&dawn::native::GetProcs());
|
dawnProcSetProcs(&dawn::native::GetProcs());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue