pub struct ComputePipelineReflection(/* private fields */);Implementations§
Source§impl ComputePipelineReflection
impl ComputePipelineReflection
Sourcepub fn new() -> Option<Self>
pub fn new() -> Option<Self>
Create a new compute pipeline reflection.
C++ equivalent: static ComputePipelineReflection* alloc()->init()
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Create a ComputePipelineReflection from a raw pointer.
§Safety
The pointer must be a valid Metal compute pipeline reflection object.
Sourcepub fn arguments_raw(&self) -> *mut c_void
pub fn arguments_raw(&self) -> *mut c_void
Get the arguments array (deprecated, use bindings instead).
Returns an array of MTLArgument objects.
C++ equivalent: NS::Array* arguments() const
Sourcepub fn bindings_raw(&self) -> *mut c_void
pub fn bindings_raw(&self) -> *mut c_void
Get the bindings array.
Returns an array of objects conforming to MTLBinding protocol.
C++ equivalent: NS::Array* bindings() const
Trait Implementations§
Source§impl Clone for ComputePipelineReflection
impl Clone for ComputePipelineReflection
Source§impl Debug for ComputePipelineReflection
impl Debug for ComputePipelineReflection
Source§impl Drop for ComputePipelineReflection
impl Drop for ComputePipelineReflection
Source§impl Referencing for ComputePipelineReflection
impl Referencing for ComputePipelineReflection
Source§fn as_mut_ptr(&self) -> *mut c_void
fn as_mut_ptr(&self) -> *mut c_void
Get the raw mutable pointer to the Objective-C object.
Source§fn retain(&self) -> Selfwhere
Self: Clone,
fn retain(&self) -> Selfwhere
Self: Clone,
Retain the object, incrementing its reference count. Read more
Source§fn autorelease(&self) -> Selfwhere
Self: Clone,
fn autorelease(&self) -> Selfwhere
Self: Clone,
Autorelease the object. Read more
Source§fn retain_count(&self) -> usize
fn retain_count(&self) -> usize
Get the retain count of the object. Read more
impl Send for ComputePipelineReflection
impl Sync for ComputePipelineReflection
Auto Trait Implementations§
impl Freeze for ComputePipelineReflection
impl RefUnwindSafe for ComputePipelineReflection
impl Unpin for ComputePipelineReflection
impl UnwindSafe for ComputePipelineReflection
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more