resourceStateCommandEncoder(with:)
Creates a resource state command encoder from a descriptor.
Declaration
func resourceStateCommandEncoder(with resourceStatePassDescriptor: MTLResourceStatePassDescriptor) -> (any MTLResourceStateCommandEncoder)?Parameters
- resourceStatePassDescriptor:
An Mtlresourcestatepassdescriptor instance that configures the Mtlresourcestatecommandencoder the method returns.
Discussion
Use an MTLResourceStateCommandEncoder instance’s methods to create a pass that updates the state of one or more sparse textures.