From 8ce27b7e15f0fc65c8ee78950c7501660b936178 Mon Sep 17 00:00:00 2001 From: skal Date: Sat, 14 Feb 2026 15:14:25 +0100 Subject: style: Apply clang-format to codebase --- tools/shadertoy/template.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tools/shadertoy/template.cc') diff --git a/tools/shadertoy/template.cc b/tools/shadertoy/template.cc index 35c9b10..7636c0a 100644 --- a/tools/shadertoy/template.cc +++ b/tools/shadertoy/template.cc @@ -3,8 +3,8 @@ // TODO: Update description, rename class #include "effects/shadertoy_effect.h" -#include "gpu/shader_composer.h" #include "generated/assets.h" +#include "gpu/shader_composer.h" // TODO: Rename class and adjust constructor parameters ShaderToyEffect::ShaderToyEffect(const GpuContext& ctx) : Effect(ctx) { @@ -34,8 +34,8 @@ void ShaderToyEffect::init(MainSequence* demo) { // TODO: Update asset name to match your shader file size_t shader_size; - const char* shader_code = (const char*)GetAsset( - AssetId::ASSET_SHADERTOY_SHADER, &shader_size); + const char* shader_code = + (const char*)GetAsset(AssetId::ASSET_SHADERTOY_SHADER, &shader_size); std::string composed = ShaderComposer::Get().Compose({}, shader_code); @@ -96,8 +96,8 @@ void ShaderToyEffect::init(MainSequence* demo) { bind_group_ = wgpuDeviceCreateBindGroup(ctx_.device, &bg_desc); } -void ShaderToyEffect::render(WGPURenderPassEncoder pass, float time, - float beat, float intensity, float aspect_ratio) { +void ShaderToyEffect::render(WGPURenderPassEncoder pass, float time, float beat, + float intensity, float aspect_ratio) { const CommonPostProcessUniforms uniforms = { .resolution = {static_cast(width_), static_cast(height_)}, .aspect_ratio = aspect_ratio, -- cgit v1.2.3