rewrite shaders

This commit is contained in:
Samuliak 2024-07-02 09:02:03 +02:00
parent e0fcfb44a8
commit d41e77491a
5 changed files with 52 additions and 18 deletions

View file

@ -36,6 +36,13 @@ void RendererMTL::initGraphicsContext(SDL_Window* window) {
device = MTL::CreateSystemDefaultDevice();
metalLayer->setDevice(device);
commandQueue = device->newCommandQueue();
// HACK
MTL::TextureDescriptor* descriptor = MTL::TextureDescriptor::texture2DDescriptor(MTL::PixelFormatRGBA8Unorm, 400, 240, false);
topScreenTexture = device->newTexture(descriptor);
// Pipelines
// TODO
}
void RendererMTL::clearBuffer(u32 startAddress, u32 endAddress, u32 value, u32 control) {