#[repr(C)]
pub struct GrContextOptions {
Show 35 fields pub fSuppressPrints: bool, pub fSkipGLErrorChecks: GrContextOptions_Enable, pub fMaxTextureSizeOverride: c_int, pub fBufferMapThreshold: c_int, pub fExecutor: *mut SkExecutor, pub fDoManualMipmapping: bool, pub fDisableCoverageCountingPaths: bool, pub fDisableDistanceFieldPaths: bool, pub fAllowPathMaskCaching: bool, pub fDisableGpuYUVConversion: bool, pub fGlyphCacheTextureMaximumBytes: usize, pub fMinDistanceFieldFontSize: f32, pub fGlyphsAsPathsFontSize: f32, pub fAllowMultipleGlyphCacheTextures: GrContextOptions_Enable, pub fAvoidStencilBuffers: bool, pub fUseDrawInsteadOfClear: GrContextOptions_Enable, pub fReduceOpsTaskSplitting: GrContextOptions_Enable, pub fPreferExternalImagesOverES3: bool, pub fDisableDriverCorrectnessWorkarounds: bool, pub fRuntimeProgramCacheSize: c_int, pub fPersistentCache: *mut GrContextOptions_PersistentCache, pub fShaderCacheStrategy: GrContextOptions_ShaderCacheStrategy, pub fShaderErrorHandler: *mut GrContextOptions_ShaderErrorHandler, pub fInternalMultisampleCount: c_int, pub fMaxCachedVulkanSecondaryCommandBuffers: c_int, pub fSuppressMipmapSupport: bool, pub fDisableTessellationPathRenderer: bool, pub fEnableExperimentalHardwareTessellation: bool, pub fSupportBilerpFromGlyphAtlas: bool, pub fReducedShaderVariations: bool, pub fAllowMSAAOnNewIntel: bool, pub fAlwaysUseTexStorageWhenAvailable: bool, pub fContextDeleteContext: GrDirectContextDestroyedContext, pub fContextDeleteProc: GrDirectContextDestroyedProc, pub fDriverBugWorkarounds: GrDriverBugWorkarounds,
}

Fields§

§fSuppressPrints: bool§fSkipGLErrorChecks: GrContextOptions_Enable§fMaxTextureSizeOverride: c_int§fBufferMapThreshold: c_int§fExecutor: *mut SkExecutor§fDoManualMipmapping: bool§fDisableCoverageCountingPaths: bool§fDisableDistanceFieldPaths: bool§fAllowPathMaskCaching: bool§fDisableGpuYUVConversion: bool§fGlyphCacheTextureMaximumBytes: usize§fMinDistanceFieldFontSize: f32§fGlyphsAsPathsFontSize: f32§fAllowMultipleGlyphCacheTextures: GrContextOptions_Enable§fAvoidStencilBuffers: bool§fUseDrawInsteadOfClear: GrContextOptions_Enable§fReduceOpsTaskSplitting: GrContextOptions_Enable§fPreferExternalImagesOverES3: bool§fDisableDriverCorrectnessWorkarounds: bool§fRuntimeProgramCacheSize: c_int§fPersistentCache: *mut GrContextOptions_PersistentCache§fShaderCacheStrategy: GrContextOptions_ShaderCacheStrategy§fShaderErrorHandler: *mut GrContextOptions_ShaderErrorHandler§fInternalMultisampleCount: c_int§fMaxCachedVulkanSecondaryCommandBuffers: c_int§fSuppressMipmapSupport: bool§fDisableTessellationPathRenderer: bool§fEnableExperimentalHardwareTessellation: bool§fSupportBilerpFromGlyphAtlas: bool§fReducedShaderVariations: bool§fAllowMSAAOnNewIntel: bool§fAlwaysUseTexStorageWhenAvailable: bool§fContextDeleteContext: GrDirectContextDestroyedContext§fContextDeleteProc: GrDirectContextDestroyedProc§fDriverBugWorkarounds: GrDriverBugWorkarounds

Trait Implementations§

source§

impl Debug for GrContextOptions

source§

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

Formats the value using the given formatter. Read more

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<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.