pub struct TileRenderPipelineDescriptor(/* private fields */);Expand description
Describes a tile render pipeline configuration.
C++ equivalent: MTL::TileRenderPipelineDescriptor
Implementations§
Source§impl TileRenderPipelineDescriptor
impl TileRenderPipelineDescriptor
Sourcepub fn alloc() -> Option<Self>
pub fn alloc() -> Option<Self>
Allocate a new tile render pipeline descriptor.
C++ equivalent: static TileRenderPipelineDescriptor* alloc()
Sourcepub fn init(&self) -> Option<Self>
pub fn init(&self) -> Option<Self>
Initialize an allocated descriptor.
C++ equivalent: TileRenderPipelineDescriptor* init()
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Create from a raw pointer.
§Safety
The pointer must be a valid Metal tile render pipeline descriptor.
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 tile_function(&self) -> Option<Function>
pub fn tile_function(&self) -> Option<Function>
Get the tile function.
C++ equivalent: Function* tileFunction() const
Sourcepub fn set_tile_function(&self, function: Option<&Function>)
pub fn set_tile_function(&self, function: Option<&Function>)
Set the tile function.
C++ equivalent: void setTileFunction(const Function*)
Sourcepub fn raster_sample_count(&self) -> UInteger
pub fn raster_sample_count(&self) -> UInteger
Get the raster sample count.
C++ equivalent: NS::UInteger rasterSampleCount() const
Sourcepub fn set_raster_sample_count(&self, count: UInteger)
pub fn set_raster_sample_count(&self, count: UInteger)
Set the raster sample count.
C++ equivalent: void setRasterSampleCount(NS::UInteger)
Sourcepub fn color_attachments(
&self,
) -> Option<TileRenderPipelineColorAttachmentDescriptorArray>
pub fn color_attachments( &self, ) -> Option<TileRenderPipelineColorAttachmentDescriptorArray>
Get the color attachments.
C++ equivalent: TileRenderPipelineColorAttachmentDescriptorArray* colorAttachments() const
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.
C++ equivalent: bool threadgroupSizeMatchesTileSize() const
Sourcepub fn set_threadgroup_size_matches_tile_size(&self, matches: bool)
pub fn set_threadgroup_size_matches_tile_size(&self, matches: bool)
Set whether threadgroup size matches tile size.
C++ equivalent: void setThreadgroupSizeMatchesTileSize(bool)
Sourcepub fn tile_buffers(&self) -> Option<PipelineBufferDescriptorArray>
pub fn tile_buffers(&self) -> Option<PipelineBufferDescriptorArray>
Get the tile buffers.
C++ equivalent: PipelineBufferDescriptorArray* tileBuffers() const
Sourcepub fn max_total_threads_per_threadgroup(&self) -> UInteger
pub fn max_total_threads_per_threadgroup(&self) -> UInteger
Get the max total threads per threadgroup.
C++ equivalent: NS::UInteger maxTotalThreadsPerThreadgroup() const
Sourcepub fn set_max_total_threads_per_threadgroup(&self, count: UInteger)
pub fn set_max_total_threads_per_threadgroup(&self, count: UInteger)
Set the max total threads per threadgroup.
C++ equivalent: void setMaxTotalThreadsPerThreadgroup(NS::UInteger)
Sourcepub fn required_threads_per_threadgroup(&self) -> Size
pub fn required_threads_per_threadgroup(&self) -> Size
Get the required threads per threadgroup.
C++ equivalent: Size requiredThreadsPerThreadgroup() const
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.
C++ equivalent: void setRequiredThreadsPerThreadgroup(Size)
Sourcepub fn max_call_stack_depth(&self) -> UInteger
pub fn max_call_stack_depth(&self) -> UInteger
Get the max call stack depth.
C++ equivalent: NS::UInteger maxCallStackDepth() const
Sourcepub fn set_max_call_stack_depth(&self, depth: UInteger)
pub fn set_max_call_stack_depth(&self, depth: UInteger)
Set the max call stack depth.
C++ equivalent: void setMaxCallStackDepth(NS::UInteger)
Sourcepub fn linked_functions(&self) -> Option<LinkedFunctions>
pub fn linked_functions(&self) -> Option<LinkedFunctions>
Get the linked functions.
C++ equivalent: LinkedFunctions* linkedFunctions() const
Sourcepub fn set_linked_functions(&self, functions: Option<&LinkedFunctions>)
pub fn set_linked_functions(&self, functions: Option<&LinkedFunctions>)
Set the linked functions.
C++ equivalent: void setLinkedFunctions(const LinkedFunctions*)
Sourcepub fn support_adding_binary_functions(&self) -> bool
pub fn support_adding_binary_functions(&self) -> bool
Get whether adding binary functions is supported.
C++ equivalent: bool supportAddingBinaryFunctions() const
Sourcepub fn set_support_adding_binary_functions(&self, support: bool)
pub fn set_support_adding_binary_functions(&self, support: bool)
Set whether adding binary functions is supported.
C++ equivalent: void setSupportAddingBinaryFunctions(bool)
Sourcepub fn shader_validation(&self) -> ShaderValidation
pub fn shader_validation(&self) -> ShaderValidation
Get the shader validation mode.
C++ equivalent: ShaderValidation shaderValidation() const
Sourcepub fn set_shader_validation(&self, validation: ShaderValidation)
pub fn set_shader_validation(&self, validation: ShaderValidation)
Set the shader validation mode.
C++ equivalent: void setShaderValidation(ShaderValidation)
Sourcepub fn binary_archives_raw(&self) -> *mut c_void
pub fn binary_archives_raw(&self) -> *mut c_void
Get the binary archives (raw NSArray pointer).
C++ equivalent: NS::Array* binaryArchives() const
Sourcepub unsafe fn set_binary_archives_raw(&self, archives: *const c_void)
pub unsafe fn set_binary_archives_raw(&self, archives: *const c_void)
Set the binary archives.
C++ equivalent: void setBinaryArchives(const NS::Array*)
§Safety
The pointer must be a valid NSArray of BinaryArchive objects.
Sourcepub fn preloaded_libraries_raw(&self) -> *mut c_void
pub fn preloaded_libraries_raw(&self) -> *mut c_void
Get the preloaded libraries (raw NSArray pointer).
C++ equivalent: NS::Array* preloadedLibraries() const
Sourcepub unsafe fn set_preloaded_libraries_raw(&self, libraries: *const c_void)
pub unsafe fn set_preloaded_libraries_raw(&self, libraries: *const c_void)
Set the preloaded libraries.
C++ equivalent: void setPreloadedLibraries(const NS::Array*)
§Safety
The pointer must be a valid NSArray of DynamicLibrary objects.