1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #include "CompilationMessage.h"
7 #include "CompilationInfo.h"
8 #include "mozilla/dom/WebGPUBinding.h"
10 namespace mozilla::webgpu
{
12 GPU_IMPL_CYCLE_COLLECTION(CompilationMessage
, mParent
)
13 GPU_IMPL_JS_WRAP(CompilationMessage
)
15 CompilationMessage::CompilationMessage(Device
* const aParent
,
16 dom::GPUCompilationMessageType aType
,
17 uint64_t aLineNum
, uint64_t aLinePos
,
18 uint64_t aOffset
, uint64_t aLength
,
26 mMessage(std::move(aMessage
)) {}
28 } // namespace mozilla::webgpu