Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 948 vs 949 for /trunk/Source Code/Rendering/DeferredShadingRenderer.cpp

Diff revisions: vs.
  @@ -232,26 +232,28 @@
232 232
233 233 GenericDrawCommand cmd;
234 234 if (_debugView) {
235 + const RenderStagePass& stagePass = _context.gfx().getRenderStage();
236 +
235 237 pushConstantsCommand._constants.set("texDiffuse0", PushConstantType::UINT, 4);
236 238 GFX::SendPushConstants(bufferInOut, pushConstantsCommand);
237 - if (_renderQuads[1]->onRender(sceneRenderState, _context.gfx().getRenderStage())) {
238 - cmd.sourceBuffer(_renderQuads[1]->getGeometryVB());
239 + cmd.sourceBuffer(_renderQuads[1]->getGeometryVB());
240 + {
239 241 GFX::DrawCommand drawCmd;
240 242 drawCmd._drawCommands.push_back(cmd);
241 243 GFX::AddDrawCommands(bufferInOut, drawCmd);
242 244 }
243 245 pushConstantsCommand._constants.set("texDiffuse0", PushConstantType::UINT, 1);
244 246 GFX::SendPushConstants(bufferInOut, pushConstantsCommand);
245 - if (_renderQuads[2]->onRender(sceneRenderState, _context.gfx().getRenderStage())) {
246 - cmd.sourceBuffer(_renderQuads[2]->getGeometryVB());
247 + cmd.sourceBuffer(_renderQuads[2]->getGeometryVB());
248 + {
247 249 GFX::DrawCommand drawCmd;
248 250 drawCmd._drawCommands.push_back(cmd);
249 251 GFX::AddDrawCommands(bufferInOut, drawCmd);
250 252 }
251 253 pushConstantsCommand._constants.set("texDiffuse0", PushConstantType::UINT, 2);
252 254 GFX::SendPushConstants(bufferInOut, pushConstantsCommand);
253 - if (_renderQuads[3]->onRender(sceneRenderState, _context.gfx().getRenderStage())) {
254 - cmd.sourceBuffer(_renderQuads[3]->getGeometryVB());
255 + cmd.sourceBuffer(_renderQuads[3]->getGeometryVB());
256 + {
255 257 GFX::DrawCommand drawCmd;
256 258 drawCmd._drawCommands.push_back(cmd);
257 259 GFX::AddDrawCommands(bufferInOut, drawCmd);
  @@ -265,14 +267,12 @@
265 267
266 268 pushConstantsCommand._constants.set("lightCount", PushConstantType::INT, (I32)_cachedLightCount);
267 269 GFX::SendPushConstants(bufferInOut, pushConstantsCommand);
268 -
269 - if (_renderQuads[_debugView ? 4 : 0]->onRender(sceneRenderState, _context.gfx().getRenderStage())) {
270 - cmd.sourceBuffer(_renderQuads[_debugView ? 4 : 0]->getGeometryVB());
270 + cmd.sourceBuffer(_renderQuads[_debugView ? 4 : 0]->getGeometryVB());
271 + {
271 272 GFX::DrawCommand drawCmd;
272 273 drawCmd._drawCommands.push_back(cmd);
273 274 GFX::AddDrawCommands(bufferInOut, drawCmd);
274 275 }
275 -
276 276 GUI& gui = _context.gui();
277 277 GUIElement* guiElement = gui.getGUIElement(0, _ID("FinalImage"));
278 278 if (guiElement) {