zeus
zeus

Reputation: 13355

Can we use MTLRenderPipelineState & MTLDepthStencilState in multithread?

Can we use MTLRenderPipelineState & MTLDepthStencilState in multithread ? I mean can in thread A assign MTLRenderPipelineState to a RenderCommandEncoder and at the same time from thread B assign also this MTLRenderPipelineState to another RenderCommandEncoder? same for MTLDepthStencilState

Upvotes: 1

Views: 105

Answers (1)

warrenm
warrenm

Reputation: 31782

Yes. Metal state objects are immutable and safe to use across threads.

Upvotes: 1

Related Questions