mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-26 00:16:45 +00:00
Fix case that samplers are now "IsSRV" (renamed to IsReadOnly elsewhere)
This commit is contained in:
@@ -339,7 +339,7 @@ namespace renderdocui.Windows.PipelineState
|
||||
{
|
||||
foreach (var bind in shaderDetails.ReadOnlyResources)
|
||||
{
|
||||
if (bind.IsSRV && bind.bindPoint == i)
|
||||
if (!bind.IsSampler && bind.IsSRV && bind.bindPoint == i)
|
||||
{
|
||||
shaderInput = bind;
|
||||
break;
|
||||
@@ -2072,7 +2072,7 @@ namespace renderdocui.Windows.PipelineState
|
||||
ShaderResource[] resources = uav ? deets.ReadWriteResources : deets.ReadOnlyResources;
|
||||
foreach (var r in resources)
|
||||
{
|
||||
if (r.IsTexture)
|
||||
if (r.IsTexture || r.IsSampler)
|
||||
continue;
|
||||
|
||||
if (r.bindPoint == bind)
|
||||
|
||||
Reference in New Issue
Block a user