pub struct TileRenderPipelineDescriptor(/* private fields */);Expand description
Descriptor for MTL4 tile render pipelines.
C++ equivalent: MTL4::TileRenderPipelineDescriptor
TileRenderPipelineDescriptor configures tile shading pipelines for on-tile compute operations.
Implementations§
Source§impl TileRenderPipelineDescriptor
impl TileRenderPipelineDescriptor
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Create a TileRenderPipelineDescriptor from a raw pointer.
Sourcepub fn options(&self) -> Option<PipelineOptions>
pub fn options(&self) -> Option<PipelineOptions>
Get the pipeline options.
Sourcepub fn set_options(&self, options: &PipelineOptions)
pub fn set_options(&self, options: &PipelineOptions)
Set the pipeline options.
Sourcepub fn tile_function_descriptor(&self) -> Option<FunctionDescriptor>
pub fn tile_function_descriptor(&self) -> Option<FunctionDescriptor>
Get the tile function descriptor.
Sourcepub fn set_tile_function_descriptor(&self, descriptor: &FunctionDescriptor)
pub fn set_tile_function_descriptor(&self, descriptor: &FunctionDescriptor)
Set the tile function descriptor.
Sourcepub fn static_linking_descriptor(&self) -> Option<StaticLinkingDescriptor>
pub fn static_linking_descriptor(&self) -> Option<StaticLinkingDescriptor>
Get the static linking descriptor.
Sourcepub fn set_static_linking_descriptor(
&self,
descriptor: &StaticLinkingDescriptor,
)
pub fn set_static_linking_descriptor( &self, descriptor: &StaticLinkingDescriptor, )
Set the static linking descriptor.
Sourcepub fn color_attachments_raw(&self) -> *mut c_void
pub fn color_attachments_raw(&self) -> *mut c_void
Get the color attachments array (as raw pointer to MTL::TileRenderPipelineColorAttachmentDescriptorArray).
Sourcepub fn max_total_threads_per_threadgroup(&self) -> UInteger
pub fn max_total_threads_per_threadgroup(&self) -> UInteger
Get the maximum total threads per threadgroup.
Sourcepub fn set_max_total_threads_per_threadgroup(&self, max: UInteger)
pub fn set_max_total_threads_per_threadgroup(&self, max: UInteger)
Set the maximum total threads per threadgroup.
Sourcepub fn required_threads_per_threadgroup(&self) -> Size
pub fn required_threads_per_threadgroup(&self) -> Size
Get the required threads per threadgroup.
Sourcepub fn set_required_threads_per_threadgroup(&self, size: Size)
pub fn set_required_threads_per_threadgroup(&self, size: Size)
Set the required threads per threadgroup.
Sourcepub fn threadgroup_size_matches_tile_size(&self) -> bool
pub fn threadgroup_size_matches_tile_size(&self) -> bool
Get whether threadgroup size matches tile size.
Sourcepub fn set_threadgroup_size_matches_tile_size(&self, value: bool)
pub fn set_threadgroup_size_matches_tile_size(&self, value: bool)
Set whether threadgroup size matches tile size.
Sourcepub fn raster_sample_count(&self) -> UInteger
pub fn raster_sample_count(&self) -> UInteger
Get the raster sample count.
Sourcepub fn set_raster_sample_count(&self, count: UInteger)
pub fn set_raster_sample_count(&self, count: UInteger)
Set the raster sample count.
Sourcepub fn support_binary_linking(&self) -> bool
pub fn support_binary_linking(&self) -> bool
Get whether binary linking is supported.
Sourcepub fn set_support_binary_linking(&self, support: bool)
pub fn set_support_binary_linking(&self, support: bool)
Set whether binary linking is supported.