[−][src]Struct nannou::draw::renderer::Builder
A type aimed at simplifying construction of a draw::Renderer
.
Fields
depth_format: TextureFormat
glyph_cache_size: [u32; 2]
glyph_cache_scale_tolerance: f32
glyph_cache_position_tolerance: f32
Implementations
impl Builder
[src]
pub const DEFAULT_DEPTH_FORMAT: TextureFormat
[src]
The default depth format
pub const DEFAULT_GLYPH_CACHE_SIZE: [u32; 2]
[src]
The default size for the inner glyph cache.
pub const DEFAULT_GLYPH_CACHE_SCALE_TOLERANCE: f32
[src]
The default scale tolerance for the glyph cache.
pub const DEFAULT_GLYPH_CACHE_POSITION_TOLERANCE: f32
[src]
The default position tolerance for the glyph cache.
pub fn new() -> Self
[src]
Begin building a new draw::Renderer.
pub fn depth_format(self, format: TextureFormat) -> Self
[src]
Specify the texture format that should be used to represent depth data in the renderer's
inner depth_texture
.
pub fn glyph_cache_size(self, size: [u32; 2]) -> Self
[src]
The dimensions of the texture used to cache glyphs.
Some text-heavy apps may require a text cache larger than the default size in order to run efficiently without text glitching. If the texture is insufficiently large for all text currently appearing within the output attachment, artifacts will appear in the text.
pub fn glyph_cache_scale_tolerance(self, tolerance: f32) -> Self
[src]
Specifies the tolerances (maximum allowed difference) for judging whether an existing glyph in the cache is close enough to the requested glyph in scale to be used in its place.
Due to floating point inaccuracies a min value of 0.001 is enforced.
pub fn glyph_cache_position_tolerance(self, tolerance: f32) -> Self
[src]
Specifies the tolerances (maximum allowed difference) for judging whether an existing glyph in the cache is close enough to the requested glyph in subpixel offset to be used in its place.
Due to floating point inaccuracies a min value of 0.001 is enforced.
pub fn build_from_texture_descriptor(
self,
device: &Device,
descriptor: &TextureDescriptor<'_>
) -> Renderer
[src]
self,
device: &Device,
descriptor: &TextureDescriptor<'_>
) -> Renderer
Build the draw::Renderer ready to target an output attachment of the given descriptor.
pub fn build(
self,
device: &Device,
output_attachment_size: [u32; 2],
output_scale_factor: f32,
sample_count: u32,
output_color_format: TextureFormat
) -> Renderer
[src]
self,
device: &Device,
output_attachment_size: [u32; 2],
output_scale_factor: f32,
sample_count: u32,
output_color_format: TextureFormat
) -> Renderer
Build the draw::Renderer ready to target an output attachment with the given size, sample count and format.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
[src]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> ConvertInto<U> for T where
U: ConvertFrom<T>,
[src]
U: ConvertFrom<T>,
fn convert_into(self) -> U
[src]
fn convert_unclamped_into(self) -> U
[src]
fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,