Disable normals; remove dead code
This commit is contained in:
parent
91c92c9675
commit
18f8c141af
1 changed files with 1 additions and 19 deletions
|
@ -58,7 +58,7 @@ class Renderer: NSObject, MTKViewDelegate {
|
|||
}
|
||||
}
|
||||
|
||||
var drawNormals = true {
|
||||
var drawNormals = false {
|
||||
didSet {
|
||||
print("Normal drawing \(drawNormals ? "enabled" : "disabled")")
|
||||
}
|
||||
|
@ -169,24 +169,6 @@ class Renderer: NSObject, MTKViewDelegate {
|
|||
return try device.makeComputePipelineState(function: computeFunction)
|
||||
}
|
||||
|
||||
class func loadTexture(device: MTLDevice,
|
||||
textureName: String) throws -> MTLTexture {
|
||||
/// Load texture data with optimal parameters for sampling
|
||||
|
||||
let textureLoader = MTKTextureLoader(device: device)
|
||||
|
||||
let textureLoaderOptions = [
|
||||
MTKTextureLoader.Option.textureUsage: NSNumber(value: MTLTextureUsage.shaderRead.rawValue),
|
||||
MTKTextureLoader.Option.textureStorageMode: NSNumber(value: MTLStorageMode.`private`.rawValue)
|
||||
]
|
||||
|
||||
return try textureLoader.newTexture(name: textureName,
|
||||
scaleFactor: 1.0,
|
||||
bundle: nil,
|
||||
options: textureLoaderOptions)
|
||||
|
||||
}
|
||||
|
||||
func scheduleAlgorithmIteration() -> Progress? {
|
||||
var progress: Progress? = nil
|
||||
regenerationSemaphore.wait()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue