Type Alias BackendTexture

pub type BackendTexture = RefHandle<GrBackendTexture>;

Aliased Type§

struct BackendTexture(/* private fields */);

Implementations

§

impl RefHandle<GrBackendTexture>

pub unsafe fn new_gl( _: (i32, i32), mipmapped: skgpu_Mipmapped, gl_info: TextureInfo, ) -> RefHandle<GrBackendTexture>

👎Deprecated since 0.67.0: use gpu::backend_textures::make_gl()

pub unsafe fn new_gl_with_label( _: (i32, i32), mipmapped: skgpu_Mipmapped, gl_info: TextureInfo, label: impl AsRef<str>, ) -> RefHandle<GrBackendTexture>

👎Deprecated since 0.67.0: use gpu::backend_textures::make_gl()

pub fn dimensions(&self) -> ISize

pub fn width(&self) -> i32

pub fn height(&self) -> i32

pub fn label(&self) -> &str

pub fn mipmapped(&self) -> skgpu_Mipmapped

pub fn has_mip_maps(&self) -> bool

👎Deprecated since 0.35.0: Use has_mipmaps()

pub fn has_mipmaps(&self) -> bool

pub fn backend(&self) -> GrBackendApi

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

pub fn gl_texture_parameters_modified(&mut self)

pub fn backend_format(&self) -> Handle<GrBackendFormat>

pub fn set_mutable_state(&mut self, state: &RCHandle<skgpu_MutableTextureState>)

pub fn is_protected(&self) -> bool

pub fn is_valid(&self) -> bool

👎Deprecated since 0.37.0: Invalid BackendTextures aren’t supported

pub fn is_same_texture(&mut self, texture: &RefHandle<GrBackendTexture>) -> bool

Trait Implementations

§

impl Clone for RefHandle<GrBackendTexture>

§

fn clone(&self) -> RefHandle<GrBackendTexture>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for RefHandle<GrBackendTexture>

§

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

Formats the value using the given formatter. Read more
§

impl<N> Drop for RefHandle<N>
where N: NativeDrop,

§

fn drop(&mut self)

Executes the destructor for this type. Read more
§

impl<N> PartialEq for RefHandle<N>
where N: NativeDrop + NativePartialEq,

§

fn eq(&self, rhs: &RefHandle<N>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl<N> PointerWrapper<N> for RefHandle<N>
where N: NativeDrop,

§

fn wrap(ptr: *mut N) -> Option<RefHandle<N>>

Wraps a native pointer into a wrapper type. Returns None if the pointer is null.
§

fn unwrap(self) -> *mut N

Unwraps the wrapper type into the native pointer.
§

fn inner(&self) -> &N

Access the wrapped pointer.
§

fn inner_mut(&mut self) -> &mut N

Access the wrapped pointer.
§

impl<T> RunIterator for RefHandle<T>
where T: NativeDrop + NativeBase<SkShaper_RunIterator>,

§

fn consume(&mut self)

§

fn end_of_current_run(&self) -> usize

§

fn at_end(&self) -> bool

§

impl Send for RefHandle<GrBackendTexture>

§

impl Sync for RefHandle<GrBackendTexture>