TODO deduplicate from rt64_common.h
| 49 | |
| 50 | // TODO deduplicate from rt64_common.h |
| 51 | void CalculateTextureRowWidthPadding(uint32_t rowPitch, uint32_t &rowWidth, uint32_t &rowPadding) { |
| 52 | const int RowMultiple = 256; |
| 53 | rowWidth = rowPitch; |
| 54 | rowPadding = (rowWidth % RowMultiple) ? RowMultiple - (rowWidth % RowMultiple) : 0; |
| 55 | rowWidth += rowPadding; |
| 56 | } |
| 57 | |
| 58 | struct RmlPushConstants { |
| 59 | Rml::Matrix4f transform; |