Struct vulkano::shader::ShaderInterfaceEntryType
source · [−]pub struct ShaderInterfaceEntryType {
pub base_type: ShaderScalarType,
pub num_components: u32,
pub num_elements: u32,
pub is_64bit: bool,
}
Expand description
The type of a variable in a shader interface.
Fields
base_type: ShaderScalarType
The base numeric type.
num_components: u32
The number of vector components. Must be in the range 1..=4.
num_elements: u32
The number of array elements or matrix columns.
is_64bit: bool
Whether the base type is 64 bits wide. If true, each item of the base type takes up two component slots instead of one.
Trait Implementations
sourceimpl Clone for ShaderInterfaceEntryType
impl Clone for ShaderInterfaceEntryType
sourcefn clone(&self) -> ShaderInterfaceEntryType
fn clone(&self) -> ShaderInterfaceEntryType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ShaderInterfaceEntryType
impl Debug for ShaderInterfaceEntryType
sourceimpl Hash for ShaderInterfaceEntryType
impl Hash for ShaderInterfaceEntryType
sourceimpl PartialEq<ShaderInterfaceEntryType> for ShaderInterfaceEntryType
impl PartialEq<ShaderInterfaceEntryType> for ShaderInterfaceEntryType
sourcefn eq(&self, other: &ShaderInterfaceEntryType) -> bool
fn eq(&self, other: &ShaderInterfaceEntryType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ShaderInterfaceEntryType) -> bool
fn ne(&self, other: &ShaderInterfaceEntryType) -> bool
This method tests for !=
.
impl Copy for ShaderInterfaceEntryType
impl Eq for ShaderInterfaceEntryType
impl StructuralEq for ShaderInterfaceEntryType
impl StructuralPartialEq for ShaderInterfaceEntryType
Auto Trait Implementations
impl RefUnwindSafe for ShaderInterfaceEntryType
impl Send for ShaderInterfaceEntryType
impl Sync for ShaderInterfaceEntryType
impl Unpin for ShaderInterfaceEntryType
impl UnwindSafe for ShaderInterfaceEntryType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more