skia_safe::gpu::ganesh

Type Alias 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