Type Alias skia_safe::gpu::BackendRenderTarget

source ·
pub type BackendRenderTarget = Handle<GrBackendRenderTarget>;

Aliased Type§

struct BackendRenderTarget(/* private fields */);

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

👎Deprecated since 0.67.0: use gpu::backend_render_targets::make_gl()
source

pub fn new_vulkan((width, height): (i32, i32), info: &ImageInfo) -> Self

👎Deprecated since 0.67.0: use gpu::backend_render_targets::make_vk()
source

pub fn new_metal((width, height): (i32, i32), mtl_info: &TextureInfo) -> Self

👎Deprecated since 0.74.0: use gpu::backend_render_targets::make_mtl()
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 vulkan_image_info(&self) -> Option<ImageInfo>

source

pub fn set_vulkan_image_layout(&mut self, layout: ImageLayout) -> &mut Self

source

pub fn metal_texture_info(&self) -> Option<TextureInfo>

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: Exposed BackendRenderTargets are always 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