mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-21 21:05:50 +12:00
metal: implement texture swizzling
This commit is contained in:
parent
2111c94f1e
commit
1a460d73be
4 changed files with 43 additions and 214 deletions
|
@ -12,7 +12,7 @@ namespace PICA {
|
|||
size_t bytesPerTexel;
|
||||
void (*decoder)(OpenGL::uvec2, u32, u32, std::span<const u8>, std::vector<u8>&);
|
||||
bool needsSwizzle{false};
|
||||
// TODO: swizzle
|
||||
MTL::TextureSwizzleChannels swizzle{.red = MTL::TextureSwizzleRed, .green = MTL::TextureSwizzleGreen, .blue = MTL::TextureSwizzleBlue, .alpha = MTL::TextureSwizzleAlpha};
|
||||
};
|
||||
|
||||
extern PixelFormatInfo pixelFormatInfos[14];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue