mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +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:
parent
abbe792575
commit
3ffcae66a8
5 changed files with 9 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue