Returns the array stride of the given array type.
| 63 | |
| 64 | // Returns the array stride of the given array type. |
| 65 | uint32_t GetArrayStride(uint32_t array_id, ValidationState_t& vstate) { |
| 66 | for (auto& decoration : vstate.id_decorations(array_id)) { |
| 67 | if (spv::Decoration::ArrayStride == decoration.dec_type()) { |
| 68 | return decoration.params()[0]; |
| 69 | } |
| 70 | } |
| 71 | return 0; |
| 72 | } |
| 73 | |
| 74 | // Returns true if the given structure type has a Block decoration. |
| 75 | bool isBlock(uint32_t struct_id, ValidationState_t& vstate) { |
no test coverage detected