metal: nogame and error screens work.

- implement love.graphics.setColor
- implement default textures
- hacky implementation of default uniform data
- use texture swizzles to set up LA8 (text) texture data
- shader reflection work
This commit is contained in:
Alex Szpakowski
2020-06-13 20:29:23 -03:00
parent 6cd4b3e3f7
commit 9d2dca5740
15 changed files with 324 additions and 55 deletions
+8 -1
View File
@@ -36,7 +36,14 @@ class Metal
{
public:
static MTLPixelFormat convertPixelFormat(PixelFormat format, bool &isSRGB);
struct PixelFormatDesc
{
MTLPixelFormat format;
bool swizzled = false;
MTLTextureSwizzleChannels swizzle;
};
static PixelFormatDesc convertPixelFormat(PixelFormat format, bool &isSRGB);
}; // Metal