Rename any instance of scene layer or render layer in code with view layer
[blender.git] / source / blender / draw / engines / eevee / eevee_depth_of_field.c
index eaf4767f4a01a3e1b39283413645acf3fedd8ef1..ef7e6412fc400e4be3cdc3d771b575b85758c256 100644 (file)
@@ -74,7 +74,7 @@ static void eevee_create_shader_depth_of_field(void)
                                                  datatoc_effect_dof_frag_glsl, "#define STEP_RESOLVE\n");
 }
 
-int EEVEE_depth_of_field_init(EEVEE_SceneLayerData *UNUSED(sldata), EEVEE_Data *vedata)
+int EEVEE_depth_of_field_init(EEVEE_ViewLayerData *UNUSED(sldata), EEVEE_Data *vedata)
 {
        EEVEE_StorageList *stl = vedata->stl;
        EEVEE_FramebufferList *fbl = vedata->fbl;
@@ -82,8 +82,8 @@ int EEVEE_depth_of_field_init(EEVEE_SceneLayerData *UNUSED(sldata), EEVEE_Data *
        EEVEE_EffectsInfo *effects = stl->effects;
 
        const DRWContextState *draw_ctx = DRW_context_state_get();
-       SceneLayer *scene_layer = draw_ctx->scene_layer;
-       IDProperty *props = BKE_scene_layer_engine_evaluated_get(scene_layer, COLLECTION_MODE_NONE, RE_engine_id_BLENDER_EEVEE);
+       ViewLayer *view_layer = draw_ctx->view_layer;
+       IDProperty *props = BKE_view_layer_engine_evaluated_get(view_layer, COLLECTION_MODE_NONE, RE_engine_id_BLENDER_EEVEE);
 
        if (BKE_collection_engine_property_value_get_bool(props, "dof_enable")) {
                Scene *scene = draw_ctx->scene;
@@ -183,7 +183,7 @@ int EEVEE_depth_of_field_init(EEVEE_SceneLayerData *UNUSED(sldata), EEVEE_Data *
        return 0;
 }
 
-void EEVEE_depth_of_field_cache_init(EEVEE_SceneLayerData *UNUSED(sldata), EEVEE_Data *vedata)
+void EEVEE_depth_of_field_cache_init(EEVEE_ViewLayerData *UNUSED(sldata), EEVEE_Data *vedata)
 {
        EEVEE_PassList *psl = vedata->psl;
        EEVEE_StorageList *stl = vedata->stl;