diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-14 15:14:25 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-14 15:14:25 +0100 |
| commit | 8ce27b7e15f0fc65c8ee78950c7501660b936178 (patch) | |
| tree | 391f32111b9a30a0156709b6c1ed2fae7b435d57 /tools/shadertoy/template.cc | |
| parent | e38be0dbf5816338ff97e2ee2f9adfff2902dc2b (diff) | |
style: Apply clang-format to codebase
Diffstat (limited to 'tools/shadertoy/template.cc')
| -rw-r--r-- | tools/shadertoy/template.cc | 10 |
1 files changed, 5 insertions, 5 deletions
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<float>(width_), static_cast<float>(height_)}, .aspect_ratio = aspect_ratio, |
