[−][src]Struct bedrock::resources::Image
Opaque handle to a image object(constructed via ImageDesc
)
Methods
impl Image
[src]
pub fn format(&self) -> VkFormat
[src]
The pixel format of an image
pub fn size(&self) -> &Extent3D
[src]
The size of an image
impl Image
[src]
Following methods are enabled with [feature = "Implements"]
pub fn create_view(
&self,
format: Option<VkFormat>,
vtype: Option<VkImageViewType>,
cmap: &ComponentMapping,
subresource_range: &ImageSubresourceRange
) -> Result<ImageView>
[src]
&self,
format: Option<VkFormat>,
vtype: Option<VkImageViewType>,
cmap: &ComponentMapping,
subresource_range: &ImageSubresourceRange
) -> Result<ImageView>
Create an image view
pub fn image_subresource_layout(
&self,
subres_aspect: AspectMask,
subres_mip_level: u32,
subres_array_layer: u32
) -> VkSubresourceLayout
[src]
&self,
subres_aspect: AspectMask,
subres_mip_level: u32,
subres_array_layer: u32
) -> VkSubresourceLayout
Retrieve information about an image subresource
Subresource: (aspect
, mipLevel
, arrayLayer
)
impl Image
[src]
Following methods are enabled with [feature = "Implements"]
pub fn sparse_requirements(&self) -> Vec<VkSparseImageMemoryRequirements>
[src]
Query the memory requirements for a sparse image
Trait Implementations
impl Clone for Image
[src]
impl DeviceChild for Image
[src]
impl MemoryBound for Image
[src]
fn requirements(&self) -> VkMemoryRequirements
[src]
fn bind(&self, memory: &DeviceMemory, offset: usize) -> Result<()>
[src]
impl VkHandle for Image
[src]
type Handle = VkImage
fn native_ptr(&self) -> VkImage
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Image
impl !Send for Image
impl !Sync for Image
impl Unpin for Image
impl !UnwindSafe for Image
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,