diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-17 08:57:55 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-17 08:57:55 +0100 |
| commit | 001939ca8e2c582650d3cd77d0cd0eabffc50ed2 (patch) | |
| tree | 7363271308b3e53c2495f1973a62ae42ab10cd37 /src/gpu/sequence.cc | |
| parent | 59b7ca9adff07f8d457fba53ba4d67c293229b68 (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 'src/gpu/sequence.cc')
| -rw-r--r-- | src/gpu/sequence.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gpu/sequence.cc b/src/gpu/sequence.cc index d2f99bc..901d560 100644 --- a/src/gpu/sequence.cc +++ b/src/gpu/sequence.cc @@ -185,8 +185,8 @@ void NodeRegistry::create_texture(Node& node) { WGPUTextureDescriptor desc = {}; desc.usage = usage; desc.dimension = WGPUTextureDimension_2D; - desc.size = {static_cast<unsigned int>(node.width), - static_cast<unsigned int>(node.height), 1}; + desc.size = {(unsigned int)(node.width), + (unsigned int)(node.height), 1}; desc.format = format; desc.mipLevelCount = 1; desc.sampleCount = 1; @@ -219,10 +219,10 @@ Sequence::Sequence(const GpuContext& ctx, int width, int height) void Sequence::preprocess(float seq_time, float beat_time, float beat_phase, float audio_intensity) { - params_.resolution = {static_cast<float>(width_), - static_cast<float>(height_)}; + params_.resolution = {(float)(width_), + (float)(height_)}; params_.aspect_ratio = - static_cast<float>(width_) / static_cast<float>(height_); + (float)(width_) / (float)(height_); params_.time = seq_time; params_.beat_time = beat_time; params_.beat_phase = beat_phase; |
