Struct AccelerationStructureCommandEncoder

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

Methods from Deref<Target = AccelerationStructureCommandEncoderRef>§

Source

pub fn build_acceleration_structure( &self, acceleration_structure: &AccelerationStructureRef, descriptor: &AccelerationStructureDescriptorRef, scratch_buffer: &BufferRef, scratch_buffer_offset: NSUInteger, )

Source

pub fn copy_acceleration_structure( &self, source_acceleration_structure: &AccelerationStructureRef, destination_acceleration_structure: &AccelerationStructureRef, )

Source

pub fn write_compacted_acceleration_structure_size( &self, acceleration_structure: &AccelerationStructureRef, to_buffer: &BufferRef, offset: NSUInteger, )

Source

pub fn write_compacted_acceleration_structure_size_with_type( &self, acceleration_structure: &AccelerationStructureRef, to_buffer: &BufferRef, offset: NSUInteger, size_data_type: MTLDataType, )

Source

pub fn copy_and_compact_acceleration_structure( &self, source: &AccelerationStructureRef, destination: &AccelerationStructureRef, )

Source

pub fn refit_acceleration_structure( &self, source_acceleration_structure: &AccelerationStructureRef, descriptor: &AccelerationStructureDescriptorRef, destination_acceleration_structure: Option<&AccelerationStructureRef>, scratch_buffer: &BufferRef, scratch_buffer_offset: NSUInteger, )

Source

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

Source

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

Source

pub fn use_heap(&self, heap: &HeapRef)

Source

pub fn use_heaps(&self, heaps: &[&HeapRef])

Source

pub fn use_resource(&self, resource: &ResourceRef, usage: MTLResourceUsage)

Source

pub fn use_resources(&self, resources: &[&ResourceRef], usage: MTLResourceUsage)

Source

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

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<AccelerationStructureCommandEncoderRef> for AccelerationStructureCommandEncoder

Source§

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

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

impl AsRef<AccelerationStructureCommandEncoderRef> for AccelerationStructureCommandEncoder

Source§

fn as_ref(&self) -> &AccelerationStructureCommandEncoderRef

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

impl Borrow<AccelerationStructureCommandEncoderRef> for AccelerationStructureCommandEncoder

Source§

fn borrow(&self) -> &AccelerationStructureCommandEncoderRef

Immutably borrows from an owned value. Read more
Source§

impl BorrowMut<AccelerationStructureCommandEncoderRef> for AccelerationStructureCommandEncoder

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl Clone for AccelerationStructureCommandEncoder

Source§

fn clone(&self) -> AccelerationStructureCommandEncoder

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for AccelerationStructureCommandEncoder

Source§

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

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

impl Deref for AccelerationStructureCommandEncoder

Source§

type Target = AccelerationStructureCommandEncoderRef

The resulting type after dereferencing.
Source§

fn deref(&self) -> &AccelerationStructureCommandEncoderRef

Dereferences the value.
Source§

impl DerefMut for AccelerationStructureCommandEncoder

Source§

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

Mutably dereferences the value.
Source§

impl Drop for AccelerationStructureCommandEncoder

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl ForeignType for AccelerationStructureCommandEncoder

Source§

type CType = MTLAccelerationStructureCommandEncoder

The raw C type.
Source§

type Ref = AccelerationStructureCommandEncoderRef

The type representing a reference to this type.
Source§

unsafe fn from_ptr( ptr: *mut MTLAccelerationStructureCommandEncoder, ) -> AccelerationStructureCommandEncoder

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

fn as_ptr(&self) -> *mut MTLAccelerationStructureCommandEncoder

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<AccelerationStructureCommandEncoder> for CommandEncoder

Source§

fn from(item: AccelerationStructureCommandEncoder) -> Self

Converts to this type from the input type.
Source§

impl Send for AccelerationStructureCommandEncoder

Source§

impl Sync for AccelerationStructureCommandEncoder

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.