check for pixel format support

This commit is contained in:
Samuliak 2024-08-19 16:40:36 +02:00
parent 69a36246fb
commit ca256eb764
7 changed files with 64 additions and 11 deletions

View file

@ -36,6 +36,7 @@ MetalRenderer::MetalRenderer()
// Feature support
m_hasUnifiedMemory = m_device->hasUnifiedMemory();
m_isAppleGPU = m_device->supportsFamily(MTL::GPUFamilyApple1);
m_pixelFormatSupport = MetalPixelFormatSupport(m_device);
// Resources
MTL::SamplerDescriptor* samplerDescriptor = MTL::SamplerDescriptor::alloc()->init();