MTLResourceStateCommandEncoder
An encoder that encodes commands that modify resource configurations.
Declaration
protocol MTLResourceStateCommandEncoder : MTLCommandEncoderMentioned in
Overview
Use a resource state command encoder to manage memory mappings for sparse textures.
Your app does not define classes that implement this protocol. To create an MTLResourceStateCommandEncoder instance, call the makeResourceStateCommandEncoder() method of the MTLCommandBuffer instance into which you want to encode blit commands. Next, call methods on the MTLResourceStateCommandEncoder instance to enqueue state updates. Finally, call endEncoding() to finish the encoding process.
Topics
Updating texture memory assignments
updateTextureMapping(_:mode:region:mipLevel:slice:)updateTextureMappings(_:mode:regions:mipLevels:slices:numRegions:)MTLSparseTextureMappingMode
Updating texture memory assignments indirectly
Performing fence operations
Instance Methods
See Also
Sparse textures
Managing sparse texture memoryCreating sparse heaps and sparse texturesConverting between pixel regions and sparse tile regionsAssigning memory to sparse texturesReading and writing to sparse texturesEstimating how often a texture region is accessedMTLResourceStatePassDescriptorMTLResourceStatePassSampleBufferAttachmentDescriptorMTLResourceStatePassSampleBufferAttachmentDescriptorArrayMTLMapIndirectArguments