pub struct IntersectionFunctionTableDescriptor(/* private fields */);Expand description
A descriptor for creating an intersection function table.
C++ equivalent: MTL::IntersectionFunctionTableDescriptor
Implementations§
Source§impl IntersectionFunctionTableDescriptor
impl IntersectionFunctionTableDescriptor
Sourcepub fn new() -> Option<Self>
pub fn new() -> Option<Self>
Create a new intersection function table descriptor.
C++ equivalent: static IntersectionFunctionTableDescriptor* alloc()->init()
Sourcepub fn intersection_function_table_descriptor() -> Option<Self>
pub fn intersection_function_table_descriptor() -> Option<Self>
Create a new intersection function table descriptor using the class method.
C++ equivalent: static IntersectionFunctionTableDescriptor* intersectionFunctionTableDescriptor()
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Create an IntersectionFunctionTableDescriptor from a raw pointer.
§Safety
The pointer must be a valid Metal intersection function table descriptor object.
Sourcepub fn function_count(&self) -> UInteger
pub fn function_count(&self) -> UInteger
Get the number of functions in the table.
C++ equivalent: NS::UInteger functionCount() const
Sourcepub fn set_function_count(&self, function_count: UInteger)
pub fn set_function_count(&self, function_count: UInteger)
Set the number of functions in the table.
C++ equivalent: void setFunctionCount(NS::UInteger functionCount)