mirror of
https://github.com/GayPizzaSpecifications/voxelotl-engine.git
synced 2025-08-03 13:11:33 +00:00
fix(ios): detect availability of storageModeManaged
This commit is contained in:
@ -35,7 +35,12 @@ public class Renderer {
|
|||||||
private var _currentFrame = 0
|
private var _currentFrame = 0
|
||||||
|
|
||||||
internal var currentFrame: Int { self._currentFrame }
|
internal var currentFrame: Int { self._currentFrame }
|
||||||
|
|
||||||
|
#if os(macOS)
|
||||||
internal var isManagedStorage: Bool { self._defaultStorageMode == .storageModeManaged }
|
internal var isManagedStorage: Bool { self._defaultStorageMode == .storageModeManaged }
|
||||||
|
#else
|
||||||
|
internal var isManagedStorage: Bool { false }
|
||||||
|
#endif
|
||||||
|
|
||||||
var frame: Rect<Int> { .init(origin: .zero, size: self.backBufferSize) }
|
var frame: Rect<Int> { .init(origin: .zero, size: self.backBufferSize) }
|
||||||
var aspectRatio: Float { self._aspectRatio }
|
var aspectRatio: Float { self._aspectRatio }
|
||||||
|
Reference in New Issue
Block a user