Type Alias freya_engine::prelude::RecordingContext
pub type RecordingContext = RCHandle<GrRecordingContext>;
Aliased Type§
struct RecordingContext(/* private fields */);
Implementations§
§impl RCHandle<GrRecordingContext>
impl RCHandle<GrRecordingContext>
pub fn as_direct_context(&mut self) -> Option<RCHandle<GrDirectContext>>
pub fn backend(&self) -> GrBackendApi
pub fn default_backend_format( &self, ct: ColorType, renderable: skgpu_Renderable ) -> Handle<GrBackendFormat>
pub fn compressed_backend_format( &self, compression_type: SkTextureCompressionType ) -> Handle<GrBackendFormat>
pub fn abandoned(&mut self) -> bool
pub fn color_type_supported_as_surface(&self, color_type: ColorType) -> bool
pub fn max_texture_size(&self) -> i32
pub fn max_render_target_size(&self) -> i32
pub fn color_type_supported_as_image(&self, color_type: ColorType) -> bool
pub fn supports_protected_content(&self) -> bool
pub fn max_surface_sample_count_for_color_type( &self, color_type: ColorType ) -> usize
Trait Implementations§
§impl<H> ConditionallySend for RCHandle<H>where
H: NativeRefCountedBase,
impl<H> ConditionallySend for RCHandle<H>where H: NativeRefCountedBase,
RCHandle<H>
is conditionally Send and can be sent to
another thread when its reference count is 1.
§impl<N> Flattenable for RCHandle<N>where
N: NativeFlattenable + NativeRefCountedBase,
impl<N> Flattenable for RCHandle<N>where N: NativeFlattenable + NativeRefCountedBase,
§impl<N> From<&RCHandle<N>> for RCHandle<N>where
N: NativeRefCounted,
impl<N> From<&RCHandle<N>> for RCHandle<N>where N: NativeRefCounted,
A reference counted handle is cheap to clone, so we do support a conversion from a reference to a ref counter to an owned handle.