1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Renderer: Fix missing shader_name; use forward declarations

* Moving over to RenderingShaderContainer, missed setting shader_name
* Use forward declaration reduces compile time when modifying
  rendering_shader_container.h from over 950s to about 10-15
This commit is contained in:
Stuart Carnie
2025-10-02 10:02:18 +10:00
parent abbe792575
commit 3ffcae66a8
5 changed files with 9 additions and 2 deletions

View File

@@ -127,6 +127,8 @@ Error RenderingShaderContainer::reflect_spirv(const String &p_shader_name, Span<
using RDC = RenderingDeviceCommons;
RDC::ShaderReflection reflection;
shader_name = p_shader_name.utf8();
const uint32_t spirv_size = p_spirv.size() + 0;
r_refl.resize(spirv_size);