Struct rutabaga_gfx::rutabaga_core::RutabagaResource
source · pub struct RutabagaResource {Show 13 fields
pub resource_id: u32,
pub handle: Option<Arc<RutabagaHandle>>,
pub blob: bool,
pub blob_mem: u32,
pub blob_flags: u32,
pub map_info: Option<u32>,
pub info_2d: Option<Rutabaga2DInfo>,
pub info_3d: Option<Resource3DInfo>,
pub vulkan_info: Option<VulkanInfo>,
pub backing_iovecs: Option<Vec<RutabagaIovec>>,
pub component_mask: u8,
pub size: u64,
pub mapping: Option<MemoryMapping>,
}
Expand description
A Rutabaga resource, supporting 2D and 3D rutabaga features. Assumes a single-threaded library.
Fields§
§resource_id: u32
§handle: Option<Arc<RutabagaHandle>>
§blob: bool
§blob_mem: u32
§blob_flags: u32
§map_info: Option<u32>
§info_2d: Option<Rutabaga2DInfo>
§info_3d: Option<Resource3DInfo>
§vulkan_info: Option<VulkanInfo>
§backing_iovecs: Option<Vec<RutabagaIovec>>
§component_mask: u8
Bitmask of components that have already imported this resource
size: u64
§mapping: Option<MemoryMapping>
Trait Implementations§
source§impl TryFrom<&RutabagaResource> for RutabagaResourceSnapshot
impl TryFrom<&RutabagaResource> for RutabagaResourceSnapshot
§type Error = RutabagaError
type Error = RutabagaError
The type returned in the event of a conversion error.
source§impl TryFrom<RutabagaResourceSnapshot> for RutabagaResource
impl TryFrom<RutabagaResourceSnapshot> for RutabagaResource
§type Error = RutabagaError
type Error = RutabagaError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl RefUnwindSafe for RutabagaResource
impl !Send for RutabagaResource
impl !Sync for RutabagaResource
impl Unpin for RutabagaResource
impl UnwindSafe for RutabagaResource
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