metal: implement texture swizzling
This commit is contained in:
@@ -29,6 +29,7 @@ namespace Metal {
|
||||
Interval<u32> range;
|
||||
|
||||
PICA::PixelFormatInfo formatInfo;
|
||||
MTL::Texture* base = nullptr;
|
||||
MTL::Texture* texture = nullptr;
|
||||
MTL::SamplerState* sampler = nullptr;
|
||||
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user