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 --- src/3d/renderer_pipelines.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/3d/renderer_pipelines.cc') diff --git a/src/3d/renderer_pipelines.cc b/src/3d/renderer_pipelines.cc index fed3983..57e71ae 100644 --- a/src/3d/renderer_pipelines.cc +++ b/src/3d/renderer_pipelines.cc @@ -17,7 +17,7 @@ void Renderer3D::create_pipeline() { WGPURenderPipeline Renderer3D::create_pipeline_impl(bool use_bvh) { // Main SDF shader size_t size; - const char* shader_code = reinterpret_cast( + const char* shader_code = (const char*)( GetAsset(AssetId::ASSET_SHADER_RENDERER_3D, &size)); // Compose the final shader by substituting the scene query implementation @@ -134,7 +134,7 @@ WGPURenderPipeline Renderer3D::create_pipeline_impl(bool use_bvh) { void Renderer3D::create_mesh_pipeline() { size_t size; - const char* shader_code = reinterpret_cast( + const char* shader_code = (const char*)( GetAsset(AssetId::ASSET_SHADER_MESH, &size)); ShaderComposer::CompositionMap composition_map; @@ -261,7 +261,7 @@ void Renderer3D::create_mesh_pipeline() { void Renderer3D::create_skybox_pipeline() { size_t size; - const char* shader_code = reinterpret_cast( + const char* shader_code = (const char*)( GetAsset(AssetId::ASSET_SHADER_SKYBOX, &size)); std::string composed_shader = -- cgit v1.2.3