diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-10-11 09:23:32 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-10-11 09:23:32 +0200 |
commit | 3306ffefd1d00ac5cec0783b9a34633d2d1a6ab3 (patch) | |
tree | 2e12dca57068f3b97e9f47edaf1b300ee867627d /servers/rendering/renderer_rd | |
parent | 28f642097a7986867e4fb7d697764efb4db753bf (diff) | |
parent | 24ff2929997302e54d4ed1b2a6787c814b22ee5a (diff) |
Merge pull request #67000 from RandomShaper/split_render_further
Polish rendering driver refactor further
Diffstat (limited to 'servers/rendering/renderer_rd')
-rw-r--r-- | servers/rendering/renderer_rd/shader_rd.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/servers/rendering/renderer_rd/shader_rd.cpp b/servers/rendering/renderer_rd/shader_rd.cpp index 0f2dea6fe9..5e9eadadd9 100644 --- a/servers/rendering/renderer_rd/shader_rd.cpp +++ b/servers/rendering/renderer_rd/shader_rd.cpp @@ -180,6 +180,7 @@ void ShaderRD::_build_variant_code(StringBuilder &builder, uint32_t p_variant, c #if defined(MACOS_ENABLED) || defined(IOS_ENABLED) builder.append("#define MOLTENVK_USED\n"); #endif + builder.append(String("#define RENDER_DRIVER_") + OS::get_singleton()->get_current_rendering_driver_name().to_upper() + "\n"); } break; case StageTemplate::Chunk::TYPE_MATERIAL_UNIFORMS: { builder.append(p_version->uniforms.get_data()); //uniforms (same for vertex and fragment) |