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 committed 2024-03-13 07:58:48 +00:00
1 parent 5516f67227
commit 7934d1d16e
39 files changed
+151 -85

No files matched your search

+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)
{