@@ -130,14 +130,14 @@ void CRender::render_lights(light_Package& LP)
130130 }
131131 };
132132
133- const auto & flush_lights = [] (xr_vector<task_data_t >& lights_queue)
133+ const auto & flush_lights = [this ] (xr_vector<task_data_t >& lights_queue)
134134 {
135135 for (const auto & [L, task, batch_id] : lights_queue)
136136 {
137137 VERIFY (task);
138138 TaskScheduler->Wait (*task);
139139
140- auto & dsgraph = RImplementation. get_context (batch_id);
140+ auto & dsgraph = get_context (batch_id);
141141
142142 const bool bNormal = !dsgraph.mapNormalPasses [0 ][0 ].empty () || !dsgraph.mapMatrixPasses [0 ][0 ].empty ();
143143 const bool bSpecial = !dsgraph.mapNormalPasses [1 ][0 ].empty () || !dsgraph.mapMatrixPasses [1 ][0 ].empty () ||
@@ -146,27 +146,27 @@ void CRender::render_lights(light_Package& LP)
146146 {
147147 PIX_EVENT_CTX (dsgraph.cmd_list , SHADOWED_LIGHT);
148148
149- RImplementation. Stats .s_merged ++;
149+ Stats.s_merged ++;
150150 L_spot_s.push_back (L);
151- RImplementation. Target ->phase_smap_spot (dsgraph.cmd_list , L);
151+ Target->phase_smap_spot (dsgraph.cmd_list , L);
152152 dsgraph.cmd_list .set_xform_world (Fidentity);
153153 dsgraph.cmd_list .set_xform_view (L->X .S .view );
154154 dsgraph.cmd_list .set_xform_project (L->X .S .project );
155155 dsgraph.render_graph (0 );
156156 if (ps_r2_ls_flags.test (R2FLAG_SUN_DETAILS))
157157 {
158- if (check_grass_shadow (L, RImplementation. ViewBase ))
158+ if (check_grass_shadow (L, ViewBase))
159159 {
160- RImplementation. Details ->fade_distance = -1 ; // Use light position to calc "fade"
161- RImplementation. Details ->light_position .set (L->position );
162- RImplementation. Details ->Render (dsgraph.cmd_list );
160+ Details->fade_distance = -1 ; // Use light position to calc "fade"
161+ Details->light_position .set (L->position );
162+ Details->Render (dsgraph.cmd_list );
163163 }
164164 }
165165 L->X .S .transluent = FALSE ;
166166 if (bSpecial)
167167 {
168168 L->X .S .transluent = TRUE ;
169- RImplementation. Target ->phase_smap_spot_tsh (dsgraph.cmd_list , L);
169+ Target->phase_smap_spot_tsh (dsgraph.cmd_list , L);
170170 PIX_EVENT_CTX (dsgraph.cmd_list , SHADOWED_LIGHTS_RENDER_GRAPH);
171171 dsgraph.render_graph (1 ); // normal level, secondary priority
172172 PIX_EVENT_CTX (dsgraph.cmd_list , SHADOWED_LIGHTS_RENDER_SORTED);
@@ -175,11 +175,11 @@ void CRender::render_lights(light_Package& LP)
175175 }
176176 else
177177 {
178- RImplementation. Stats .s_finalclip ++;
178+ Stats.s_finalclip ++;
179179 }
180180
181181 L->svis [batch_id].end (); // NOTE(DX11): occqs are fetched here, this should be done on the imm context only
182- RImplementation. release_context (batch_id);
182+ release_context (batch_id);
183183 }
184184
185185 lights_queue.clear ();
0 commit comments