summaryrefslogtreecommitdiff
path: root/src/gpu
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-16 16:28:41 +0100
committerskal <pascal.massimino@gmail.com>2026-02-16 16:28:41 +0100
commit5eba3e77c58941ee02257f077a80558dd152a52e (patch)
treef0b1b59f5d0792d468ac5ca8cad68ec93e7730c3 /src/gpu
parentb3924e3d3ec304d76ea8ad21efa7c73163282018 (diff)
fix: load rotating_cube_v2 shader from asset instead of empty string
RotatingCubeEffect was failing with "Unable to find entry point 'vs_main'" because shader was hardcoded to empty string. Load from ASSET_SHADER_ROTATING_CUBE_V2. Fixes DemoEffectsTest (34/34 tests now pass). Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'src/gpu')
-rw-r--r--src/gpu/shaders.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/shaders.cc b/src/gpu/shaders.cc
index d4c13ba..4017726 100644
--- a/src/gpu/shaders.cc
+++ b/src/gpu/shaders.cc
@@ -178,6 +178,7 @@ const char* particle_compute_v2_wgsl =
const char* particle_render_v2_wgsl =
SafeGetAsset(AssetId::ASSET_SHADER_PARTICLE_RENDER);
-const char* rotating_cube_v2_wgsl = "";
+const char* rotating_cube_v2_wgsl =
+ SafeGetAsset(AssetId::ASSET_SHADER_ROTATING_CUBE_V2);
const char* flash_shader_wgsl = SafeGetAsset(AssetId::ASSET_SHADER_FLASH);