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-03-13 07:58:48 +00:00
parent 5516f67227
commit 7934d1d16e
39 changed files with 151 additions and 85 deletions
+3 -1
View File
@@ -4099,7 +4099,9 @@ void TextureViewer::on_debugPixelContext_clicked()
ShaderDebugTrace *trace = NULL;
m_Ctx.Replay().AsyncInvoke([this, &trace, &done, x, y](IReplayController *r) {
trace = r->DebugPixel((uint32_t)x, (uint32_t)y, m_TexDisplay.subresource.sample, ~0U);
DebugPixelInputs inputs;
inputs.sample = m_TexDisplay.subresource.sample;
trace = r->DebugPixel((uint32_t)x, (uint32_t)y, inputs);
if(trace->debugger == NULL)
{