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 // interop::GPUBindGroupLayout interface compliance
std::variant<std::string, interop::UndefinedType>getLabel(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; void setLabel(Napi::Env, std::variant<std::string, interop::UndefinedType> value) override;
private: private:
wgpu::BindGroupLayout layout_; wgpu::BindGroupLayout layout_;

View File

@ -51,8 +51,8 @@ namespace wgpu::binding {
std::optional<interop::GPUSize64> size) override; std::optional<interop::GPUSize64> size) override;
void unmap(Napi::Env) override; void unmap(Napi::Env) override;
void destroy(Napi::Env) override; void destroy(Napi::Env) override;
std::variant<std::string, interop::UndefinedType>getLabel(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; void setLabel(Napi::Env, std::variant<std::string, interop::UndefinedType> value) override;
private: private:
struct Mapping { struct Mapping {

View File

@ -34,8 +34,8 @@ namespace wgpu::binding {
} }
// interop::GPUCommandBuffer interface compliance // interop::GPUCommandBuffer interface compliance
std::variant<std::string, interop::UndefinedType>getLabel(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; void setLabel(Napi::Env, std::variant<std::string, interop::UndefinedType> value) override;
private: private:
wgpu::CommandBuffer cmd_buf_; wgpu::CommandBuffer cmd_buf_;

View File

@ -72,8 +72,8 @@ namespace wgpu::binding {
interop::Interface<interop::GPUCommandBuffer> finish( interop::Interface<interop::GPUCommandBuffer> finish(
Napi::Env env, Napi::Env env,
interop::GPUCommandBufferDescriptor descriptor) override; interop::GPUCommandBufferDescriptor descriptor) override;
std::variant<std::string, interop::UndefinedType>getLabel(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; void setLabel(Napi::Env, std::variant<std::string, interop::UndefinedType> value) override;
private: private:
wgpu::CommandEncoder enc_; wgpu::CommandEncoder enc_;

View File

@ -36,8 +36,8 @@ namespace wgpu::binding {
// interop::GPUComputePipeline interface compliance // interop::GPUComputePipeline interface compliance
interop::Interface<interop::GPUBindGroupLayout> getBindGroupLayout(Napi::Env, interop::Interface<interop::GPUBindGroupLayout> getBindGroupLayout(Napi::Env,
uint32_t index) override; uint32_t index) override;
std::variant<std::string, interop::UndefinedType>getLabel(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; void setLabel(Napi::Env, std::variant<std::string, interop::UndefinedType> value) override;
private: private:
wgpu::ComputePipeline pipeline_; wgpu::ComputePipeline pipeline_;

View File

@ -48,8 +48,8 @@ namespace wgpu::binding {
interop::GPUImageCopyExternalImage source, interop::GPUImageCopyExternalImage source,
interop::GPUImageCopyTextureTagged destination, interop::GPUImageCopyTextureTagged destination,
interop::GPUExtent3D copySize) override; interop::GPUExtent3D copySize) override;
std::variant<std::string, interop::UndefinedType>getLabel(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; void setLabel(Napi::Env, std::variant<std::string, interop::UndefinedType> value) override;
private: private:
wgpu::Queue queue_; wgpu::Queue queue_;

View File

@ -34,8 +34,8 @@ namespace wgpu::binding {
} }
// interop::GPURenderBundle interface compliance // interop::GPURenderBundle interface compliance
std::variant<std::string, interop::UndefinedType>getLabel(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; void setLabel(Napi::Env, std::variant<std::string, interop::UndefinedType> value) override;
private: private:
wgpu::RenderBundle bundle_; wgpu::RenderBundle bundle_;

View File

@ -74,8 +74,8 @@ namespace wgpu::binding {
void drawIndexedIndirect(Napi::Env, void drawIndexedIndirect(Napi::Env,
interop::Interface<interop::GPUBuffer> indirectBuffer, interop::Interface<interop::GPUBuffer> indirectBuffer,
interop::GPUSize64 indirectOffset) override; interop::GPUSize64 indirectOffset) override;
std::variant<std::string, interop::UndefinedType>getLabel(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; void setLabel(Napi::Env, std::variant<std::string, interop::UndefinedType> value) override;
private: private:
wgpu::RenderBundleEncoder enc_; wgpu::RenderBundleEncoder enc_;

View File

@ -36,8 +36,8 @@ namespace wgpu::binding {
// interop::GPURenderPipeline interface compliance // interop::GPURenderPipeline interface compliance
interop::Interface<interop::GPUBindGroupLayout> getBindGroupLayout(Napi::Env, interop::Interface<interop::GPUBindGroupLayout> getBindGroupLayout(Napi::Env,
uint32_t index) override; uint32_t index) override;
std::variant<std::string, interop::UndefinedType>getLabel(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; void setLabel(Napi::Env, std::variant<std::string, interop::UndefinedType> value) override;
private: private:
wgpu::RenderPipeline pipeline_; wgpu::RenderPipeline pipeline_;

View File

@ -37,8 +37,8 @@ namespace wgpu::binding {
// interop::GPUShaderModule interface compliance // interop::GPUShaderModule interface compliance
interop::Promise<interop::Interface<interop::GPUCompilationInfo>> compilationInfo( interop::Promise<interop::Interface<interop::GPUCompilationInfo>> compilationInfo(
Napi::Env) override; Napi::Env) override;
std::variant<std::string, interop::UndefinedType>getLabel(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; void setLabel(Napi::Env, std::variant<std::string, interop::UndefinedType> value) override;
private: private:
wgpu::ShaderModule shader_; wgpu::ShaderModule shader_;

View File

@ -37,8 +37,8 @@ namespace wgpu::binding {
Napi::Env, Napi::Env,
interop::GPUTextureViewDescriptor descriptor) override; interop::GPUTextureViewDescriptor descriptor) override;
void destroy(Napi::Env) override; void destroy(Napi::Env) override;
std::variant<std::string, interop::UndefinedType>getLabel(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; void setLabel(Napi::Env, std::variant<std::string, interop::UndefinedType> value) override;
private: private:
wgpu::Texture texture_; wgpu::Texture texture_;

View File

@ -40,7 +40,6 @@
#include "src/tint/writer/spirv/function.h" #include "src/tint/writer/spirv/function.h"
#include "src/tint/writer/spirv/scalar_constant.h" #include "src/tint/writer/spirv/scalar_constant.h"
// Forward declarations // Forward declarations
namespace tint::sem { namespace tint::sem {
class Call; class Call;