mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +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
|
|
@ -37,6 +37,7 @@
|
|||
#include "scene/3d/sprite_3d.h"
|
||||
#include "servers/rendering/renderer_rd/renderer_scene_render_rd.h"
|
||||
#include "servers/rendering/renderer_rd/storage_rd/material_storage.h"
|
||||
#include "servers/rendering/rendering_shader_container.h"
|
||||
|
||||
// Ensure that AlphaCut is the same between the two classes so we can share the code to detect transparency.
|
||||
static_assert(ENUM_MEMBERS_EQUAL(SpriteBase3D::ALPHA_CUT_DISABLED, Label3D::ALPHA_CUT_DISABLED));
|
||||
|
|
|
|||
|
|
@ -32,7 +32,8 @@
|
|||
|
||||
#include "editor/export/editor_export_plugin.h"
|
||||
#include "servers/rendering/renderer_rd/shader_rd.h"
|
||||
#include "servers/rendering/rendering_shader_container.h"
|
||||
|
||||
class RenderingShaderContainerFormat;
|
||||
|
||||
class ShaderBakerExportPluginPlatform : public RefCounted {
|
||||
GDCLASS(ShaderBakerExportPluginPlatform, RefCounted);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue