pub struct GpuImageHandle {
pub id: GpuImageId,
pub format: GpuFormat,
pub width: u32,
pub height: u32,
pub location: GpuMemoryLocation,
pub usage: GpuUsage,
pub label: Option<String>,
/* private fields */
}Expand description
Opaque image/texture handle (no backend types).
use daedalus_gpu::{GpuImageHandle, GpuFormat, GpuMemoryLocation, GpuUsage};
let handle = GpuImageHandle::new(GpuFormat::Rgba8Unorm, 8, 8, GpuMemoryLocation::Gpu, GpuUsage::STORAGE);
assert_eq!(handle.width, 8);Fields§
§id: GpuImageId§format: GpuFormat§width: u32§height: u32§location: GpuMemoryLocation§usage: GpuUsage§label: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for GpuImageHandle
impl Clone for GpuImageHandle
Source§fn clone(&self) -> GpuImageHandle
fn clone(&self) -> GpuImageHandle
Returns a duplicate 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 GpuImageHandle
impl Debug for GpuImageHandle
Source§impl<'de> Deserialize<'de> for GpuImageHandle
impl<'de> Deserialize<'de> for GpuImageHandle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Drop for GpuImageHandle
impl Drop for GpuImageHandle
Source§impl PartialEq for GpuImageHandle
impl PartialEq for GpuImageHandle
Source§impl Serialize for GpuImageHandle
impl Serialize for GpuImageHandle
impl Eq for GpuImageHandle
Auto Trait Implementations§
impl Freeze for GpuImageHandle
impl !RefUnwindSafe for GpuImageHandle
impl Send for GpuImageHandle
impl Sync for GpuImageHandle
impl Unpin for GpuImageHandle
impl !UnwindSafe for GpuImageHandle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more