Struct makepad_widgets::shader::std::os::linux::opengl::CxOsTexture
pub struct CxOsTexture {
pub alloc_desc: TextureDesc,
pub width: u64,
pub height: u64,
pub gl_texture: Option<u32>,
pub gl_renderbuffer: Option<u32>,
pub dma_buf_exported_image: Option<Box<Image<OwnedFd>, Global>>,
}
Fields§
§alloc_desc: TextureDesc
§width: u64
§height: u64
§gl_texture: Option<u32>
§gl_renderbuffer: Option<u32>
§dma_buf_exported_image: Option<Box<Image<OwnedFd>, Global>>
Implementations§
§impl CxOsTexture
impl CxOsTexture
§impl CxOsTexture
impl CxOsTexture
pub fn update_platform_texture_image2d( &mut self, width: u32, height: u32, image_u32: &Vec<u32, Global> )
pub fn update_platform_render_target( &mut self, desc: &TextureDesc, default_size: DVec2, is_depth: bool ) -> bool
pub fn free_resources(&mut self)
Trait Implementations§
§impl Clone for CxOsTexture
impl Clone for CxOsTexture
§fn clone(&self) -> CxOsTexture
fn clone(&self) -> CxOsTexture
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 more§impl Default for CxOsTexture
impl Default for CxOsTexture
§fn default() -> CxOsTexture
fn default() -> CxOsTexture
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for CxOsTexture
impl Send for CxOsTexture
impl Sync for CxOsTexture
impl Unpin for CxOsTexture
impl UnwindSafe for CxOsTexture
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