mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-18 21:13:02 +01:00
Metal: Added magnification filter setting.
This commit is contained in:
@@ -471,6 +471,7 @@ namespace bgfx { namespace mtl
|
||||
retain(m_device);
|
||||
m_metalLayer.device = m_device;
|
||||
m_metalLayer.pixelFormat = MTLPixelFormatBGRA8Unorm;
|
||||
m_metalLayer.magnificationFilter = kCAFilterNearest;
|
||||
|
||||
m_cmd.init(m_device);
|
||||
BGFX_FATAL(NULL != m_cmd.m_commandQueue, Fatal::UnableToInitialize, "Unable to create Metal device.");
|
||||
|
||||
Reference in New Issue
Block a user