Trait objc2_metal::MTLBlitCommandEncoder

source ·
pub unsafe trait MTLBlitCommandEncoder: MTLCommandEncoder + IsRetainable {
Show 25 methods // Provided methods fn synchronizeResource(&self, resource: &ProtocolObject<dyn MTLResource>) where Self: Sized + Message { ... } unsafe fn synchronizeTexture_slice_level( &self, texture: &ProtocolObject<dyn MTLTexture>, slice: NSUInteger, level: NSUInteger ) where Self: Sized + Message { ... } unsafe fn copyFromTexture_sourceSlice_sourceLevel_sourceOrigin_sourceSize_toTexture_destinationSlice_destinationLevel_destinationOrigin( &self, source_texture: &ProtocolObject<dyn MTLTexture>, source_slice: NSUInteger, source_level: NSUInteger, source_origin: MTLOrigin, source_size: MTLSize, destination_texture: &ProtocolObject<dyn MTLTexture>, destination_slice: NSUInteger, destination_level: NSUInteger, destination_origin: MTLOrigin ) where Self: Sized + Message { ... } unsafe fn copyFromBuffer_sourceOffset_sourceBytesPerRow_sourceBytesPerImage_sourceSize_toTexture_destinationSlice_destinationLevel_destinationOrigin( &self, source_buffer: &ProtocolObject<dyn MTLBuffer>, source_offset: NSUInteger, source_bytes_per_row: NSUInteger, source_bytes_per_image: NSUInteger, source_size: MTLSize, destination_texture: &ProtocolObject<dyn MTLTexture>, destination_slice: NSUInteger, destination_level: NSUInteger, destination_origin: MTLOrigin ) where Self: Sized + Message { ... } unsafe fn copyFromBuffer_sourceOffset_sourceBytesPerRow_sourceBytesPerImage_sourceSize_toTexture_destinationSlice_destinationLevel_destinationOrigin_options( &self, source_buffer: &ProtocolObject<dyn MTLBuffer>, source_offset: NSUInteger, source_bytes_per_row: NSUInteger, source_bytes_per_image: NSUInteger, source_size: MTLSize, destination_texture: &ProtocolObject<dyn MTLTexture>, destination_slice: NSUInteger, destination_level: NSUInteger, destination_origin: MTLOrigin, options: MTLBlitOption ) where Self: Sized + Message { ... } unsafe fn copyFromTexture_sourceSlice_sourceLevel_sourceOrigin_sourceSize_toBuffer_destinationOffset_destinationBytesPerRow_destinationBytesPerImage( &self, source_texture: &ProtocolObject<dyn MTLTexture>, source_slice: NSUInteger, source_level: NSUInteger, source_origin: MTLOrigin, source_size: MTLSize, destination_buffer: &ProtocolObject<dyn MTLBuffer>, destination_offset: NSUInteger, destination_bytes_per_row: NSUInteger, destination_bytes_per_image: NSUInteger ) where Self: Sized + Message { ... } unsafe fn copyFromTexture_sourceSlice_sourceLevel_sourceOrigin_sourceSize_toBuffer_destinationOffset_destinationBytesPerRow_destinationBytesPerImage_options( &self, source_texture: &ProtocolObject<dyn MTLTexture>, source_slice: NSUInteger, source_level: NSUInteger, source_origin: MTLOrigin, source_size: MTLSize, destination_buffer: &ProtocolObject<dyn MTLBuffer>, destination_offset: NSUInteger, destination_bytes_per_row: NSUInteger, destination_bytes_per_image: NSUInteger, options: MTLBlitOption ) where Self: Sized + Message { ... } fn generateMipmapsForTexture( &self, texture: &ProtocolObject<dyn MTLTexture> ) where Self: Sized + Message { ... } fn fillBuffer_range_value( &self, buffer: &ProtocolObject<dyn MTLBuffer>, range: NSRange, value: u8 ) where Self: Sized + Message { ... } unsafe fn copyFromTexture_sourceSlice_sourceLevel_toTexture_destinationSlice_destinationLevel_sliceCount_levelCount( &self, source_texture: &ProtocolObject<dyn MTLTexture>, source_slice: NSUInteger, source_level: NSUInteger, destination_texture: &ProtocolObject<dyn MTLTexture>, destination_slice: NSUInteger, destination_level: NSUInteger, slice_count: NSUInteger, level_count: NSUInteger ) where Self: Sized + Message { ... } unsafe fn copyFromTexture_toTexture( &self, source_texture: &ProtocolObject<dyn MTLTexture>, destination_texture: &ProtocolObject<dyn MTLTexture> ) where Self: Sized + Message { ... } unsafe fn copyFromBuffer_sourceOffset_toBuffer_destinationOffset_size( &self, source_buffer: &ProtocolObject<dyn MTLBuffer>, source_offset: NSUInteger, destination_buffer: &ProtocolObject<dyn MTLBuffer>, destination_offset: NSUInteger, size: NSUInteger ) where Self: Sized + Message { ... } fn updateFence(&self, fence: &ProtocolObject<dyn MTLFence>) where Self: Sized + Message { ... } fn waitForFence(&self, fence: &ProtocolObject<dyn MTLFence>) where Self: Sized + Message { ... } unsafe fn getTextureAccessCounters_region_mipLevel_slice_resetCounters_countersBuffer_countersBufferOffset( &self, texture: &ProtocolObject<dyn MTLTexture>, region: MTLRegion, mip_level: NSUInteger, slice: NSUInteger, reset_counters: bool, counters_buffer: &ProtocolObject<dyn MTLBuffer>, counters_buffer_offset: NSUInteger ) where Self: Sized + Message { ... } unsafe fn resetTextureAccessCounters_region_mipLevel_slice( &self, texture: &ProtocolObject<dyn MTLTexture>, region: MTLRegion, mip_level: NSUInteger, slice: NSUInteger ) where Self: Sized + Message { ... } fn optimizeContentsForGPUAccess( &self, texture: &ProtocolObject<dyn MTLTexture> ) where Self: Sized + Message { ... } unsafe fn optimizeContentsForGPUAccess_slice_level( &self, texture: &ProtocolObject<dyn MTLTexture>, slice: NSUInteger, level: NSUInteger ) where Self: Sized + Message { ... } unsafe fn optimizeContentsForCPUAccess( &self, texture: &ProtocolObject<dyn MTLTexture> ) where Self: Sized + Message { ... } unsafe fn optimizeContentsForCPUAccess_slice_level( &self, texture: &ProtocolObject<dyn MTLTexture>, slice: NSUInteger, level: NSUInteger ) where Self: Sized + Message { ... } unsafe fn resetCommandsInBuffer_withRange( &self, buffer: &ProtocolObject<dyn MTLIndirectCommandBuffer>, range: NSRange ) where Self: Sized + Message { ... } unsafe fn copyIndirectCommandBuffer_sourceRange_destination_destinationIndex( &self, source: &ProtocolObject<dyn MTLIndirectCommandBuffer>, source_range: NSRange, destination: &ProtocolObject<dyn MTLIndirectCommandBuffer>, destination_index: NSUInteger ) where Self: Sized + Message { ... } unsafe fn optimizeIndirectCommandBuffer_withRange( &self, indirect_command_buffer: &ProtocolObject<dyn MTLIndirectCommandBuffer>, range: NSRange ) where Self: Sized + Message { ... } unsafe fn sampleCountersInBuffer_atSampleIndex_withBarrier( &self, sample_buffer: &ProtocolObject<dyn MTLCounterSampleBuffer>, sample_index: NSUInteger, barrier: bool ) where Self: Sized + Message { ... } unsafe fn resolveCounters_inRange_destinationBuffer_destinationOffset( &self, sample_buffer: &ProtocolObject<dyn MTLCounterSampleBuffer>, range: NSRange, destination_buffer: &ProtocolObject<dyn MTLBuffer>, destination_offset: NSUInteger ) where Self: Sized + Message { ... }
}
Available on crate features MTLBlitCommandEncoder and MTLCommandEncoder only.

