mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-22 03:46:53 +02:00
Refactor graphics #1
This commit is contained in:
@@ -224,20 +224,6 @@ constexpr uint32_t GetFormatComponentCount(Prospero::BufferFormat format) {
|
||||
return GetFormatInfo(format).component_count;
|
||||
}
|
||||
|
||||
constexpr uint32_t GetFormatByteSize(Prospero::BufferFormat format) {
|
||||
return GetFormatInfo(format).byte_size;
|
||||
}
|
||||
|
||||
constexpr uint32_t GetFormatComponentBits(Prospero::BufferFormat format, uint32_t component) {
|
||||
const auto info = GetFormatInfo(format);
|
||||
return component < info.component_count ? info.component_bits[component] : 0u;
|
||||
}
|
||||
|
||||
constexpr uint32_t GetFormatComponentBitOffset(Prospero::BufferFormat format, uint32_t component) {
|
||||
const auto info = GetFormatInfo(format);
|
||||
return component < info.component_count ? info.component_bit_offset[component] : 0u;
|
||||
}
|
||||
|
||||
constexpr uint32_t GetFormatComponentByteOffset(Prospero::BufferFormat format, uint32_t component) {
|
||||
const auto info = GetFormatInfo(format);
|
||||
if (component >= info.component_count) {
|
||||
|
||||
Reference in New Issue
Block a user