Rename ShaderResource::IsSRV to a more generic IsReadOnly property

This commit is contained in:
baldurk
2017-04-18 14:57:35 +01:00
parent 96f11095da
commit ce4a99b7b8
10 changed files with 80 additions and 133 deletions
+2 -2
View File
@@ -2005,7 +2005,7 @@ void TextureViewer::InitStageResourcePreviews(ShaderStage stage,
for(int b = 0; b < resourceDetails.count; b++)
{
const ShaderResource &bind = resourceDetails[b];
if(bind.bindPoint == idx && bind.IsSRV)
if(bind.bindPoint == idx && bind.IsReadOnly)
{
bindName = bind.name;
otherBind = true;
@@ -2014,7 +2014,7 @@ void TextureViewer::InitStageResourcePreviews(ShaderStage stage,
if(bind.bindPoint == idx)
{
if(bind.IsSampler && !bind.IsSRV)
if(bind.IsSampler && !bind.IsReadOnly)
samplerBind = true;
else
otherBind = true;