Struct core_video::metal_texture::CVMetalTexture
source · pub struct CVMetalTexture(/* private fields */);Implementations§
source§impl CVMetalTexture
impl CVMetalTexture
pub fn get_texture(&self) -> Option<Texture>
pub fn is_flipped(&self) -> bool
pub fn get_clean_tex_coords(&self) -> (f32, f32, f32, f32)
Trait Implementations§
source§impl Clone for CVMetalTexture
impl Clone for CVMetalTexture
source§fn clone(&self) -> CVMetalTexture
fn clone(&self) -> CVMetalTexture
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for CVMetalTexture
impl Debug for CVMetalTexture
source§impl Drop for CVMetalTexture
impl Drop for CVMetalTexture
source§impl PartialEq for CVMetalTexture
impl PartialEq for CVMetalTexture
source§fn eq(&self, other: &CVMetalTexture) -> bool
fn eq(&self, other: &CVMetalTexture) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TCFType for CVMetalTexture
impl TCFType for CVMetalTexture
§type Ref = *mut __CVBuffer
type Ref = *mut __CVBuffer
The reference type wrapped inside this type.
source§fn as_concrete_TypeRef(&self) -> CVMetalTextureRef
fn as_concrete_TypeRef(&self) -> CVMetalTextureRef
Returns the object as its concrete
TypeRef.source§unsafe fn wrap_under_get_rule(reference: CVMetalTextureRef) -> Self
unsafe fn wrap_under_get_rule(reference: CVMetalTextureRef) -> Self
Returns an instance of the object, wrapping the underlying
CFTypeRef subclass. Use this
when following Core Foundation’s “Get Rule”. The reference count is bumped.source§fn as_CFTypeRef(&self) -> CFTypeRef
fn as_CFTypeRef(&self) -> CFTypeRef
Returns the object as a raw
CFTypeRef. The reference count is not adjusted.source§unsafe fn wrap_under_create_rule(reference: CVMetalTextureRef) -> Self
unsafe fn wrap_under_create_rule(reference: CVMetalTextureRef) -> Self
Returns an instance of the object, wrapping the underlying
CFTypeRef subclass. Use this
when following Core Foundation’s “Create Rule”. The reference count is not bumped.source§fn as_CFType(&self) -> CFType
fn as_CFType(&self) -> CFType
Returns the object as a wrapped
CFType. The reference count is incremented by one.source§fn into_CFType(self) -> CFTypewhere
Self: Sized,
fn into_CFType(self) -> CFTypewhere
Self: Sized,
Returns the object as a wrapped
CFType. Consumes self and avoids changing the reference
count.source§fn retain_count(&self) -> isize
fn retain_count(&self) -> isize
Returns the reference count of the object. It is unwise to do anything other than test
whether the return value of this method is greater than zero.
source§fn instance_of<OtherCFType>(&self) -> boolwhere
OtherCFType: TCFType,
fn instance_of<OtherCFType>(&self) -> boolwhere
OtherCFType: TCFType,
Returns
true if this value is an instance of another type.source§impl TCVBuffer for CVMetalTexture
impl TCVBuffer for CVMetalTexture
source§impl TCVImageBuffer for CVMetalTexture
impl TCVImageBuffer for CVMetalTexture
fn as_image_buffer(&self) -> CVImageBuffer
fn into_image_buffer(self) -> CVImageBufferwhere
Self: Sized,
source§impl<'a> ToVoid<CVMetalTexture> for &'a CVMetalTexture
impl<'a> ToVoid<CVMetalTexture> for &'a CVMetalTexture
source§impl ToVoid<CVMetalTexture> for CVMetalTextureRef
impl ToVoid<CVMetalTexture> for CVMetalTextureRef
source§impl ToVoid<CVMetalTexture> for CVMetalTexture
impl ToVoid<CVMetalTexture> for CVMetalTexture
impl ConcreteCFType for CVMetalTexture
impl Eq for CVMetalTexture
Auto Trait Implementations§
impl Freeze for CVMetalTexture
impl RefUnwindSafe for CVMetalTexture
impl !Send for CVMetalTexture
impl !Sync for CVMetalTexture
impl Unpin for CVMetalTexture
impl UnwindSafe for CVMetalTexture
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more