morton_swizzle: Implement texture formats in UNSWIZZLE_TABLE

* I can now remove that loop that has been messing with my OCD
This commit is contained in:
emufan4568
2022-09-10 23:30:32 +03:00
committed by GPUCode
parent fa870be263
commit 3619bd33b1
7 changed files with 187 additions and 136 deletions

View File

@ -105,11 +105,11 @@ public:
return cptr;
}
std::span<std::byte> GetBytes(std::size_t size) {
auto GetWriteBytes(std::size_t size) {
return std::span{reinterpret_cast<std::byte*>(cptr), size > csize ? csize : size};
}
std::span<const std::byte> GetBytes(std::size_t size) const {
auto GetReadBytes(std::size_t size) const {
return std::span{reinterpret_cast<const std::byte*>(cptr), size > csize ? csize : size};
}