blob: 266a5b99e877020a54c9447a72882853dfa1ef4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/modules/webgpu/gpu_render_bundle.h"
#include "third_party/blink/renderer/modules/webgpu/gpu_device.h"
namespace blink {
GPURenderBundle::GPURenderBundle(GPUDevice* device,
WGPURenderBundle render_bundle)
: DawnObject<WGPURenderBundle>(device, render_bundle) {}
GPURenderBundle::~GPURenderBundle() {
if (IsDawnControlClientDestroyed()) {
return;
}
GetProcs().renderBundleRelease(GetHandle());
}
} // namespace blink
|