Provided Methods§

source

fn synchronizeResource(&self, resource: &ProtocolObject<dyn MTLResource>)
where Self: Sized + Message,

Available on crate feature MTLResource only.
source

unsafe fn synchronizeTexture_slice_level( &self, texture: &ProtocolObject<dyn MTLTexture>, slice: NSUInteger, level: NSUInteger )
where Self: Sized + Message,

Available on crate features MTLResource and MTLTexture only.
source

unsafe fn copyFromTexture_sourceSlice_sourceLevel_sourceOrigin_sourceSize_toTexture_destinationSlice_destinationLevel_destinationOrigin( &self, source_texture: &ProtocolObject<dyn MTLTexture>, source_slice: NSUInteger, source_level: NSUInteger, source_origin: MTLOrigin, source_size: MTLSize, destination_texture: &ProtocolObject<dyn MTLTexture>, destination_slice: NSUInteger, destination_level: NSUInteger, destination_origin: MTLOrigin )
where Self: Sized + Message,

Available on crate features MTLResource and MTLTexture and MTLTypes only.
source

unsafe fn copyFromBuffer_sourceOffset_sourceBytesPerRow_sourceBytesPerImage_sourceSize_toTexture_destinationSlice_destinationLevel_destinationOrigin( &self, source_buffer: &ProtocolObject<dyn MTLBuffer>, source_offset: NSUInteger, source_bytes_per_row: NSUInteger, source_bytes_per_image: NSUInteger, source_size: MTLSize, destination_texture: &ProtocolObject<dyn MTLTexture>, destination_slice: NSUInteger, destination_level: NSUInteger, destination_origin: MTLOrigin )
where Self: Sized + Message,

