pub struct Parameter<'a> {
pub ty: u32,
pub resource: u32,
pub variability: u32,
pub resource_index: i32,
pub name: Option<&'a [u8]>,
pub semantic: Option<&'a [u8]>,
pub direction: u32,
pub parameter_number: i32,
pub referenced: bool,
pub shared: bool,
pub default_value: Option<Vec<u32>>,
pub embedded_constants: Vec<u32>,
}Expand description
One parameter record of the container.
Fields§
§ty: u32Original CGtype, CGresource and CGenum values, including unknown values.
resource: u32The CGresource (a texture unit, an attribute, …).
variability: u32The CGenum variability (varying, uniform, …).
resource_index: i32The index within the resource, as a signed value.
name: Option<&'a [u8]>NUL-terminated source strings, excluding their terminator; no encoding conversion.
semantic: Option<&'a [u8]>The semantic string, where the parameter has one.
direction: u32The CGenum direction (in, out, …).
parameter_number: i32-1 denotes a global parameter.
referenced: boolWhether the program references the parameter.
Whether the parameter is shared between programs.
default_value: Option<Vec<u32>>Big-endian float bits, preserving NaNs and signed zeros. Float scalar, vector and matrix types are supported; other types with defaults refuse.
embedded_constants: Vec<u32>Byte offsets of 16-byte constants in this program’s microcode.
Implementations§
Trait Implementations§
impl<'a> Eq for Parameter<'a>
impl<'a> StructuralPartialEq for Parameter<'a>
Auto Trait Implementations§
impl<'a> Forget for Parameter<'a>
impl<'a> Freeze for Parameter<'a>
impl<'a> RefUnwindSafe for Parameter<'a>
impl<'a> Send for Parameter<'a>
impl<'a> Sync for Parameter<'a>
impl<'a> Unpin for Parameter<'a>
impl<'a> UnsafeUnpin for Parameter<'a>
impl<'a> UnwindSafe for Parameter<'a>
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