mirror of
https://github.com/GayPizzaSpecifications/voxelotl-engine.git
synced 2025-08-03 21:21:34 +00:00
split core renderer stuff into metal subfolder
This commit is contained in:
11
Sources/Voxelotl/Renderer/Metal/EnvironmentExtension.swift
Normal file
11
Sources/Voxelotl/Renderer/Metal/EnvironmentExtension.swift
Normal file
@ -0,0 +1,11 @@
|
||||
import Metal
|
||||
|
||||
internal extension MTLCullMode {
|
||||
init(_ face: Environment.Face) {
|
||||
self = switch face {
|
||||
case .none: .none
|
||||
case .front: .front
|
||||
case .back: .back
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user