Trait objc2_metal::MTLResource

source ·
pub unsafe trait MTLResource: NSObjectProtocol + IsRetainable {
Show 13 methods // Provided methods fn label(&self) -> Option<Retained<NSString>> where Self: Sized + Message { ... } fn setLabel(&self, label: Option<&NSString>) where Self: Sized + Message { ... } fn device(&self) -> Retained<ProtocolObject<dyn MTLDevice>> where Self: Sized + Message { ... } fn cpuCacheMode(&self) -> MTLCPUCacheMode where Self: Sized + Message { ... } fn storageMode(&self) -> MTLStorageMode where Self: Sized + Message { ... } fn hazardTrackingMode(&self) -> MTLHazardTrackingMode where Self: Sized + Message { ... } fn resourceOptions(&self) -> MTLResourceOptions where Self: Sized + Message { ... } fn setPurgeableState(&self, state: MTLPurgeableState) -> MTLPurgeableState where Self: Sized + Message { ... } fn heap(&self) -> Option<Retained<ProtocolObject<dyn MTLHeap>>> where Self: Sized + Message { ... } fn heapOffset(&self) -> NSUInteger where Self: Sized + Message { ... } fn allocatedSize(&self) -> NSUInteger where Self: Sized + Message { ... } unsafe fn makeAliasable(&self) where Self: Sized + Message { ... } fn isAliasable(&self) -> bool where Self: Sized + Message { ... }
}
Available on crate feature MTLResource only.

Provided Methods§

source

fn label(&self) -> Option<Retained<NSString>>
where Self: Sized + Message,

source

fn setLabel(&self, label: Option<&NSString>)
where Self: Sized + Message,

source

fn device(&self) -> Retained<ProtocolObject<dyn MTLDevice>>
where Self: Sized + Message,

Available on crate feature MTLDevice only.
source

fn cpuCacheMode(&self) -> MTLCPUCacheMode
where Self: Sized + Message,

source

fn storageMode(&self) -> MTLStorageMode
where Self: Sized + Message,

source

fn hazardTrackingMode(&self) -> MTLHazardTrackingMode
where Self: Sized + Message,

source

fn resourceOptions(&self) -> MTLResourceOptions
where Self: Sized + Message,

source

fn setPurgeableState(&self, state: MTLPurgeableState) -> MTLPurgeableState
where Self: Sized + Message,

source

fn heap(&self) -> Option<Retained<ProtocolObject<dyn MTLHeap>>>
where Self: Sized + Message,

Available on crate feature MTLHeap only.
source

fn heapOffset(&self) -> NSUInteger
where Self: Sized + Message,

source

fn allocatedSize(&self) -> NSUInteger
where Self: Sized + Message,

source

unsafe fn makeAliasable(&self)
where Self: Sized + Message,

source

fn isAliasable(&self) -> bool
where Self: Sized + Message,

Trait Implementations§

source§

impl ProtocolType for dyn MTLResource

source§

const NAME: &'static str = "MTLResource"

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 MTLResource
where T: ?Sized + Message + MTLResource,

Implementations on Foreign Types§

source§

impl<T> MTLResource for ProtocolObject<T>
where T: ?Sized + MTLResource,

Implementors§