MTLComputePipelineState

Horus-iOS·2022년 7월 7일
0

https://developer.apple.com/documentation/metal/mtlcomputepipelinestate

An object that contains a compiled compute pipeline.

컴파일된 연산 파이프라인을 포함하고 있는 객체입니다.

Declaration

protocol MTLComputePipelineState

Overview

MTLComputePipelineState 객체는 컴파일된 연산 프로그램을 참조하기 위한 가벼운 객체입니다.MTLComputePipelineState는 완전히 스레드 안전하기 때문에 다중MTLComputeCommandEncoder 객체들이 동시에 사용할 수 있습니다.

연산 파이프라인 상태 객체를 생성하는 것은 비용이 크기 때문에 앱이 이 객체들의 생애주기 동안 이 객체들의 초기화하거나 재사용할 때 보통 이와 같은 파이프라인 객체들을 생성해야 할 것입니다. MTLComputePipelineState 객체를 생성할 때 표준 할당 및 초기화 테크닉을 사용하지 않아야 합니다. 대신 MTLDevice 객체에서 메소드 호출을 통해 이 객체들을 생성해야 합니다.

0개의 댓글