GRContextOptions Struct

Definition

Represents the collection of options for the construction of a context.

public struct GRContextOptions
Inheritance
GRContextOptions

Properties

AllowPathMaskCaching

Gets or sets a value indicating whether to allow path mask textures to be cached.

AvoidStencilBuffers

Gets or sets a value indicating whether to avoid allocating stencil buffers.

BufferMapThreshold

Gets or sets the threshold, in bytes, above which a buffer mapping API will be used to map vertex and index buffers to CPU memory in order to update them.

ClipBatchToBounds

Gets or sets a value indicating whether to turn each batch bounds into a clip rect.

ClipDrawOpsToBounds

Gets or sets a value indicating whether to turn each draw operation's bounds into a clip rectangle.

Default

Gets a new instance with the values set to the defaults.

DisableDistanceFieldPaths

Gets or sets a value indicating whether to disable distance field rendering for paths.

DisableGpuYuvConversion

Gets or sets a value indicating whether the GPU will be used to perform YUV -> RGB conversion when generating textures from codec-backed images.

DoManualMipmapping

Gets or sets a value indicating whether to construct mipmaps manually, via repeated downsampling draw-calls.

DrawBatchBounds

Gets or sets a value indicating whether to draw a wireframe device bounds rectangle for each batch.

EnableInstancedRendering

Gets or sets a value indicating whether to enable instanced rendering as long as all required functionality is supported by the hardware.

ForceSoftwarePathMasks
ForceSWPathMasks

Gets or sets a value indicating whether to force all path draws to go through through the software-rasterize-to-texture code path.

GlyphCacheTextureMaximumBytes

Gets or sets the maximum size of cache textures used for the SkiaSharp Glyph cache.

GpuPathRenderers

Gets or sets the GPU path renderers.

ImmediateMode

Gets or sets a value indicating whether the context operates in immediate mode.

MaxBatchLookahead

Gets or sets a value overriding the default maximum look-ahead window for batch combing.

MaxBatchLookback

Gets or sets a value overriding the default maximum look-back window for batch combing.

MaxOpCombineLookahead

Gets or sets a value overriding the default maximum look-ahead window for operation combing.

MaxOpCombineLookback

Gets or sets a value overriding the default maximum look-back window for operation combing.

MaxTextureSizeOverride

Gets or sets the maximum size of a texture.

MaxTileSizeOverride

Gets or sets the maximum size (if non-zero) of a tile for software-backed images and bitmaps rendered by the device.

RequireDecodeDisableForSrgb

Gets or sets a value indicating whether sRGB support will be disabled if sRGB decoding cannot be enabled.

SuppressDualSourceBlending

Gets or sets a value indicating whether to suppress dual source blending.

SuppressPathRendering

Gets or sets a value indicating whether the caps will never report driver support for path rendering.

SuppressPrints

Gets or sets a value indicating whether to suppress prints for the GRContext.

UseDrawInsteadOfPartialRenderTargetWrite

Gets or sets a value indicating whether to avoid partial writes.

UseShaderSwizzling

Gets or sets a value indicating whether to do all swizzling manually in the shader and don't rely on extensions to do swizzling.

WireframeMode

Gets or sets a value indicating whether to render everything in wireframe.

Applies to