Enum glium::texture::buffer_texture::BufferTextureType
source · pub enum BufferTextureType {
Float,
Integral,
Unsigned,
}
Expand description
Type of a buffer texture.
Variants§
Float
The texture will behave as if it contained floating-point data. It can be sampled with
a samplerBuffer
in your GLSL code.
If the buffer actually contains integer values, they will be normalized so that 0
is interpreted as 0.0
and the maximum possible value (for example 255
for u8
s)
is interpreted as 1.0
.
Integral
The texture will behave as if it contained signed integral data. It can be sampled with
a isamplerBuffer
in your GLSL code.
Unsigned
The texture will behave as if it contained unsigned integral data. It can be sampled with
a usamplerBuffer
in your GLSL code.
Trait Implementations§
source§impl Clone for BufferTextureType
impl Clone for BufferTextureType
source§fn clone(&self) -> BufferTextureType
fn clone(&self) -> BufferTextureType
Returns a copy 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 BufferTextureType
impl Debug for BufferTextureType
source§impl PartialEq<BufferTextureType> for BufferTextureType
impl PartialEq<BufferTextureType> for BufferTextureType
source§fn eq(&self, other: &BufferTextureType) -> bool
fn eq(&self, other: &BufferTextureType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BufferTextureType
impl Eq for BufferTextureType
impl StructuralEq for BufferTextureType
impl StructuralPartialEq for BufferTextureType
Auto Trait Implementations§
impl RefUnwindSafe for BufferTextureType
impl Send for BufferTextureType
impl Sync for BufferTextureType
impl Unpin for BufferTextureType
impl UnwindSafe for BufferTextureType
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
source§impl<T> Content for Twhere
T: Copy,
impl<T> Content for Twhere T: Copy,
source§unsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>where
F: FnOnce(&mut T) -> Result<(), E>,
unsafe fn read<F, E>(size: usize, f: F) -> Result<T, E>where F: FnOnce(&mut T) -> Result<(), E>,
Prepares an output buffer, then turns this buffer into an
Owned
.
User-provided closure F
must only write to and not read from &mut Self
.source§fn get_elements_size() -> usize
fn get_elements_size() -> usize
Returns the size of each element.
source§fn to_void_ptr(&self) -> *const ()
fn to_void_ptr(&self) -> *const ()
Produces a pointer to the data.
source§fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut (), size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
source§fn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.