pub struct Features {
pub sampler_anisotropy: bool,
pub readonly_framebuffer_feedback: bool,
}
Expand description
Features of a given context.
Unlike with the capabilities, features are limiting, and using features which are not supported on the target context is considered an error. Therefore, it is important for users to understand these features and limitations before enabling something.
Fields§
§sampler_anisotropy: bool
Whether anisotropic filtering is supported by the context.
readonly_framebuffer_feedback: bool
Whether it’s possible to attach a read-only framebuffer element to an active texture sampler slot.
This allows for what is considered in older OpenGL contexts to be a framebuffer feedback loop to be constructed, but it is not a widely supported feature.
Trait Implementations§
Source§impl Ord for Features
impl Ord for Features
Source§impl PartialOrd for Features
impl PartialOrd for Features
impl Copy for Features
impl Eq for Features
impl StructuralPartialEq for Features
Auto Trait Implementations§
impl Freeze for Features
impl RefUnwindSafe for Features
impl Send for Features
impl Sync for Features
impl Unpin for Features
impl UnwindSafe for Features
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