pub enum ReadError {
OutputFormatNotSupported,
AttachmentTypeNotSupported,
ClampingNotSupported,
}
Expand description
Error that can happen while reading.
Variants§
OutputFormatNotSupported
The implementation doesn’t support converting to the requested output format.
OpenGL supports every possible format, but OpenGL ES only supports (u8, u8, u8, u8)
and
an implementation-defined format.
AttachmentTypeNotSupported
The implementation doesn’t support reading a depth, depth-stencil or stencil attachment.
OpenGL ES only supports reading from color buffers by default. There are extensions that allow reading other types of attachments.
ClampingNotSupported
Clamping the values is not supported by the implementation.
Trait Implementations§
source§impl Error for ReadError
impl Error for ReadError
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()
Auto Trait Implementations§
impl RefUnwindSafe for ReadError
impl Send for ReadError
impl Sync for ReadError
impl Unpin for ReadError
impl UnwindSafe for ReadError
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