Minor formatting changes.
This is the result of running clang-format over all of the files. Change-Id: I196f0e628583f9d87d350d11d762ea9e98987a01 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/86080 Commit-Queue: Dan Sinclair <dsinclair@chromium.org> Auto-Submit: Dan Sinclair <dsinclair@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
parent
f02bf9e76d
commit
9e9db88e32
|
@ -34,8 +34,8 @@ namespace wgpu::binding {
|
|||
}
|
||||
|
||||
// interop::GPUBindGroupLayout interface compliance
|
||||
std::variant<std::string, interop::UndefinedType>getLabel(Napi::Env) override;
|
||||
void setLabel(Napi::Env, std::variant<std::string, interop::UndefinedType>value) override;
|
||||
std::variant<std::string, interop::UndefinedType> getLabel(Napi::Env) override;
|
||||
void setLabel(Napi::Env, std::variant<std::string, interop::UndefinedType> value) override;
|
||||
|
||||
private:
|
||||
wgpu::BindGroupLayout layout_;
|
||||
|
|
|
@ -51,8 +51,8 @@ namespace wgpu::binding {
|
|||
std::optional<interop::GPUSize64> size) override;
|
||||
void unmap(Napi::Env) override;
|
||||
void destroy(Napi::Env) override;
|
||||
std::variant<std::string, interop::UndefinedType>getLabel(Napi::Env) override;
|
||||
void setLabel(Napi::Env, std::variant<std::string, interop::UndefinedType>value) override;
|
||||
std::variant<std::string, interop::UndefinedType> getLabel(Napi::Env) override;
|
||||
void setLabel(Napi::Env, std::variant<std::string, interop::UndefinedType> value) override;
|
||||
|
||||
private:
|
||||
struct Mapping {
|
||||
|
|
|
@ -34,8 +34,8 @@ namespace wgpu::binding {
|
|||
}
|
||||
|
||||
// interop::GPUCommandBuffer interface compliance
|
||||
std::variant<std::string, interop::UndefinedType>getLabel(Napi::Env) override;
|
||||
void setLabel(Napi::Env, std::variant<std::string, interop::UndefinedType>value) override;
|
||||
std::variant<std::string, interop::UndefinedType> getLabel(Napi::Env) override;
|
||||
void setLabel(Napi::Env, std::variant<std::string, interop::UndefinedType> value) override;
|
||||
|
||||
private:
|
||||
wgpu::CommandBuffer cmd_buf_;
|
||||
|
|
|
@ -72,8 +72,8 @@ namespace wgpu::binding {
|
|||
interop::Interface<interop::GPUCommandBuffer> finish(
|
||||
Napi::Env env,
|
||||
interop::GPUCommandBufferDescriptor descriptor) override;
|
||||
std::variant<std::string, interop::UndefinedType>getLabel(Napi::Env) override;
|
||||
void setLabel(Napi::Env, std::variant<std::string, interop::UndefinedType>value) override;
|
||||
std::variant<std::string, interop::UndefinedType> getLabel(Napi::Env) override;
|
||||
void setLabel(Napi::Env, std::variant<std::string, interop::UndefinedType> value) override;
|
||||
|
||||
private:
|
||||
wgpu::CommandEncoder enc_;
|
||||
|
|
|
@ -36,8 +36,8 @@ namespace wgpu::binding {
|
|||
// interop::GPUComputePipeline interface compliance
|
||||
interop::Interface<interop::GPUBindGroupLayout> getBindGroupLayout(Napi::Env,
|
||||
uint32_t index) override;
|
||||
std::variant<std::string, interop::UndefinedType>getLabel(Napi::Env) override;
|
||||
void setLabel(Napi::Env, std::variant<std::string, interop::UndefinedType>value) override;
|
||||
std::variant<std::string, interop::UndefinedType> getLabel(Napi::Env) override;
|
||||
void setLabel(Napi::Env, std::variant<std::string, interop::UndefinedType> value) override;
|
||||
|
||||
private:
|
||||
wgpu::ComputePipeline pipeline_;
|
||||
|
|
|
@ -48,8 +48,8 @@ namespace wgpu::binding {
|
|||
interop::GPUImageCopyExternalImage source,
|
||||
interop::GPUImageCopyTextureTagged destination,
|
||||
interop::GPUExtent3D copySize) override;
|
||||
std::variant<std::string, interop::UndefinedType>getLabel(Napi::Env) override;
|
||||
void setLabel(Napi::Env, std::variant<std::string, interop::UndefinedType>value) override;
|
||||
std::variant<std::string, interop::UndefinedType> getLabel(Napi::Env) override;
|
||||
void setLabel(Napi::Env, std::variant<std::string, interop::UndefinedType> value) override;
|
||||
|
||||
private:
|
||||
wgpu::Queue queue_;
|
||||
|
|
|
@ -34,8 +34,8 @@ namespace wgpu::binding {
|
|||
}
|
||||
|
||||
// interop::GPURenderBundle interface compliance
|
||||
std::variant<std::string, interop::UndefinedType>getLabel(Napi::Env) override;
|
||||
void setLabel(Napi::Env, std::variant<std::string, interop::UndefinedType>value) override;
|
||||
std::variant<std::string, interop::UndefinedType> getLabel(Napi::Env) override;
|
||||
void setLabel(Napi::Env, std::variant<std::string, interop::UndefinedType> value) override;
|
||||
|
||||
private:
|
||||
wgpu::RenderBundle bundle_;
|
||||
|
|
|
@ -74,8 +74,8 @@ namespace wgpu::binding {
|
|||
void drawIndexedIndirect(Napi::Env,
|
||||
interop::Interface<interop::GPUBuffer> indirectBuffer,
|
||||
interop::GPUSize64 indirectOffset) override;
|
||||
std::variant<std::string, interop::UndefinedType>getLabel(Napi::Env) override;
|
||||
void setLabel(Napi::Env, std::variant<std::string, interop::UndefinedType>value) override;
|
||||
std::variant<std::string, interop::UndefinedType> getLabel(Napi::Env) override;
|
||||
void setLabel(Napi::Env, std::variant<std::string, interop::UndefinedType> value) override;
|
||||
|
||||
private:
|
||||
wgpu::RenderBundleEncoder enc_;
|
||||
|
|
|
@ -36,8 +36,8 @@ namespace wgpu::binding {
|
|||
// interop::GPURenderPipeline interface compliance
|
||||
interop::Interface<interop::GPUBindGroupLayout> getBindGroupLayout(Napi::Env,
|
||||
uint32_t index) override;
|
||||
std::variant<std::string, interop::UndefinedType>getLabel(Napi::Env) override;
|
||||
void setLabel(Napi::Env, std::variant<std::string, interop::UndefinedType>value) override;
|
||||
std::variant<std::string, interop::UndefinedType> getLabel(Napi::Env) override;
|
||||
void setLabel(Napi::Env, std::variant<std::string, interop::UndefinedType> value) override;
|
||||
|
||||
private:
|
||||
wgpu::RenderPipeline pipeline_;
|
||||
|
|
|
@ -37,8 +37,8 @@ namespace wgpu::binding {
|
|||
// interop::GPUShaderModule interface compliance
|
||||
interop::Promise<interop::Interface<interop::GPUCompilationInfo>> compilationInfo(
|
||||
Napi::Env) override;
|
||||
std::variant<std::string, interop::UndefinedType>getLabel(Napi::Env) override;
|
||||
void setLabel(Napi::Env, std::variant<std::string, interop::UndefinedType>value) override;
|
||||
std::variant<std::string, interop::UndefinedType> getLabel(Napi::Env) override;
|
||||
void setLabel(Napi::Env, std::variant<std::string, interop::UndefinedType> value) override;
|
||||
|
||||
private:
|
||||
wgpu::ShaderModule shader_;
|
||||
|
|
|
@ -37,8 +37,8 @@ namespace wgpu::binding {
|
|||
Napi::Env,
|
||||
interop::GPUTextureViewDescriptor descriptor) override;
|
||||
void destroy(Napi::Env) override;
|
||||
std::variant<std::string, interop::UndefinedType>getLabel(Napi::Env) override;
|
||||
void setLabel(Napi::Env, std::variant<std::string, interop::UndefinedType>value) override;
|
||||
std::variant<std::string, interop::UndefinedType> getLabel(Napi::Env) override;
|
||||
void setLabel(Napi::Env, std::variant<std::string, interop::UndefinedType> value) override;
|
||||
|
||||
private:
|
||||
wgpu::Texture texture_;
|
||||
|
|
|
@ -40,7 +40,6 @@
|
|||
#include "src/tint/writer/spirv/function.h"
|
||||
#include "src/tint/writer/spirv/scalar_constant.h"
|
||||
|
||||
|
||||
// Forward declarations
|
||||
namespace tint::sem {
|
||||
class Call;
|
||||
|
|
Loading…
Reference in New Issue