diff options
| author | Chris Forbes <chrisforbes@google.com> | 2018-03-14 09:28:35 -0700 |
|---|---|---|
| committer | Chris Forbes <chrisf@ijw.co.nz> | 2018-03-22 21:40:16 -0700 |
| commit | d6254d322e8d672d12b3fef637268199dfb216f9 (patch) | |
| tree | 86946582b822402f5ec96d707168054942cbfdee | |
| parent | 343e50fb6112f9db1b6d8603653a408a3de4cc9c (diff) | |
| download | usermoji-d6254d322e8d672d12b3fef637268199dfb216f9.tar.xz | |
layers: Consider storage block using new storage class to be a writable descriptor
| -rw-r--r-- | layers/shader_validation.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/layers/shader_validation.cpp b/layers/shader_validation.cpp index fab1e889..dcae5f9e 100644 --- a/layers/shader_validation.cpp +++ b/layers/shader_validation.cpp @@ -651,6 +651,9 @@ static bool is_writable_descriptor_type(shader_module const *module, uint32_t ty if (type.opcode() == spv::OpTypeArray) { type = module->get_def(type.word(2)); } else { + if (type.word(2) == spv::StorageClassStorageBuffer) { + return true; + } type = module->get_def(type.word(3)); } } |
