pub struct TextureParam {
pub name: String,
pub slot: u32,
pub sampler: Option<u32>,
pub dim: i64,
}Expand description
A texture parameter: its name, bind slot (t<n>), the sampler slot it samples with (None: none of its own) and
dimension (Unity’s TextureDimension: 2 a 2D texture, 3 3D, 4 a cube).
Fields§
§name: StringThe texture’s name.
slot: u32The bind slot (t<n>).
sampler: Option<u32>The slot of the sampler it samples with; None when it has none of its own.
dim: i64Unity’s TextureDimension: 2 a 2D texture, 3 a 3D texture, 4 a cube.
Trait Implementations§
Source§impl Clone for TextureParam
impl Clone for TextureParam
Source§impl Debug for TextureParam
impl Debug for TextureParam
impl Eq for TextureParam
Source§impl PartialEq for TextureParam
impl PartialEq for TextureParam
Source§impl Serialize for TextureParam
impl Serialize for TextureParam
impl StructuralPartialEq for TextureParam
Auto Trait Implementations§
impl Freeze for TextureParam
impl RefUnwindSafe for TextureParam
impl Send for TextureParam
impl Sync for TextureParam
impl Unpin for TextureParam
impl UnsafeUnpin for TextureParam
impl UnwindSafe for TextureParam
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.