Struct skia_bindings::GrBackendFormat
source · #[repr(C)]pub struct GrBackendFormat {
pub fBackend: GrBackendApi,
pub fValid: bool,
pub __bindgen_anon_1: GrBackendFormat__bindgen_ty_1,
pub fTextureType: GrTextureType,
}
Fields§
§fBackend: GrBackendApi
§fValid: bool
§__bindgen_anon_1: GrBackendFormat__bindgen_ty_1
§fTextureType: GrTextureType
Implementations§
source§impl GrBackendFormat
impl GrBackendFormat
pub unsafe fn MakeMock( colorType: GrColorType, compression: SkTextureCompressionType, isStencilFormat: bool ) -> GrBackendFormat
pub unsafe fn channelMask(&self) -> u32
pub unsafe fn desc(&self) -> GrColorFormatDesc
pub unsafe fn asGLFormat(&self) -> GrGLFormat
pub unsafe fn asGLFormatEnum(&self) -> GrGLenum
pub unsafe fn asMockColorType(&self) -> GrColorType
pub unsafe fn asMockCompressionType(&self) -> SkTextureCompressionType
pub unsafe fn isMockStencilFormat(&self) -> bool
pub unsafe fn makeTexture2D(&self) -> GrBackendFormat
pub unsafe fn new(arg1: *const GrBackendFormat) -> Self
Trait Implementations§
source§impl Clone for GrBackendFormat
impl Clone for GrBackendFormat
source§fn clone(&self) -> GrBackendFormat
fn clone(&self) -> GrBackendFormat
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 moreimpl Copy for GrBackendFormat
Auto Trait Implementations§
impl RefUnwindSafe for GrBackendFormat
impl Send for GrBackendFormat
impl Sync for GrBackendFormat
impl Unpin for GrBackendFormat
impl UnwindSafe for GrBackendFormat
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