Fix Compiler::get_decoration to correctly return > 0 if DecorationNonWritable or DecorationNonReadable are specified.

This commit is contained in:
Graham Wihlidal 2017-01-05 20:19:59 +01:00
parent fadc1f9e10
commit 862a71b4d3

View File

@ -1018,6 +1018,9 @@ uint32_t Compiler::get_decoration(uint32_t id, Decoration decoration) const
return dec.input_attachment;
case DecorationSpecId:
return dec.spec_id;
case DecorationNonWritable:
case DecorationNonReadable:
return 1;
default:
return 0;
}