pub struct RenderPipelineDescriptor(/* private fields */);Expand description
Descriptor for MTL4 render pipelines.
C++ equivalent: MTL4::RenderPipelineDescriptor
Implementations§
Source§impl RenderPipelineDescriptor
impl RenderPipelineDescriptor
Sourcepub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw(ptr: *mut c_void) -> Option<Self>
Create a RenderPipelineDescriptor 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 vertex_function_descriptor(&self) -> Option<FunctionDescriptor>
pub fn vertex_function_descriptor(&self) -> Option<FunctionDescriptor>
Get the vertex function descriptor.
Sourcepub fn set_vertex_function_descriptor(&self, descriptor: &FunctionDescriptor)
pub fn set_vertex_function_descriptor(&self, descriptor: &FunctionDescriptor)
Set the vertex function descriptor.
Sourcepub fn vertex_static_linking_descriptor(
&self,
) -> Option<StaticLinkingDescriptor>
pub fn vertex_static_linking_descriptor( &self, ) -> Option<StaticLinkingDescriptor>
Get the vertex static linking descriptor.
Sourcepub fn set_vertex_static_linking_descriptor(
&self,
descriptor: &StaticLinkingDescriptor,
)
pub fn set_vertex_static_linking_descriptor( &self, descriptor: &StaticLinkingDescriptor, )
Set the vertex static linking descriptor.
Sourcepub fn fragment_function_descriptor(&self) -> Option<FunctionDescriptor>
pub fn fragment_function_descriptor(&self) -> Option<FunctionDescriptor>
Get the fragment function descriptor.
Sourcepub fn set_fragment_function_descriptor(&self, descriptor: &FunctionDescriptor)
pub fn set_fragment_function_descriptor(&self, descriptor: &FunctionDescriptor)
Set the fragment function descriptor.
Sourcepub fn fragment_static_linking_descriptor(
&self,
) -> Option<StaticLinkingDescriptor>
pub fn fragment_static_linking_descriptor( &self, ) -> Option<StaticLinkingDescriptor>
Get the fragment static linking descriptor.
Sourcepub fn set_fragment_static_linking_descriptor(
&self,
descriptor: &StaticLinkingDescriptor,
)
pub fn set_fragment_static_linking_descriptor( &self, descriptor: &StaticLinkingDescriptor, )
Set the fragment static linking descriptor.
Sourcepub fn color_attachments(
&self,
) -> Option<RenderPipelineColorAttachmentDescriptorArray>
pub fn color_attachments( &self, ) -> Option<RenderPipelineColorAttachmentDescriptorArray>
Get the color attachments array.
Sourcepub fn color_attachment_mapping_state(
&self,
) -> LogicalToPhysicalColorAttachmentMappingState
pub fn color_attachment_mapping_state( &self, ) -> LogicalToPhysicalColorAttachmentMappingState
Get the color attachment mapping state.
Sourcepub fn set_color_attachment_mapping_state(
&self,
state: LogicalToPhysicalColorAttachmentMappingState,
)
pub fn set_color_attachment_mapping_state( &self, state: LogicalToPhysicalColorAttachmentMappingState, )
Set the color attachment mapping state.
Sourcepub fn is_rasterization_enabled(&self) -> bool
pub fn is_rasterization_enabled(&self) -> bool
Get whether rasterization is enabled.
Sourcepub fn set_rasterization_enabled(&self, enabled: bool)
pub fn set_rasterization_enabled(&self, enabled: bool)
Set whether rasterization is enabled.
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 alpha_to_coverage_state(&self) -> AlphaToCoverageState
pub fn alpha_to_coverage_state(&self) -> AlphaToCoverageState
Get the alpha to coverage state.
Sourcepub fn set_alpha_to_coverage_state(&self, state: AlphaToCoverageState)
pub fn set_alpha_to_coverage_state(&self, state: AlphaToCoverageState)
Set the alpha to coverage state.
Sourcepub fn alpha_to_one_state(&self) -> AlphaToOneState
pub fn alpha_to_one_state(&self) -> AlphaToOneState
Get the alpha to one state.
Sourcepub fn set_alpha_to_one_state(&self, state: AlphaToOneState)
pub fn set_alpha_to_one_state(&self, state: AlphaToOneState)
Set the alpha to one state.
Sourcepub fn vertex_descriptor_raw(&self) -> *mut c_void
pub fn vertex_descriptor_raw(&self) -> *mut c_void
Get the vertex descriptor (as raw pointer).
Sourcepub fn set_vertex_descriptor_raw(&self, descriptor: *const c_void)
pub fn set_vertex_descriptor_raw(&self, descriptor: *const c_void)
Set the vertex descriptor (from raw pointer).
Sourcepub fn input_primitive_topology(&self) -> PrimitiveTopologyClass
pub fn input_primitive_topology(&self) -> PrimitiveTopologyClass
Get the input primitive topology.
Sourcepub fn set_input_primitive_topology(&self, topology: PrimitiveTopologyClass)
pub fn set_input_primitive_topology(&self, topology: PrimitiveTopologyClass)
Set the input primitive topology.
Sourcepub fn max_vertex_amplification_count(&self) -> UInteger
pub fn max_vertex_amplification_count(&self) -> UInteger
Get the maximum vertex amplification count.
Sourcepub fn set_max_vertex_amplification_count(&self, count: UInteger)
pub fn set_max_vertex_amplification_count(&self, count: UInteger)
Set the maximum vertex amplification count.
Sourcepub fn support_vertex_binary_linking(&self) -> bool
pub fn support_vertex_binary_linking(&self) -> bool
Get whether vertex binary linking is supported.
Sourcepub fn set_support_vertex_binary_linking(&self, support: bool)
pub fn set_support_vertex_binary_linking(&self, support: bool)
Set whether vertex binary linking is supported.
Sourcepub fn support_fragment_binary_linking(&self) -> bool
pub fn support_fragment_binary_linking(&self) -> bool
Get whether fragment binary linking is supported.
Sourcepub fn set_support_fragment_binary_linking(&self, support: bool)
pub fn set_support_fragment_binary_linking(&self, support: bool)
Set whether fragment binary linking is supported.
Sourcepub fn support_indirect_command_buffers(
&self,
) -> IndirectCommandBufferSupportState
pub fn support_indirect_command_buffers( &self, ) -> IndirectCommandBufferSupportState
Get the indirect command buffer support state.
Sourcepub fn set_support_indirect_command_buffers(
&self,
state: IndirectCommandBufferSupportState,
)
pub fn set_support_indirect_command_buffers( &self, state: IndirectCommandBufferSupportState, )
Set the indirect command buffer support state.