From 001939ca8e2c582650d3cd77d0cd0eabffc50ed2 Mon Sep 17 00:00:00 2001 From: skal Date: Tue, 17 Feb 2026 08:57:55 +0100 Subject: 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 --- tools/shadertoy/template.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/shadertoy/template.cc') 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(width_), static_cast(height_)}, + .resolution = {(float)(width_), (float)(height_)}, .aspect_ratio = aspect_ratio, .time = time, .beat = beat, -- cgit v1.2.3