pub struct RasterizationRateMap(/* private fields */);Expand description
A rasterization rate map for variable rate shading.
C++ equivalent: MTL::RasterizationRateMap
Implementations§
Source§impl RasterizationRateMap
impl RasterizationRateMap
Sourcepub fn device(&self) -> Device
pub fn device(&self) -> Device
Get the device that created this rasterization rate map.
C++ equivalent: Device* device() const
Sourcepub fn screen_size(&self) -> Size
pub fn screen_size(&self) -> Size
Get the screen size.
C++ equivalent: Size screenSize() const
Sourcepub fn physical_granularity(&self) -> Size
pub fn physical_granularity(&self) -> Size
Get the physical granularity.
C++ equivalent: Size physicalGranularity() const
Sourcepub fn layer_count(&self) -> UInteger
pub fn layer_count(&self) -> UInteger
Get the layer count.
C++ equivalent: NS::UInteger layerCount() const
Sourcepub fn parameter_buffer_size_and_align(&self) -> SizeAndAlign
pub fn parameter_buffer_size_and_align(&self) -> SizeAndAlign
Get the parameter buffer size and alignment.
C++ equivalent: SizeAndAlign parameterBufferSizeAndAlign() const
Sourcepub fn physical_size(&self, layer_index: UInteger) -> Size
pub fn physical_size(&self, layer_index: UInteger) -> Size
Get the physical size for a layer.
C++ equivalent: Size physicalSize(NS::UInteger layerIndex)
Sourcepub fn map_physical_to_screen_coordinates(
&self,
physical_coordinates: Coordinate2D,
layer_index: UInteger,
) -> Coordinate2D
pub fn map_physical_to_screen_coordinates( &self, physical_coordinates: Coordinate2D, layer_index: UInteger, ) -> Coordinate2D
Map physical coordinates to screen coordinates.
C++ equivalent: Coordinate2D mapPhysicalToScreenCoordinates(MTL::Coordinate2D physicalCoordinates, NS::UInteger layerIndex)
Sourcepub fn map_screen_to_physical_coordinates(
&self,
screen_coordinates: Coordinate2D,
layer_index: UInteger,
) -> Coordinate2D
pub fn map_screen_to_physical_coordinates( &self, screen_coordinates: Coordinate2D, layer_index: UInteger, ) -> Coordinate2D
Map screen coordinates to physical coordinates.
C++ equivalent: Coordinate2D mapScreenToPhysicalCoordinates(MTL::Coordinate2D screenCoordinates, NS::UInteger layerIndex)
Sourcepub fn copy_parameter_data_to_buffer(&self, buffer: &Buffer, offset: UInteger)
pub fn copy_parameter_data_to_buffer(&self, buffer: &Buffer, offset: UInteger)
Copy parameter data to a buffer.
C++ equivalent: void copyParameterDataToBuffer(const MTL::Buffer* buffer, NS::UInteger offset)