summaryrefslogtreecommitdiff
path: root/src/gpu/pipeline_builder.cc
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-03-05 22:55:56 +0100
committerskal <pascal.massimino@gmail.com>2026-03-05 22:55:56 +0100
commit34afbd6ca21d2b960573d787e6eae46fa86b200e (patch)
tree08450aeff4c67fb300428e705910265e6cd59943 /src/gpu/pipeline_builder.cc
parent35c9ebb0a7ce0e726f631a2b04bb26098926cfab (diff)
style: run clang-format to adhere to coding style
Diffstat (limited to 'src/gpu/pipeline_builder.cc')
-rw-r--r--src/gpu/pipeline_builder.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gpu/pipeline_builder.cc b/src/gpu/pipeline_builder.cc
index b3fa5f8..ea4a272 100644
--- a/src/gpu/pipeline_builder.cc
+++ b/src/gpu/pipeline_builder.cc
@@ -11,7 +11,7 @@ RenderPipelineBuilder::RenderPipelineBuilder(WGPUDevice device)
}
RenderPipelineBuilder& RenderPipelineBuilder::shader(const char* wgsl,
- bool compose) {
+ bool compose) {
shader_text_ = compose ? ShaderComposer::Get().Compose({}, wgsl) : wgsl;
if (device_ == nullptr)
return *this;
@@ -26,8 +26,8 @@ RenderPipelineBuilder& RenderPipelineBuilder::shader(const char* wgsl,
return *this;
}
-RenderPipelineBuilder& RenderPipelineBuilder::bind_group_layout(
- WGPUBindGroupLayout layout) {
+RenderPipelineBuilder&
+RenderPipelineBuilder::bind_group_layout(WGPUBindGroupLayout layout) {
layouts_.push_back(layout);
return *this;
}
@@ -48,8 +48,8 @@ RenderPipelineBuilder& RenderPipelineBuilder::blend_alpha() {
return *this;
}
-RenderPipelineBuilder& RenderPipelineBuilder::depth(
- WGPUTextureFormat depth_fmt) {
+RenderPipelineBuilder&
+RenderPipelineBuilder::depth(WGPUTextureFormat depth_fmt) {
has_depth_ = true;
depth_.format = depth_fmt;
depth_.depthWriteEnabled = WGPUOptionalBool_True;