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§
fn label(&self) -> Option<Retained<NSString>>
fn setLabel(&self, label: Option<&NSString>)
fn device(&self) -> Retained<ProtocolObject<dyn MTLDevice>>
Available on crate feature
MTLDevice only.fn cpuCacheMode(&self) -> MTLCPUCacheMode
fn storageMode(&self) -> MTLStorageMode
fn hazardTrackingMode(&self) -> MTLHazardTrackingMode
fn resourceOptions(&self) -> MTLResourceOptions
fn setPurgeableState(&self, state: MTLPurgeableState) -> MTLPurgeableState
fn heap(&self) -> Option<Retained<ProtocolObject<dyn MTLHeap>>>
Available on crate feature
MTLHeap only.