Available on crate features MTLBuffer and MTLResource and MTLTexture and MTLTypes only.
source

unsafe fn copyFromBuffer_sourceOffset_sourceBytesPerRow_sourceBytesPerImage_sourceSize_toTexture_destinationSlice_destinationLevel_destinationOrigin_options( &self, source_buffer: &ProtocolObject<dyn MTLBuffer>, source_offset: NSUInteger, source_bytes_per_row: NSUInteger, source_bytes_per_image: NSUInteger, source_size: MTLSize, destination_texture: &ProtocolObject<dyn MTLTexture>, destination_slice: NSUInteger, destination_level: NSUInteger, destination_origin: MTLOrigin, options: MTLBlitOption )
where Self: Sized + Message,

Available on crate features MTLBuffer and MTLResource and MTLTexture and MTLTypes only.
source

unsafe fn copyFromTexture_sourceSlice_sourceLevel_sourceOrigin_sourceSize_toBuffer_destinationOffset_destinationBytesPerRow_destinationBytesPerImage( &self, source_texture: &ProtocolObject<dyn MTLTexture>, source_slice: NSUInteger, source_level: NSUInteger, source_origin: MTLOrigin, source_size: MTLSize, destination_buffer: &ProtocolObject<dyn MTLBuffer>, destination_offset: NSUInteger, destination_bytes_per_row: NSUInteger, destination_bytes_per_image: NSUInteger )
where Self: Sized + Message,

Available on crate features MTLBuffer and MTLResource and MTLTexture and MTLTypes only.
source

unsafe fn copyFromTexture_sourceSlice_sourceLevel_sourceOrigin_sourceSize_toBuffer_destinationOffset_destinationBytesPerRow_destinationBytesPerImage_options( &self, source_texture: &ProtocolObject<dyn MTLTexture>, source_slice: NSUInteger, source_level: NSUInteger, source_origin: MTLOrigin, source_size: MTLSize, destination_buffer: &ProtocolObject<dyn MTLBuffer>, destination_offset: NSUInteger, destination_bytes_per_row: NSUInteger, destination_bytes_per_image: NSUInteger, options: MTLBlitOption )
where Self: Sized + Message,

Available on crate features MTLBuffer and MTLResource and MTLTexture and MTLTypes only.
source

fn generateMipmapsForTexture(&self, texture: &ProtocolObject<dyn MTLTexture>)
where Self: Sized + Message,

Available on crate features MTLResource and MTLTexture only.
source

fn fillBuffer_range_value( &self, buffer: &ProtocolObject<dyn MTLBuffer>, range: NSRange, value: u8 )
where Self: Sized + Message,

Available on crate features MTLBuffer and MTLResource only.
source

unsafe fn copyFromTexture_sourceSlice_sourceLevel_toTexture_destinationSlice_destinationLevel_sliceCount_levelCount( &self, source_texture: &ProtocolObject<dyn MTLTexture>, source_slice: NSUInteger, source_level: NSUInteger, destination_texture: &ProtocolObject<dyn MTLTexture>, destination_slice: NSUInteger, destination_level: NSUInteger, slice_count: NSUInteger, level_count: NSUInteger )
where Self: Sized + Message,

Available on crate features MTLResource and MTLTexture only.
source

unsafe fn copyFromTexture_toTexture( &self, source_texture: &ProtocolObject<dyn MTLTexture>, destination_texture: &ProtocolObject<dyn MTLTexture> )
where Self: Sized + Message,

Available on crate features MTLResource and MTLTexture only.
source

