Skip to main content

DescriptorSetLayoutCreateInfo

Struct DescriptorSetLayoutCreateInfo 

Source
#[repr(C)]
pub struct DescriptorSetLayoutCreateInfo<'a> { pub s_type: StructureType, pub p_next: *const void, pub flags: DescriptorSetLayoutCreateFlags, pub binding_count: uint32_t, pub p_bindings: *const DescriptorSetLayoutBinding<'a>, }
Expand description

VkDescriptorSetLayoutCreateInfo

Fields§

§s_type: StructureType
VkStructureType sType

Value: StructureType::DescriptorSetLayoutCreateInfo

§p_next: *const void
void const* pNext

Optional

§flags: DescriptorSetLayoutCreateFlags
VkDescriptorSetLayoutCreateFlags flags

Optional

§binding_count: uint32_t

Number of bindings in the descriptor set layout

uint32_t bindingCount

Optional

§p_bindings: *const DescriptorSetLayoutBinding<'a>

Array of descriptor set layout bindings

VkDescriptorSetLayoutBinding const* pBindings

Length by: DescriptorSetLayoutCreateInfo::binding_count (bindingCount)

Implementations§

Source§

impl<'a> DescriptorSetLayoutCreateInfo<'a>

Source

pub fn new(new: DescriptorSetLayoutCreateInfo<'a>) -> Self

Create the DescriptorSetLayoutCreateInfo with required fields

Source§

impl<'a> DescriptorSetLayoutCreateInfo<'a>

Source

pub fn flags(self, flags: DescriptorSetLayoutCreateFlags) -> Self

VkDescriptorSetLayoutCreateFlags flags

Optional

Source

pub fn binding_count(self, binding_count: uint32_t) -> Self

Number of bindings in the descriptor set layout

uint32_t bindingCount

Optional

Source

pub fn bindings(self, bindings: &'a [DescriptorSetLayoutBinding<'a>]) -> Self

Array of descriptor set layout bindings

VkDescriptorSetLayoutBinding const* pBindings

Length by: vk::DescriptorSetLayoutCreateInfo::binding_count (bindingCount)

Trait Implementations§

Source§

impl<'a, 'b> Abi<*const VkDescriptorSetLayoutCreateInfo> for &'b DescriptorSetLayoutCreateInfo<'a>

Source§

impl<'a, 'b> Abi<*mut VkDescriptorSetLayoutCreateInfo> for &'b mut DescriptorSetLayoutCreateInfo<'a>

Source§

impl<'a> Abi<VkDescriptorSetLayoutCreateInfo> for DescriptorSetLayoutCreateInfo<'a>

Source§

impl<'a> Chainable for DescriptorSetLayoutCreateInfo<'a>

Source§

fn p_next(&self) -> &*const c_void

The const reference of pNext field
Source§

fn p_next_mut(&mut self) -> &mut *mut c_void

The mutable reference of pNext field
Source§

unsafe fn push_next<E: Extend<Self>>(&mut self, ex: &mut E) -> &mut Self

Push the next struct to the chain
Source§

unsafe fn with_next<E: Extend<Self>>(self, ex: &mut E) -> Self

Push the next struct to the chain
Source§

unsafe fn next(&self) -> Option<&BaseInStructure<'_>>

Get the next struct in the chain
Source§

unsafe fn next_mut(&mut self) -> Option<&mut BaseOutStructure<'_>>

Get the next struct in the chain
Source§

unsafe fn upcast(&self) -> &BaseInStructure<'_>

Upcast the struct to VkBaseInStructure
Source§

unsafe fn upcast_mut(&mut self) -> &mut BaseOutStructure<'_>

Upcast the struct to VkBaseOutStructure
Source§

impl<'a> Clone for DescriptorSetLayoutCreateInfo<'a>

Source§

fn clone(&self) -> DescriptorSetLayoutCreateInfo<'a>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for DescriptorSetLayoutCreateInfo<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Default for DescriptorSetLayoutCreateInfo<'a>

Source§

fn default() -> Self

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

impl<'a> From<DescriptorSetLayoutCreateInfo<'a>> for DescriptorSetLayoutCreateInfo<'a>

Source§

fn from(value: DescriptorSetLayoutCreateInfo<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<DescriptorSetLayoutCreateInfo<'a>> for VkDescriptorSetLayoutCreateInfo

Source§

fn from(value: DescriptorSetLayoutCreateInfo<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<VkDescriptorSetLayoutCreateInfo> for DescriptorSetLayoutCreateInfo<'a>

Source§

fn from(value: VkDescriptorSetLayoutCreateInfo) -> Self

Converts to this type from the input type.
Source§

impl<'a> StructType for DescriptorSetLayoutCreateInfo<'a>

Source§

const TYPE: StructureType = crate::vk::StructureType::DescriptorSetLayoutCreateInfo

DescriptorSetLayoutCreateInfo

Source§

impl<'a> Sys<'a> for DescriptorSetLayoutCreateInfo<'a>

Source§

impl<'a> Copy for DescriptorSetLayoutCreateInfo<'a>

Source§

impl<'a> Extend<DescriptorSetLayoutCreateInfo<'a>> for DescriptorSetLayoutBindingFlagsCreateInfo<'a>

Source§

impl<'a> Extend<DescriptorSetLayoutCreateInfo<'a>> for MutableDescriptorTypeCreateInfoEXT<'a>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Abi<T> for T

Source§

fn abi(self) -> T

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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<T, O, S> MakeUnique<O, S> for T
where T: Copy, O: Owner<T, S>,

Source§

type Output = Unique<T, O, S>

The unique
Source§

fn unique(self, owner: O) -> <T as MakeUnique<O, S>>::Output

Make a unique from a raw handle and an owner
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.