You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-29 16:16:38 +00:00
[macOS] Selectively bake specific shader variants for MoltenVK.
This commit is contained in:
@@ -397,8 +397,14 @@ void ShaderBakerExportPlugin::_customize_shader_version(ShaderRD *p_shader, RID
|
||||
|
||||
for (int64_t i = 0; i < variant_count; i++) {
|
||||
int group = p_shader->get_variant_to_group(i);
|
||||
if (!p_shader->is_variant_enabled(i) || !groups_to_compile.has(group)) {
|
||||
continue;
|
||||
if (p_shader->has_variant_bake_for(i)) {
|
||||
if (!p_shader->get_variant_bake_for(i, shader_cache_platform_name + "_" + shader_cache_renderer_name + "_" + shader_container_driver) || !groups_to_compile.has(group)) {
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
if (!p_shader->is_variant_enabled(i) || !groups_to_compile.has(group)) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
WorkItem work_item;
|
||||
|
||||
Reference in New Issue
Block a user