Struct vulkanite::vk::structs::ImageCompressionControlEXT

source ·
#[repr(C)]
pub struct ImageCompressionControlEXT<'a> { pub flags: ImageCompressionFlagsEXT, pub compression_control_plane_count: u32, /* private fields */ }
Expand description

Fields§

§flags: ImageCompressionFlagsEXT§compression_control_plane_count: u32

Implementations§

source§

impl<'a> ImageCompressionControlEXT<'a>

source

pub fn flags(self, value: ImageCompressionFlagsEXT) -> Self

source

pub fn compression_control_plane_count(self, value: u32) -> Self

source

pub fn fixed_rate_flags( self, p_fixed_rate_flags: impl AsSlice<'a, ImageCompressionFixedRateFlagsEXT>, ) -> Self

source

pub fn get_fixed_rate_flags(&self) -> &'a [ImageCompressionFixedRateFlagsEXT]

source

pub fn push_next<T: ExtendingStructure<Self>>(self, ext: &'a mut T) -> Self

Trait Implementations§

source§

impl<'a> Default for ImageCompressionControlEXT<'a>

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<'a> ExtendableStructure for ImageCompressionControlEXT<'a>

source§

const STRUCTURE_TYPE: StructureType = StructureType::ImageCompressionControlEXT

source§

unsafe fn retrieve_next(&self) -> &Cell<*const Header>

source§

unsafe fn push_next_unchecked<T: ExtendableStructure>(&self, ext: &T)

Assuming the current structure chain is the following: Self -> Ext1 -> Ext2 -> Ext3 calling this function with Ext4 will result in: Self -> Ext4 -> Ext1 -> Ext2 -> Ext3 This function will never cause cycles in the structure chain This function is unsafe because it discards the lifetime (ExtendableStructure does not have a lifetime parameter) Also it does not check that T is a valid extension to be added to Self and only requires references (and not mutable references)
source§

fn new_uninit() -> MaybeUninit<Self>

Return a unitialized structure except the structure type being correctly set and the p_next pointer being set to null
source§

impl<'a, 'b> ExtendingStructure<ImageCreateInfo<'b>> for ImageCompressionControlEXT<'a>

source§

impl<'a, 'b> ExtendingStructure<PhysicalDeviceImageFormatInfo2<'b>> for ImageCompressionControlEXT<'a>

source§

impl<'a, 'b> ExtendingStructure<SwapchainCreateInfoKHR<'b>> for ImageCompressionControlEXT<'a>

source§

impl<'a> Send for ImageCompressionControlEXT<'a>

source§

impl<'a> Sync for ImageCompressionControlEXT<'a>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<H> StructureChainOut<H> for H

source§

fn setup_uninit(chain: &mut MaybeUninit<H>)

Setup an uninitialized structure chain After this call, for the structure chain to be initialized, each structure field (with the exception of the structure type and the p_next pointer) must be initialized (usually by calling the appropriate vulkan command) The structure type and p_next pointer of each struct are set so that a vulkan commands sees a pointer to the head as a valid chain containing all structures Calling setup_uninit should be enough to then call a vulkan command filling this structure chain, moreover after the call to this vulkan command, the whole structure chain should be considered initialized
source§

fn get_uninit_head_ptr(chain: *mut H) -> *mut H

Return a mutable pointer to the head structure, which can then be passed to vulkan commands
source§

fn setup_cleanup(_: *mut H)

Function to call after a vulkan function initialized this structure to make sure there is no dangling pointer or anything which could cause undefined behavior
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> Alias<T> for T

source§

impl<T> ExtendingStructure<T> for T