| 1413 | } |
| 1414 | |
| 1415 | uint32_t least_common_multiple(uint32_t a, uint32_t b) { |
| 1416 | if (a == 0 || b == 0) { |
| 1417 | return 0; |
| 1418 | } |
| 1419 | |
| 1420 | return (a / greatest_common_denominator(a, b)) * b; |
| 1421 | } |
| 1422 | |
| 1423 | uint32_t RenderingDevice::_texture_alignment(Texture *p_texture) const { |
| 1424 | uint32_t alignment = get_compressed_image_format_block_byte_size(p_texture->format); |
no test coverage detected