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:
dan sinclair 2022-04-07 20:28:55 +00:00 committed by Dawn LUCI CQ
parent f02bf9e76d
commit 9e9db88e32
12 changed files with 22 additions and 23 deletions

View File

@ -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_;

View File

@ -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 {

View File

@ -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_;

View File

@ -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_;

View File

@ -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_;

View File

@ -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_;

View File

@ -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_;

View File

@ -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_;

View File

@ -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_;

View File

@ -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_;

View File

@ -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_;

View File

@ -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;