Phase 2 - RHI Layer: - Fix Command struct default constructor for union with non-trivial types - Add missing mutex includes in ResourceCache.cpp - Fix const_cast for getChildReadOnly in SceneCollector Phase 3 - Shaders & Visual Test: - Add ShaderManager for centralized shader loading - Embed pre-compiled shaders (OpenGL, Vulkan, DX11, Metal) - Add test_20_bgfx_rhi: 23 unit tests for RHI components - Add test_21_bgfx_triangle: visual test rendering colored triangle Test results: - RHI unit tests: 23/23 passing - Visual test: ~567 FPS with Vulkan renderer 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
9 lines
230 B
Scala
9 lines
230 B
Scala
// Varying definitions for bgfx shaders
|
|
|
|
vec4 v_color0 : COLOR0 = vec4(1.0, 1.0, 1.0, 1.0);
|
|
vec2 v_texcoord0 : TEXCOORD0 = vec2(0.0, 0.0);
|
|
|
|
vec3 a_position : POSITION;
|
|
vec4 a_color0 : COLOR0;
|
|
vec2 a_texcoord0 : TEXCOORD0;
|