pub unsafe trait MTLVisibleFunctionTable: MTLResource {
// Provided methods
fn gpuResourceID(&self) -> MTLResourceID
where Self: Sized + Message { ... }
unsafe fn setFunction_atIndex(
&self,
function: Option<&ProtocolObject<dyn MTLFunctionHandle>>,
index: NSUInteger,
)
where Self: Sized + Message { ... }
unsafe fn setFunctions_withRange(
&self,
functions: NonNull<*const ProtocolObject<dyn MTLFunctionHandle>>,
range: NSRange,
)
where Self: Sized + Message { ... }
}Available on crate features
MTLAllocation and MTLResource and MTLVisibleFunctionTable only.Expand description
Provided Methods§
Sourcefn gpuResourceID(&self) -> MTLResourceID
Available on crate feature MTLTypes only.
fn gpuResourceID(&self) -> MTLResourceID
MTLTypes only.Handle of the GPU resource suitable for storing in an Argument Buffer
Sourceunsafe fn setFunction_atIndex(
&self,
function: Option<&ProtocolObject<dyn MTLFunctionHandle>>,
index: NSUInteger,
)
Available on crate feature MTLFunctionHandle only.
unsafe fn setFunction_atIndex( &self, function: Option<&ProtocolObject<dyn MTLFunctionHandle>>, index: NSUInteger, )
MTLFunctionHandle only.§Safety
functionmust be safe to call.functionmust have the correct argument and return types.indexmight not be bounds-checked.
Sourceunsafe fn setFunctions_withRange(
&self,
functions: NonNull<*const ProtocolObject<dyn MTLFunctionHandle>>,
range: NSRange,
)
Available on crate feature MTLFunctionHandle only.
unsafe fn setFunctions_withRange( &self, functions: NonNull<*const ProtocolObject<dyn MTLFunctionHandle>>, range: NSRange, )
MTLFunctionHandle only.§Safety
functionsmust be a valid pointer.rangemight not be bounds-checked.