pub enum TextureType {
Buffer,
D1(IsArray),
D2(IsArray, IsMultiSample),
D3,
Cube(IsArray),
}Expand description
A type of the texture variable. This has to match the actual data we bind to the shader.
Variants§
Buffer
Sample from a buffer.
D1(IsArray)
Sample from a 1D texture
D2(IsArray, IsMultiSample)
Sample from a 2D texture
D3
Sample from a 3D texture
Cube(IsArray)
Sample from a cubemap.
Implementations§
Source§impl TextureType
impl TextureType
Sourcepub fn can_sample(&self) -> bool
pub fn can_sample(&self) -> bool
Check if this texture can be used with a sampler.
Trait Implementations§
Source§impl Clone for TextureType
impl Clone for TextureType
Source§fn clone(&self) -> TextureType
fn clone(&self) -> TextureType
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 moreSource§impl Debug for TextureType
impl Debug for TextureType
Source§impl Hash for TextureType
impl Hash for TextureType
Source§impl PartialEq for TextureType
impl PartialEq for TextureType
impl Copy for TextureType
impl Eq for TextureType
impl StructuralPartialEq for TextureType
Auto Trait Implementations§
impl Freeze for TextureType
impl RefUnwindSafe for TextureType
impl Send for TextureType
impl Sync for TextureType
impl Unpin for TextureType
impl UnwindSafe for TextureType
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