Subpass inputs are considered read-only

This commit is contained in:
baldurk
2020-04-30 18:15:29 +01:00
parent e2fce8cad1
commit 4695259078
@@ -962,7 +962,7 @@ void Reflector::MakeReflection(const GraphicsAPI sourceAPI, const ShaderStage st
res.resType = TextureType::Texture2D;
res.isTexture = res.resType != TextureType::Buffer;
res.isReadOnly = imageType.sampled != 2;
res.isReadOnly = imageType.sampled != 2 || imageType.dim == rdcspv::Dim::SubpassData;
res.variableType.descriptor.type = imageType.retType.Type();