diff options
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, |
