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:
@ -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};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user