Fix: EEVEE: Wrong logic for shader parallel compilation
The previous logic was not triggering parallel compilation for DoF and Fast GI shaders. This led to slower initialization time for the default shader preview or render.
This commit is contained in:
@@ -176,6 +176,11 @@ class DepthOfField {
|
||||
return fx_radius_ > 0.0f;
|
||||
}
|
||||
|
||||
bool enabled() const
|
||||
{
|
||||
return enabled_;
|
||||
}
|
||||
|
||||
private:
|
||||
void bokeh_lut_pass_sync();
|
||||
void setup_pass_sync();
|
||||
|
||||
@@ -212,7 +212,7 @@ void Instance::init(const int2 &output_res,
|
||||
ShaderGroups shader_request = DEFERRED_LIGHTING_SHADERS | SHADOW_SHADERS | FILM_SHADERS |
|
||||
HIZ_SHADERS | SPHERE_PROBE_SHADERS | VOLUME_PROBE_SHADERS |
|
||||
LIGHT_CULLING_SHADERS;
|
||||
SET_FLAG_FROM_TEST(shader_request, depth_of_field.postfx_enabled(), DEPTH_OF_FIELD_SHADERS);
|
||||
SET_FLAG_FROM_TEST(shader_request, depth_of_field.enabled(), DEPTH_OF_FIELD_SHADERS);
|
||||
SET_FLAG_FROM_TEST(shader_request, needs_planar_probe_passes(), DEFERRED_PLANAR_SHADERS);
|
||||
SET_FLAG_FROM_TEST(shader_request, needs_lightprobe_sphere_passes(), DEFERRED_CAPTURE_SHADERS);
|
||||
SET_FLAG_FROM_TEST(shader_request, motion_blur.postfx_enabled(), MOTION_BLUR_SHADERS);
|
||||
|
||||
@@ -282,7 +282,7 @@ class RayTraceModule {
|
||||
|
||||
bool use_fast_gi() const
|
||||
{
|
||||
return use_raytracing() && ray_tracing_options_.trace_max_roughness >= 1.0f;
|
||||
return use_raytracing() && ray_tracing_options_.trace_max_roughness < 1.0f;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user