This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Renderer.swift | |
import MetalKit | |
import SwiftUI | |
class Renderer: NSObject, MTKViewDelegate { | |
var device: MTLDevice! | |
var commandQueue: MTLCommandQueue! | |
var pipelineState: MTLRenderPipelineState! | |
var time: Float = 0.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Renderer.swift | |
import MetalKit | |
import SwiftUI | |
class Renderer: NSObject, MTKViewDelegate { | |
var device: MTLDevice! | |
var commandQueue: MTLCommandQueue! | |
var pipelineState: MTLRenderPipelineState! | |
var time: Float = 0.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import MetalKit | |
import SwiftUI | |
class Renderer: NSObject, MTKViewDelegate { | |
var device: MTLDevice! | |
var commandQueue: MTLCommandQueue! | |
var pipelineState: MTLRenderPipelineState! | |
var time: Float = 0.0 | |
init(device: MTLDevice) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Renderer.swift | |
import MetalKit | |
import SwiftUI | |
class Renderer: NSObject, MTKViewDelegate { | |
var device: MTLDevice! | |
var commandQueue: MTLCommandQueue! | |
var pipelineState: MTLRenderPipelineState! | |
init(device: MTLDevice = MTLCreateSystemDefaultDevice()!) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Renderer.swift | |
import MetalKit | |
import SwiftUI | |
class Renderer: NSObject, MTKViewDelegate { | |
var device: MTLDevice! | |
var commandQueue: MTLCommandQueue! | |
var pipelineState: MTLRenderPipelineState! | |
init(device: MTLDevice = MTLCreateSystemDefaultDevice()!) { |
NewerOlder