RenderingInfo

Struct RenderingInfo 

Source
pub struct RenderingInfo<'a> {
    pub flags: RenderingFlags,
    pub render_area: Rect2D,
    pub layer_count: u32,
    pub view_mask: u32,
    pub p_depth_attachment: *const RenderingAttachmentInfo<'a>,
    pub p_stencil_attachment: *const RenderingAttachmentInfo<'a>,
    /* private fields */
}
Expand description

Fields§

§flags: RenderingFlags§render_area: Rect2D§layer_count: u32§view_mask: u32§p_depth_attachment: *const RenderingAttachmentInfo<'a>§p_stencil_attachment: *const RenderingAttachmentInfo<'a>

Implementations§

Source§

impl<'a> RenderingInfo<'a>

Source

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

Source

pub fn render_area(self, value: Rect2D) -> Self

Source

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

Source

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

Source

pub fn depth_attachment( self, value: Option<&'a RenderingAttachmentInfo<'a>>, ) -> Self

Source

pub fn stencil_attachment( self, value: Option<&'a RenderingAttachmentInfo<'a>>, ) -> Self

Source

pub fn color_attachments( self, p_color_attachments: impl AsSlice<'a, RenderingAttachmentInfo<'a>>, ) -> Self

Source

pub fn get_color_attachments(&self) -> &'a [RenderingAttachmentInfo<'a>]

Source

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

Trait Implementations§

Source§

impl<'a> Default for RenderingInfo<'a>

Available on crate feature ext_dynamic_rendering, or crate feature ext_tile_properties and (crate features ext_dynamic_rendering or version_1_3), or crate feature version_1_3 only.
Source§

fn default() -> Self

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

impl<'a> ExtendableStructure for RenderingInfo<'a>

Available on crate feature ext_dynamic_rendering, or crate feature ext_tile_properties and (crate features ext_dynamic_rendering or version_1_3), or crate feature version_1_3 only.
Source§

const STRUCTURE_TYPE: StructureType = StructureType::RenderingInfo

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> ExtendableStructureBase for RenderingInfo<'a>

Available on crate feature ext_dynamic_rendering, or crate feature ext_tile_properties and (crate features ext_dynamic_rendering or version_1_3), or crate feature version_1_3 only.
Source§

impl<'a, 'b> ExtendingStructure<RenderingInfo<'b>> for DeviceGroupRenderPassBeginInfo<'a>

Available on (crate features ext_device_group or version_1_1) and (crate feature ext_dynamic_rendering, or crate feature ext_tile_properties and (crate features ext_dynamic_rendering or version_1_3), or crate feature version_1_3) only.
Source§

impl<'a, 'b> ExtendingStructure<RenderingInfo<'b>> for MultisampledRenderToSingleSampledInfoEXT<'a>

Available on crate feature ext_multisampled_render_to_single_sampled and (crate feature ext_dynamic_rendering, or crate feature ext_tile_properties and (crate features ext_dynamic_rendering or version_1_3), or crate feature version_1_3) only.
Source§

impl<'a, 'b> ExtendingStructure<RenderingInfo<'b>> for MultiviewPerViewAttributesInfoNVX<'a>

Available on crate feature ext_multiview_per_view_attributes and (crate features version_1_3 or ext_dynamic_rendering) and (crate feature ext_dynamic_rendering, or crate feature ext_tile_properties and (crate features ext_dynamic_rendering or version_1_3), or crate feature version_1_3) only.
Source§

impl<'a, 'b> ExtendingStructure<RenderingInfo<'b>> for MultiviewPerViewRenderAreasRenderPassBeginInfoQCOM<'a>

Available on crate feature ext_multiview_per_view_render_areas and (crate feature ext_dynamic_rendering, or crate feature ext_tile_properties and (crate features ext_dynamic_rendering or version_1_3), or crate feature version_1_3) only.
Source§

impl<'a, 'b> ExtendingStructure<RenderingInfo<'b>> for RenderPassStripeBeginInfoARM<'a>

Available on crate feature ext_render_pass_striped and (crate feature ext_dynamic_rendering, or crate feature ext_tile_properties and (crate features ext_dynamic_rendering or version_1_3), or crate feature version_1_3) only.
Source§

impl<'a, 'b> ExtendingStructure<RenderingInfo<'b>> for RenderPassTileShadingCreateInfoQCOM<'a>

Available on crate feature ext_tile_shading and (crate feature ext_dynamic_rendering, or crate feature ext_tile_properties and (crate features ext_dynamic_rendering or version_1_3), or crate feature version_1_3) only.
Source§

impl<'a, 'b> ExtendingStructure<RenderingInfo<'b>> for RenderingFragmentDensityMapAttachmentInfoEXT<'a>

Available on crate feature ext_fragment_density_map and (crate features version_1_3 or ext_dynamic_rendering) and (crate feature ext_dynamic_rendering, or crate feature ext_tile_properties and (crate features ext_dynamic_rendering or version_1_3), or crate feature version_1_3) only.
Source§

impl<'a, 'b> ExtendingStructure<RenderingInfo<'b>> for RenderingFragmentShadingRateAttachmentInfoKHR<'a>

Available on crate feature ext_fragment_shading_rate and (crate features version_1_3 or ext_dynamic_rendering) and (crate feature ext_dynamic_rendering, or crate feature ext_tile_properties and (crate features ext_dynamic_rendering or version_1_3), or crate feature version_1_3) only.
Source§

impl<'a, 'b> ExtendingStructure<RenderingInfo<'b>> for TileMemorySizeInfoQCOM<'a>

Available on crate feature ext_tile_memory_heap and crate feature ext_tile_properties and (crate feature ext_dynamic_rendering, or crate feature ext_tile_properties and (crate features ext_dynamic_rendering or version_1_3), or crate feature version_1_3) only.
Source§

impl<'a> Send for RenderingInfo<'a>

Available on crate feature ext_dynamic_rendering, or crate feature ext_tile_properties and (crate features ext_dynamic_rendering or version_1_3), or crate feature version_1_3 only.
Source§

impl<'a> Sync for RenderingInfo<'a>

Available on crate feature ext_dynamic_rendering, or crate feature ext_tile_properties and (crate features ext_dynamic_rendering or version_1_3), or crate feature version_1_3 only.

Auto Trait Implementations§

§

impl<'a> !Freeze for RenderingInfo<'a>

§

impl<'a> !RefUnwindSafe for RenderingInfo<'a>

§

impl<'a> Unpin for RenderingInfo<'a>

§

impl<'a> !UnwindSafe for RenderingInfo<'a>

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>,

Source§

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>,

Source§

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