metal: implement texture decoder

This commit is contained in:
Samuliak
2025-03-11 08:11:39 +01:00
parent c59ee99364
commit 3a654b3609
11 changed files with 419 additions and 223 deletions

View File

@@ -141,9 +141,9 @@ void RendererMTL::initGraphicsContext(SDL_Window* window) {
device = MTL::CreateSystemDefaultDevice();
metalLayer->setDevice(device);
#endif
checkForPixelFormatSupport(device);
commandQueue = device->newCommandQueue();
printf("C++ device pointer: %p\n", device);
// Textures
MTL::TextureDescriptor* textureDescriptor = MTL::TextureDescriptor::alloc()->init();