Opened 18 months ago

Last modified 16 months ago

#6650 new enhancement

Improves DebugRenderer to receive IDeviceCommandContext as an argument

Reported by: Vladislav Belov Owned by:
Priority: Should Have Milestone: Backlog
Component: Core engine Keywords: simple
Cc: Patch:

Description

Currently DebugRenderer calls g_Renderer to get the current IDeviceCommandContext:

https://trac.wildfiregames.com/browser/ps/trunk/source/renderer/DebugRenderer.cpp#L87

// ...
CShaderTechniquePtr debugLineTech =
    g_Renderer.GetShaderManager().LoadEffect(str_debug_line);
Renderer::Backend::IDeviceCommandContext* deviceCommandContext =
    g_Renderer.GetDeviceCommandContext();
SetGraphicsPipelineStateFromTechAndColor(
    deviceCommandContext, debugLineTech, color, depthTestEnabled);
// ...

Instead it should receive it as an argument.

Change History (1)

comment:1 by Freagarach, 16 months ago

Milestone: Alpha 27Backlog

Pushing back.

Note: See TracTickets for help on using tickets.