MTLCreateSystemDefaultDevice()

Horus-iOS·2022년 7월 7일
0

https://developer.apple.com/documentation/metal/1433401-mtlcreatesystemdefaultdevice

Returns the device instance Metal selects as the default.

메탈이 기본값으로 선택한 디바이스 인스턴스를 반환합니다.

Declaration

func MTLCreateSystemDefaultDevice() -> MTLDevice?

Return Value

디바이스 객체를 반환합니다.

Discussion

macOS에서 시스템이 기본값 메탈 디바이스 객체를 제공하려면 코어 그래픽스 프레임워크를 연결해야 합니다. 커맨드 툴과 같은 기본값으로 그래픽을 사용하지 않는 앱을 작성하고 있다면 이를 명시적으로 수행해야 합니다.

0개의 댓글