#[repr(C)]
pub struct ContextOptions {
Show 28 fields pub suppress_prints: bool, pub skip_gl_error_checks: Enable, pub max_texture_size_override: c_int, pub buffer_map_threshold: c_int, pub do_manual_mipmapping: bool, pub disable_coverage_counting_paths: bool, pub disable_distance_field_paths: bool, pub allow_path_mask_caching: bool, pub disable_gpu_yuv_conversion: bool, pub glyph_cache_texture_maximum_bytes: usize, pub min_distance_field_font_size: f32, pub glyphs_as_paths_font_size: f32, pub allow_multiple_glyph_cache_textures: Enable, pub avoid_stencil_buffers: bool, pub use_draw_instead_of_clear: Enable, pub reduce_ops_task_splitting: Enable, pub prefer_external_images_over_es3: bool, pub disable_driver_correctness_workarounds: bool, pub runtime_program_cache_size: c_int, pub shader_cache_strategy: ShaderCacheStrategy, pub internal_multisample_count: c_int, pub max_cached_vulkan_secondary_command_buffers: c_int, pub suppress_mipmap_support: bool, pub enable_experimental_hardware_tessellation: bool, pub reduced_shader_variations: bool, pub allow_msaa_on_new_intel: bool, pub always_use_text_storage_when_available: bool, pub driver_bug_workarounds: DriverBugWorkarounds, /* private fields */
}

Fields§

§suppress_prints: bool§skip_gl_error_checks: Enable§max_texture_size_override: c_int§buffer_map_threshold: c_int§do_manual_mipmapping: bool§disable_coverage_counting_paths: bool§disable_distance_field_paths: bool§allow_path_mask_caching: bool§disable_gpu_yuv_conversion: bool§glyph_cache_texture_maximum_bytes: usize§min_distance_field_font_size: f32§glyphs_as_paths_font_size: f32§allow_multiple_glyph_cache_textures: Enable§avoid_stencil_buffers: bool§use_draw_instead_of_clear: Enable§reduce_ops_task_splitting: Enable§prefer_external_images_over_es3: bool§disable_driver_correctness_workarounds: bool§runtime_program_cache_size: c_int§shader_cache_strategy: ShaderCacheStrategy§internal_multisample_count: c_int§max_cached_vulkan_secondary_command_buffers: c_int§suppress_mipmap_support: bool§enable_experimental_hardware_tessellation: bool§reduced_shader_variations: bool§allow_msaa_on_new_intel: bool§always_use_text_storage_when_available: bool§driver_bug_workarounds: DriverBugWorkarounds

Implementations§

source§

impl ContextOptions

source

pub fn new() -> Self

Trait Implementations§

source§

impl Debug for ContextOptions

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ContextOptions

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Send for ContextOptions

source§

impl Sync for ContextOptions

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<N, T> NativeTransmutableWrapper<N> for Twhere T: NativeTransmutable<N>,

source§

fn wrap(native: N) -> T

source§

fn unwrap(self) -> N

source§

fn inner(&self) -> &N

source§

fn inner_mut(&mut self) -> &mut N

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.