Enum glium::texture::buffer_texture::TextureCreationError
source · pub enum TextureCreationError {
NotSupported,
FormatNotSupported,
TooLarge,
}
Expand description
Error that can happen while building the texture part of a buffer texture.
Variants§
NotSupported
Buffer textures are not supported at all.
FormatNotSupported
The requested format is not supported in combination with the given texture buffer type.
TooLarge
The size of the buffer that you are trying to bind exceeds GL_MAX_TEXTURE_BUFFER_SIZE
.
Trait Implementations§
source§impl Clone for TextureCreationError
impl Clone for TextureCreationError
source§fn clone(&self) -> TextureCreationError
fn clone(&self) -> TextureCreationError
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 TextureCreationError
impl Debug for TextureCreationError
source§impl Display for TextureCreationError
impl Display for TextureCreationError
source§impl Error for TextureCreationError
impl Error for TextureCreationError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<TextureCreationError> for CreationError
impl From<TextureCreationError> for CreationError
source§fn from(err: TextureCreationError) -> CreationError
fn from(err: TextureCreationError) -> CreationError
Converts to this type from the input type.
impl Copy for TextureCreationError
Auto Trait Implementations§
impl RefUnwindSafe for TextureCreationError
impl Send for TextureCreationError
impl Sync for TextureCreationError
impl Unpin for TextureCreationError
impl UnwindSafe for TextureCreationError
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.