Skip to main content

BlitCommandEncoder

Struct BlitCommandEncoder 

Source
pub struct BlitCommandEncoder(/* private fields */);

Methods from Deref<Target = BlitCommandEncoderRef>§

Source

pub fn synchronize_resource(&self, resource: &ResourceRef)

Source

pub fn fill_buffer( &self, destination_buffer: &BufferRef, range: NSRange, value: u8, )

Source

pub fn generate_mipmaps(&self, texture: &TextureRef)

Source

pub fn copy_from_buffer( &self, source_buffer: &BufferRef, source_offset: NSUInteger, destination_buffer: &BufferRef, destination_offset: NSUInteger, size: NSUInteger, )

Source

pub fn copy_from_texture( &self, source_texture: &TextureRef, source_slice: NSUInteger, source_level: NSUInteger, source_origin: MTLOrigin, source_size: MTLSize, destination_texture: &TextureRef, destination_slice: NSUInteger, destination_level: NSUInteger, destination_origin: MTLOrigin, )

Source

pub fn copy_from_buffer_to_texture( &self, source_buffer: &BufferRef, source_offset: NSUInteger, source_bytes_per_row: NSUInteger, source_bytes_per_image: NSUInteger, source_size: MTLSize, destination_texture: &TextureRef, destination_slice: NSUInteger, destination_level: NSUInteger, destination_origin: MTLOrigin, options: MTLBlitOption, )

Source

pub fn copy_from_texture_to_buffer( &self, source_texture: &TextureRef, source_slice: NSUInteger, source_level: NSUInteger, source_origin: MTLOrigin, source_size: MTLSize, destination_buffer: &BufferRef, destination_offset: NSUInteger, destination_bytes_per_row: NSUInteger, destination_bytes_per_image: NSUInteger, options: MTLBlitOption, )

Source

pub fn optimize_contents_for_gpu_access(&self, texture: &TextureRef)

Source

pub fn optimize_contents_for_gpu_access_slice_level( &self, texture: &TextureRef, slice: NSUInteger, level: NSUInteger, )

Source

pub fn optimize_contents_for_cpu_access(&self, texture: &TextureRef)

Source

pub fn optimize_contents_for_cpu_access_slice_level( &self, texture: &TextureRef, slice: NSUInteger, level: NSUInteger, )

Source

pub fn update_fence(&self, fence: &FenceRef)

Source

pub fn wait_for_fence(&self, fence: &FenceRef)

Source

pub fn copy_indirect_command_buffer( &self, source: &IndirectCommandBufferRef, source_range: NSRange, destination: &IndirectCommandBufferRef, destination_index: NSUInteger, )

Source

pub fn reset_commands_in_buffer( &self, buffer: &IndirectCommandBufferRef, range: NSRange, )

Source

pub fn optimize_indirect_command_buffer( &self, buffer: &IndirectCommandBufferRef, range: NSRange, )

Source

pub fn sample_counters_in_buffer( &self, sample_buffer: &CounterSampleBufferRef, sample_index: NSUInteger, with_barrier: bool, )

Source

pub fn resolve_counters( &self, sample_buffer: &CounterSampleBufferRef, range: NSRange, destination_buffer: &BufferRef, destination_offset: NSUInteger, )

Methods from Deref<Target = CommandEncoderRef>§

Source

pub fn label(&self) -> &str

Source

pub fn set_label(&self, label: &str)

Source

pub fn end_encoding(&self)

Source

pub fn insert_debug_signpost(&self, name: &str)

Source

pub fn push_debug_group(&self, name: &str)

Source

pub fn pop_debug_group(&self)

Trait Implementations§

Source§

impl AsMut<BlitCommandEncoderRef> for BlitCommandEncoder

Source§

fn as_mut(&mut self) -> &mut BlitCommandEncoderRef

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsRef<BlitCommandEncoderRef> for BlitCommandEncoder

Source§

fn as_ref(&self) -> &BlitCommandEncoderRef

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Borrow<BlitCommandEncoderRef> for BlitCommandEncoder

Source§

fn borrow(&self) -> &BlitCommandEncoderRef

Immutably borrows from an owned value. Read more
Source§

impl BorrowMut<BlitCommandEncoderRef> for BlitCommandEncoder

Source§

fn borrow_mut(&mut self) -> &mut BlitCommandEncoderRef

Mutably borrows from an owned value. Read more
Source§

impl Clone for BlitCommandEncoder

Source§

fn clone(&self) -> BlitCommandEncoder

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for BlitCommandEncoder

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deref for BlitCommandEncoder

Source§

type Target = BlitCommandEncoderRef

The resulting type after dereferencing.
Source§

fn deref(&self) -> &BlitCommandEncoderRef

Dereferences the value.
Source§

impl DerefMut for BlitCommandEncoder

Source§

fn deref_mut(&mut self) -> &mut BlitCommandEncoderRef

Mutably dereferences the value.
Source§

impl Drop for BlitCommandEncoder

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more
Source§

impl ForeignType for BlitCommandEncoder

Source§

type CType = MTLBlitCommandEncoder

The raw C type.
Source§

type Ref = BlitCommandEncoderRef

The type representing a reference to this type.
Source§

unsafe fn from_ptr(ptr: *mut MTLBlitCommandEncoder) -> BlitCommandEncoder

Constructs an instance of this type from its raw type. Read more
Source§

fn as_ptr(&self) -> *mut MTLBlitCommandEncoder

Returns a raw pointer to the wrapped value.
Source§

fn into_ptr(self) -> *mut Self::CType

Consumes the wrapper and returns the raw pointer.
Source§

impl From<BlitCommandEncoder> for CommandEncoder

Source§

fn from(item: BlitCommandEncoder) -> Self

Converts to this type from the input type.
Source§

impl Send for BlitCommandEncoder

Source§

impl Sync for BlitCommandEncoder

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.