Change DebugPixel() to take a DebugShaderInputs struct

DebugShaderInputs struct contains existing the parameters:

sample
primitive

and a new parameter

view

Default constructor for DebugShaderInputs sets the parameters to NoPreference (~0U).
This commit is contained in:
Jake Turner
2024-02-27 13:59:58 +00:00
parent 5516f67227
commit 7934d1d16e
39 changed files with 151 additions and 85 deletions
+4 -2
View File
@@ -767,8 +767,10 @@ void PixelHistoryView::startDebug(EventTag tag)
ShaderDebugTrace *trace = NULL;
m_Ctx.Replay().AsyncInvoke([this, &trace, &done, tag](IReplayController *r) {
trace = r->DebugPixel((uint32_t)m_Pixel.x(), (uint32_t)m_Pixel.y(),
m_Display.subresource.sample, tag.primitive);
DebugPixelInputs inputs;
inputs.sample = m_Display.subresource.sample;
inputs.primitive = tag.primitive;
trace = r->DebugPixel((uint32_t)m_Pixel.x(), (uint32_t)m_Pixel.y(), inputs);
if(trace->debugger == NULL)
{