Contents

resourceStateCommandEncoder(with:)

Creates a resource state command encoder from a descriptor.

Declaration

func resourceStateCommandEncoder(with resourceStatePassDescriptor: MTLResourceStatePassDescriptor) -> (any MTLResourceStateCommandEncoder)?

Parameters

Discussion

Use an MTLResourceStateCommandEncoder instance’s methods to create a pass that updates the state of one or more sparse textures.

See Also

Creating resource state encoders