[−][src]Struct vulkayes_core::resource::image::image::Image
Implementations
impl Image
[src]
pub fn new<A: ImageMemoryAllocator>(
device: Vrc<Device>,
format: Format,
size_info: ImageSizeInfo,
tiling_and_layout: ImageTilingAndLayout,
usage: ImageUsageFlags,
sharing_mode: SharingMode<impl AsRef<[u32]>>,
allocator_param: ImageAllocatorParams<'_, A>,
host_memory_allocator: HostMemoryAllocator
) -> Result<Vrc<Self>, ImageError<A::Error>>
[src]
device: Vrc<Device>,
format: Format,
size_info: ImageSizeInfo,
tiling_and_layout: ImageTilingAndLayout,
usage: ImageUsageFlags,
sharing_mode: SharingMode<impl AsRef<[u32]>>,
allocator_param: ImageAllocatorParams<'_, A>,
host_memory_allocator: HostMemoryAllocator
) -> Result<Vrc<Self>, ImageError<A::Error>>
pub unsafe fn from_create_info<A: ImageMemoryAllocator>(
device: Vrc<Device>,
create_info: impl Deref<Target = ImageCreateInfo>,
allocator_params: ImageAllocatorParams<'_, A>,
host_memory_allocator: HostMemoryAllocator
) -> Result<Vrc<Self>, ImageError<A::Error>>
[src]
device: Vrc<Device>,
create_info: impl Deref<Target = ImageCreateInfo>,
allocator_params: ImageAllocatorParams<'_, A>,
host_memory_allocator: HostMemoryAllocator
) -> Result<Vrc<Self>, ImageError<A::Error>>
Creates a new Image
from existing ImageCreateInfo
Safety
See https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkCreateImage.html.
pub unsafe fn from_existing(
device: Vrc<Device>,
image: Image,
memory: Option<DeviceMemoryAllocation>,
usage: ImageUsageFlags,
format: Format,
size: ImageSize,
host_memory_allocator: HostMemoryAllocator
) -> Self
[src]
device: Vrc<Device>,
image: Image,
memory: Option<DeviceMemoryAllocation>,
usage: ImageUsageFlags,
format: Format,
size: ImageSize,
host_memory_allocator: HostMemoryAllocator
) -> Self
Crates a new Image
from existing VkImage
.
Safety
image
must have been crated from thedevice
.memory
must have been allocated from thedevice
.- All parameters must match the parameters used when creating the image.
pub const fn device(&self) -> &Vrc<Device>
[src]
pub const fn usage(&self) -> ImageUsageFlags
[src]
pub const fn size(&self) -> ImageSize
[src]
pub const fn format(&self) -> Format
[src]
pub fn memory(&self) -> Option<&DeviceMemoryAllocation>
[src]
Methods from Deref<Target = Image>
Trait Implementations
impl Borrow<Image> for Image
[src]
impl Debug for Image
[src]
impl Deref for Image
[src]
impl Drop for Image
[src]
impl Eq for Image
[src]
impl HasHandle<Image> for Image
[src]
fn handle(&self) -> T
[src]
fn safe_handle(&self) -> SafeHandle<'_, T>
[src]
impl Hash for Image
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Image
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<Image> for Image
[src]
impl PartialOrd<Image> for Image
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Image
[src]
impl !Send for Image
[src]
impl !Sync for Image
[src]
impl Unpin for Image
[src]
impl !UnwindSafe for Image
[src]
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,
pub 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, 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.
pub 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>,