mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-14 18:58:29 +12:00
do surface copy properly
This commit is contained in:
parent
1b44269d70
commit
be76dadb90
4 changed files with 13 additions and 9 deletions
|
@ -10,6 +10,7 @@ MetalLayerHandle::MetalLayerHandle(MTL::Device* device, const Vector2i& size)
|
|||
m_layer = (CA::MetalLayer*)CreateMetalLayer(windowInfo.handle, m_layerScaleX, m_layerScaleY);
|
||||
m_layer->setDevice(device);
|
||||
m_layer->setDrawableSize(CGSize{(float)size.x * m_layerScaleX, (float)size.y * m_layerScaleY});
|
||||
m_layer->setFramebufferOnly(true);
|
||||
}
|
||||
|
||||
MetalLayerHandle::~MetalLayerHandle()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue