summaryrefslogtreecommitdiff
path: root/tools/shadertoy/template.cc
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-17 08:57:55 +0100
committerskal <pascal.massimino@gmail.com>2026-02-17 08:57:55 +0100
commit001939ca8e2c582650d3cd77d0cd0eabffc50ed2 (patch)
tree7363271308b3e53c2495f1973a62ae42ab10cd37 /tools/shadertoy/template.cc
parent59b7ca9adff07f8d457fba53ba4d67c293229b68 (diff)
style: replace C++ casts with C-style casts
Converts all static_cast<>, reinterpret_cast<> to C-style casts per CODING_STYLE.md guidelines. - Modified 12 files across gpu, 3d, util, tests, and tools - All builds passing, 34/34 tests passing - No functional changes, pure style cleanup Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'tools/shadertoy/template.cc')
-rw-r--r--tools/shadertoy/template.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/shadertoy/template.cc b/tools/shadertoy/template.cc
index 56b4ab5..fdc4f70 100644
--- a/tools/shadertoy/template.cc
+++ b/tools/shadertoy/template.cc
@@ -99,7 +99,7 @@ void ShaderToyEffect::init(MainSequence* demo) {
void ShaderToyEffect::render(WGPURenderPassEncoder pass, float time, float beat,
float intensity, float aspect_ratio) {
const UniformsSequenceParams uniforms = {
- .resolution = {static_cast<float>(width_), static_cast<float>(height_)},
+ .resolution = {(float)(width_), (float)(height_)},
.aspect_ratio = aspect_ratio,
.time = time,
.beat = beat,