Graphics: Switch glyph atlases to R8 instead of A8

A8 can't be supported efficiently on API lacking texture swizzle support (DX, WebGL, WebGPU), so we swizzle in the shader instead
This commit is contained in:
SirLynix
2023-02-22 19:11:41 +01:00
parent b38f9dc79b
commit 5833ce573d
10 changed files with 46 additions and 13 deletions

View File

@@ -26,6 +26,8 @@ namespace Nz
GLenum swizzleG;
GLenum swizzleB;
GLenum swizzleA;
inline bool HasSwizzle() const;
};
inline std::optional<GLTextureFormat> DescribeTextureFormat(PixelFormat pixelFormat);