mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 02:40:22 -10:00
This mostly updates the bindings to the current state. No actual logic backing them yet. *Note*: the IDL does *not* need to be checked for matching the upstream spec precisely at this stage. The upstream is evolving, we just need to update in order to start integrating the implementation. What needs to be checked is - how C++ represents the IDL, esp with regards to derived classes, events, and hierarchies. The trickiest points, arguably, are: - WebGPU -> GPU prefix change - the goop for interfaces that are not final Differential Revision: https://phabricator.services.mozilla.com/D46166
40 lines
1.0 KiB
C++
40 lines
1.0 KiB
C++
/* -*- 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/. */
|
|
|
|
#ifndef GPU_ComputePassEncoder_H_
|
|
#define GPU_ComputePassEncoder_H_
|
|
|
|
#include "mozilla/dom/TypedArray.h"
|
|
#include "ObjectModel.h"
|
|
#include "ProgrammablePassEncoder.h"
|
|
|
|
namespace mozilla {
|
|
namespace webgpu {
|
|
|
|
class Buffer;
|
|
class CommandEncoder;
|
|
class ComputePipeline;
|
|
|
|
class ComputePassEncoder final : public ProgrammablePassEncoder,
|
|
public ChildOf<CommandEncoder> {
|
|
public:
|
|
NS_DECL_ISUPPORTS_INHERITED
|
|
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS_INHERITED(
|
|
ComputePassEncoder, ProgrammablePassEncoder)
|
|
GPU_DECL_JS_WRAP(ComputePassEncoder)
|
|
|
|
ComputePassEncoder() = delete;
|
|
|
|
private:
|
|
virtual ~ComputePassEncoder();
|
|
|
|
public:
|
|
};
|
|
|
|
} // namespace webgpu
|
|
} // namespace mozilla
|
|
|
|
#endif // GPU_ComputePassEncoder_H_
|