diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-11-24 16:59:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-24 16:59:20 +0100 |
commit | 3e3300637e216b35a93b5ecc8364e383ac898e73 (patch) | |
tree | fc2295ba42b06749cf722aaf34b2d28cf3f03f6b /servers/rendering/renderer_rd/shader_rd.cpp | |
parent | b1bf82d2b4be775e4d10b571d9c21aa25265b32c (diff) | |
parent | 5e0a034524c25e9b06869e323a8a6313223330b8 (diff) |
Merge pull request #55281 from bruvzg/mvk_fog_volumes
Diffstat (limited to 'servers/rendering/renderer_rd/shader_rd.cpp')
-rw-r--r-- | servers/rendering/renderer_rd/shader_rd.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/servers/rendering/renderer_rd/shader_rd.cpp b/servers/rendering/renderer_rd/shader_rd.cpp index b9a8947fa2..2568090918 100644 --- a/servers/rendering/renderer_rd/shader_rd.cpp +++ b/servers/rendering/renderer_rd/shader_rd.cpp @@ -177,6 +177,9 @@ void ShaderRD::_build_variant_code(StringBuilder &builder, uint32_t p_variant, c for (const KeyValue<StringName, CharString> &E : p_version->code_sections) { builder.append(String("#define ") + String(E.key) + "_CODE_USED\n"); } +#if defined(OSX_ENABLED) || defined(IPHONE_ENABLED) + builder.append("#define MOLTENVK_USED\n"); +#endif } break; case StageTemplate::Chunk::TYPE_MATERIAL_UNIFORMS: { builder.append(p_version->uniforms.get_data()); //uniforms (same for vertex and fragment) |