Metal: Use std::unique_ptr for texture decode

This commit is contained in:
wheremyfoodat 2025-03-16 13:52:32 +02:00
parent fa123cea3f
commit e635b9ec8a
5 changed files with 95 additions and 92 deletions

View file

@ -10,7 +10,7 @@ namespace PICA {
struct MTLPixelFormatInfo {
MTL::PixelFormat pixelFormat;
size_t bytesPerTexel;
void (*decoder)(OpenGL::uvec2, u32, u32, std::span<const u8>, std::vector<u8>&);
void (*decoder)(OpenGL::uvec2, u32, u32, std::span<const u8>, u8*);
bool needsSwizzle = false;
MTL::TextureSwizzleChannels swizzle{