/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
namespace mozilla { class ErrorResult; namespace dom { class Promise; struct GPUDeviceDescriptor; struct GPUExtensions; struct GPUFeatures; enumclass GPUFeatureName : uint8_t; enumclass WgpuBackend : uint8_t; enumclass WgpuDeviceType : uint8_t; template <typename T> class Sequence;
} // namespace dom
namespace webgpu { class Adapter; class Device; class Instance; class SupportedFeatures; class SupportedLimits; class WebGPUChild; namespace ffi { struct WGPUAdapterInformation;
} // namespace ffi
class AdapterInfo final : public nsWrapperCache, public ChildOf<Adapter> { public:
GPU_DECL_CYCLE_COLLECTION(AdapterInfo)
GPU_DECL_JS_WRAP(AdapterInfo)
class Adapter final : public ObjectBase, public ChildOf<Instance> { public:
GPU_DECL_CYCLE_COLLECTION(Adapter)
GPU_DECL_JS_WRAP(Adapter)
RefPtr<WebGPUChild> mBridge;
private:
~Adapter(); void Cleanup();
const RawId mId; // Cant have them as `const` right now, since we wouldn't be able // to unlink them in CC unlink.
RefPtr<SupportedFeatures> mFeatures;
RefPtr<SupportedLimits> mLimits;
RefPtr<AdapterInfo> mInfo; const std::shared_ptr<ffi::WGPUAdapterInformation> mInfoInner;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.