unsafe fn copyFromBuffer_sourceOffset_toBuffer_destinationOffset_size( &self, source_buffer: &ProtocolObject<dyn MTLBuffer>, source_offset: NSUInteger, destination_buffer: &ProtocolObject<dyn MTLBuffer>, destination_offset: NSUInteger, size: NSUInteger )
where Self: Sized + Message,

Available on crate features MTLBuffer and MTLResource only.
source

fn updateFence(&self, fence: &ProtocolObject<dyn MTLFence>)
where Self: Sized + Message,

Available on crate feature MTLFence only.
source

fn waitForFence(&self, fence: &ProtocolObject<dyn MTLFence>)
where Self: Sized + Message,

Available on crate feature MTLFence only.
source

unsafe fn getTextureAccessCounters_region_mipLevel_slice_resetCounters_countersBuffer_countersBufferOffset( &self, texture: &ProtocolObject<dyn MTLTexture>, region: MTLRegion, mip_level: NSUInteger, slice: NSUInteger, reset_counters: bool, counters_buffer: &ProtocolObject<dyn MTLBuffer>, counters_buffer_offset: NSUInteger )
where Self: Sized + Message,

Available on crate features MTLBuffer and MTLResource and MTLTexture and MTLTypes only.
source

unsafe fn resetTextureAccessCounters_region_mipLevel_slice( &self, texture: &ProtocolObject<dyn MTLTexture>, region: MTLRegion, mip_level: NSUInteger, slice: NSUInteger )
where Self: Sized + Message,

Available on crate features MTLResource and MTLTexture and MTLTypes only.
source

fn optimizeContentsForGPUAccess(&self, texture: &ProtocolObject<dyn MTLTexture>)
where Self: Sized + Message,

Available on crate features MTLResource and MTLTexture only.
source

unsafe fn optimizeContentsForGPUAccess_slice_level( &self, texture: &ProtocolObject<dyn MTLTexture>, slice: NSUInteger, level: NSUInteger )
where Self: Sized + Message,

Available on crate features MTLResource and MTLTexture only.
source

unsafe fn optimizeContentsForCPUAccess( &self, texture: &ProtocolObject<dyn MTLTexture> )
where Self: Sized + Message,

Available on crate features MTLResource and MTLTexture only.
source

unsafe fn optimizeContentsForCPUAccess_slice_level( &self, texture: &ProtocolObject<dyn MTLTexture>, slice: NSUInteger, level: NSUInteger )
where Self: Sized + Message,

Available on crate features MTLResource and MTLTexture only.
source

unsafe fn resetCommandsInBuffer_withRange( &self, buffer: &ProtocolObject<dyn MTLIndirectCommandBuffer>, range: NSRange )
where Self: Sized + Message,

Available on crate features MTLIndirectCommandBuffer and MTLResource only.
source

unsafe fn copyIndirectCommandBuffer_sourceRange_destination_destinationIndex( &self, source: &ProtocolObject<dyn MTLIndirectCommandBuffer>, source_range: NSRange, destination: &ProtocolObject<dyn MTLIndirectCommandBuffer>, destination_index: NSUInteger )
where Self: Sized + Message,

Available on crate features MTLIndirectCommandBuffer and MTLResource only.
source

unsafe fn optimizeIndirectCommandBuffer_withRange( &self, indirect_command_buffer: &ProtocolObject<dyn MTLIndirectCommandBuffer>, range: NSRange )
where Self: Sized + Message,

Available on crate features MTLIndirectCommandBuffer and MTLResource only.
source

unsafe fn sampleCountersInBuffer_atSampleIndex_withBarrier( &self, sample_buffer: &ProtocolObject<dyn MTLCounterSampleBuffer>, sample_index: NSUInteger, barrier: bool )
where Self: Sized + Message,

Available on crate feature MTLCounters only.
source

unsafe fn resolveCounters_inRange_destinationBuffer_destinationOffset( &self, sample_buffer: &ProtocolObject<dyn MTLCounterSampleBuffer>, range: NSRange, destination_buffer: &ProtocolObject<dyn MTLBuffer>, destination_offset: NSUInteger )
where Self: Sized + Message,

Available on crate features MTLBuffer and MTLCounters and MTLResource only.

Trait Implementations§

source§

impl ProtocolType for dyn MTLBlitCommandEncoder

source§

const NAME: &'static str = "MTLBlitCommandEncoder"

The name of the Objective-C protocol that this type represents.
source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
source§

impl<T> ImplementedBy<T> for dyn MTLBlitCommandEncoder

Implementations on Foreign Types§

source§

impl<T> MTLBlitCommandEncoder for ProtocolObject<T>

Implementors§