pub struct LocationVariable {
pub location: u32,
pub type_id: u32,
pub name: Option<String>,
}Expand description
Describes an input or output variable declared in a SPIRV module
Fields§
§location: u32The location of the variable (e.g. GLSL layout(location=XXX))
type_id: u32The type id of the variable’s Type
name: Option<String>The variable’s name (if known)
Trait Implementations§
Source§impl Clone for LocationVariable
impl Clone for LocationVariable
Source§fn clone(&self) -> LocationVariable
fn clone(&self) -> LocationVariable
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LocationVariable
impl RefUnwindSafe for LocationVariable
impl Send for LocationVariable
impl Sync for LocationVariable
impl Unpin for LocationVariable
impl UnwindSafe for LocationVariable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more