mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-28 18:31:40 +00:00
Fix case that samplers are now "IsSRV" (renamed to IsReadOnly elsewhere)
This commit is contained in:
@@ -879,7 +879,7 @@ void D3D11PipelineStateViewer::setShaderState(const D3D11Pipe::Shader &stage, QL
|
||||
{
|
||||
for(const ShaderResource &bind : shaderDetails->ReadOnlyResources)
|
||||
{
|
||||
if(bind.IsReadOnly && bind.bindPoint == i)
|
||||
if(!bind.IsSampler && bind.IsReadOnly && bind.bindPoint == i)
|
||||
{
|
||||
shaderInput = &bind;
|
||||
break;
|
||||
|
||||
@@ -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