Type Definition skia_safe::gpu::BackendRenderTarget

source ·
pub type BackendRenderTarget = Handle<GrBackendRenderTarget>;

Implementations§

source§

impl BackendRenderTarget

source

pub fn new_gl( (width, height): (i32, i32), sample_count: impl Into<Option<usize>>, stencil_bits: usize, info: FramebufferInfo ) -> Self

source

pub fn dimensions(&self) -> ISize

source

pub fn width(&self) -> i32

source

pub fn height(&self) -> i32

source

pub fn sample_count(&self) -> usize

source

pub fn stencil_bits(&self) -> usize

source

pub fn backend(&self) -> BackendAPI

source

pub fn is_framebuffer_only(&self) -> bool

source

pub fn gl_framebuffer_info(&self) -> Option<FramebufferInfo>

source

pub fn backend_format(&self) -> BackendFormat

source

pub fn set_mutable_state(&mut self, state: &MutableTextureState)

source

pub fn is_protected(&self) -> bool

source

pub fn is_valid(&self) -> bool

👎Deprecated since 0.37.0: BackendRenderTargets must be valid.

Trait Implementations§

source§

impl Debug for BackendRenderTarget

source§

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

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

impl Send for BackendRenderTarget

source§

impl Sync for BackendRenderTarget