pub struct ImportParameters {
pub dedicated_memory: bool,
pub size: u64,
pub offset: u64,
pub tiling: ExternalTilingMode,
}Expand description
Contains parameters needed to import a texture created in an external API into OpenGL. Must match with parameters used by external memory.
Fields§
§dedicated_memory: boolDescribes whether this memory was created as “dedicated” by the external API.
size: u64Size of the memory object in bytes.
offset: u64Offset of the memory object in bytes.
tiling: ExternalTilingModeTiling mode used in the memory object.
Auto Trait Implementations§
impl Freeze for ImportParameters
impl RefUnwindSafe for ImportParameters
impl Send for ImportParameters
impl Sync for ImportParameters
impl Unpin for ImportParameters
impl UnwindSafe for ImportParameters
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