pub struct ArgumentTableDescriptor(/* private fields */);Expand description
Descriptor for creating an argument table.
C++ equivalent: MTL4::ArgumentTableDescriptor
Implementations§
Source§impl ArgumentTableDescriptor
impl ArgumentTableDescriptor
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Create an ArgumentTableDescriptor from a raw pointer.
Sourcepub fn set_label(&self, label: &str)
pub fn set_label(&self, label: &str)
Set the label.
C++ equivalent: void setLabel(const NS::String*)
Sourcepub fn max_buffer_bind_count(&self) -> UInteger
pub fn max_buffer_bind_count(&self) -> UInteger
Get the maximum buffer bind count.
C++ equivalent: NS::UInteger maxBufferBindCount() const
Sourcepub fn set_max_buffer_bind_count(&self, count: UInteger)
pub fn set_max_buffer_bind_count(&self, count: UInteger)
Set the maximum buffer bind count.
C++ equivalent: void setMaxBufferBindCount(NS::UInteger)
Sourcepub fn max_texture_bind_count(&self) -> UInteger
pub fn max_texture_bind_count(&self) -> UInteger
Get the maximum texture bind count.
C++ equivalent: NS::UInteger maxTextureBindCount() const
Sourcepub fn set_max_texture_bind_count(&self, count: UInteger)
pub fn set_max_texture_bind_count(&self, count: UInteger)
Set the maximum texture bind count.
C++ equivalent: void setMaxTextureBindCount(NS::UInteger)
Sourcepub fn max_sampler_state_bind_count(&self) -> UInteger
pub fn max_sampler_state_bind_count(&self) -> UInteger
Get the maximum sampler state bind count.
C++ equivalent: NS::UInteger maxSamplerStateBindCount() const
Sourcepub fn set_max_sampler_state_bind_count(&self, count: UInteger)
pub fn set_max_sampler_state_bind_count(&self, count: UInteger)
Set the maximum sampler state bind count.
C++ equivalent: void setMaxSamplerStateBindCount(NS::UInteger)
Sourcepub fn initialize_bindings(&self) -> bool
pub fn initialize_bindings(&self) -> bool
Check if bindings should be initialized.
C++ equivalent: bool initializeBindings() const
Sourcepub fn set_initialize_bindings(&self, initialize: bool)
pub fn set_initialize_bindings(&self, initialize: bool)
Set whether bindings should be initialized.
C++ equivalent: void setInitializeBindings(bool)
Sourcepub fn support_attribute_strides(&self) -> bool
pub fn support_attribute_strides(&self) -> bool
Check if attribute strides are supported.
C++ equivalent: bool supportAttributeStrides() const
Sourcepub fn set_support_attribute_strides(&self, support: bool)
pub fn set_support_attribute_strides(&self, support: bool)
Set whether attribute strides are supported.
C++ equivalent: void setSupportAttributeStrides(bool)