usecrate::{MTLRasterizationRateLayerDescriptor, MTLRasterizationRateMapDescriptor}; use objc2::extern_methods;
impl MTLRasterizationRateLayerDescriptor {
extern_methods!( /// The number of quality samples that this descriptor uses to /// describe its current function, for the horizontal and vertical /// axis. The depth component of the returned `MTLSize` is always 0. #[cfg(feature = "MTLTypes")] #[unsafe(method(sampleCount))] pubfn sampleCount(&self) -> crate::MTLSize;
);
}
impl MTLRasterizationRateMapDescriptor {
extern_methods!( #[cfg(feature = "MTLTypes")] /// Convenience descriptor creation function for an arbitrary amount of layers stored in a C-array. /// /// Parameter `screenSize`: The dimensions, in screen space pixels, of the region where variable rasterization is applied. The depth component of MTLSize is ignored. /// /// Parameter `layerCount`: The number of layers in the descriptor. /// /// Parameter `layers`: An array of pointers to layer descriptors. The array must contain layerCount non-null pointers to MTLRasterizationRateLayerDescriptor instances. /// /// Returns: A descriptor containing all the specified layers. Add or remove layers using setObject:atIndexedSubscript:. /// /// The function copies the array of pointers internally, the caller need not keep the array alive after creating the descriptor. #[unsafe(method(rasterizationRateMapDescriptorWithScreenSize:layerCount:layers:))] pubunsafefn rasterizationRateMapDescriptorWithScreenSize_layerCount_layers(
screen_size: crate::MTLSize,
layer_count: objc2_foundation::NSUInteger,
layers: core::ptr::NonNull<core::ptr::NonNull<MTLRasterizationRateLayerDescriptor>>,
) -> objc2::rc::Retained<MTLRasterizationRateMapDescriptor>;
);
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.18 Sekunden
(vorverarbeitet am 2026-08-25)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.