Enum ux::prelude::dx::FeatureID [−][src]
#[non_exhaustive]
pub enum FeatureID {
Show variants
OglFeatureIdTextureNpotBasic,
OglFeatureIdTextureNpotMipmap,
OglFeatureIdTextureNpotRepeat,
OglFeatureIdTextureNpot,
OglFeatureIdTextureRectangle,
OglFeatureIdTexture3d,
OglFeatureIdGlsl,
OglFeatureIdArbfp,
OglFeatureIdOffscreen,
OglFeatureIdOffscreenMultisample,
OglFeatureIdOnscreenMultiple,
OglFeatureIdUnsignedIntIndices,
OglFeatureIdDepthRange,
OglFeatureIdPointSprite,
OglFeatureIdMapBufferForRead,
OglFeatureIdMapBufferForWrite,
OglFeatureIdMirroredRepeat,
OglFeatureIdSwapBuffersEvent,
OglFeatureIdGles2Context,
OglFeatureIdDepthTexture,
OglFeatureIdPresentationTime,
OglFeatureIdFence,
OglFeatureIdPerVertexPointSize,
OglFeatureIdTextureRg,
OglFeatureIdBufferAge,
// some variants omitted
}All the capabilities that can vary between different GPUs supported
by Cogl. Applications that depend on any of these features should explicitly
check for them using has_feature or has_features.
Variants (Non-exhaustive)
The hardware supports non power
of two textures, but you also need to check the
FeatureID::OglFeatureIdTextureNpotMipmap and FeatureID::OglFeatureIdTextureNpotRepeat
features to know if the hardware supports npot texture mipmaps
or repeat modes other than
PipelineWrapMode::ClampToEdge respectively.
Mipmapping is supported in conjuntion with non power of two textures.
Repeat modes other than
PipelineWrapMode::ClampToEdge are supported by the
hardware.
Non power of two textures are supported
by the hardware. This is a equivalent to the
FeatureID::OglFeatureIdTextureNpotBasic, FeatureID::OglFeatureIdTextureNpotMipmap
and FeatureID::OglFeatureIdTextureNpotRepeat features combined.
Support for rectangular textures with non-normalized texture coordinates.
3D texture support
GLSL support
ARBFP support
Offscreen rendering support
Multisample support for offscreen framebuffers
Multiple onscreen framebuffers supported.
Set if
IndicesType::Int is supported in
Indices::new.
pipeline_set_depth_range support
Whether
Pipeline::set_layer_point_sprite_coords_enabled is supported.
Whether buffer_map is
supported with CoglBufferAccess including read support.
Whether buffer_map is
supported with CoglBufferAccess including write support.
Whether
PipelineWrapMode::MirroredRepeat is supported.
Available if the window system supports reporting an event for swap buffer completions.
Whether creating new GLES2 contexts is suported.
Whether Framebuffer support rendering
the depth buffer to a texture.
Whether frame presentation
time stamps will be recorded in FrameInfo objects.
Whether point_size_in can be used as an attribute to set a per-vertex point size.
Support for
TextureComponents::Rg as the internal components of a
texture.
Available if the age of Onscreen back
buffers are tracked and so Onscreen::get_buffer_age can be
expected to return age values other than 0.
Trait Implementations
impl Clone for FeatureID[src]
impl Copy for FeatureID[src]
impl Debug for FeatureID[src]
impl Display for FeatureID[src]
impl Eq for FeatureID[src]
impl Hash for FeatureID[src]
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher, [src]
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl Ord for FeatureID[src]
pub fn cmp(&self, other: &FeatureID) -> Ordering[src]
#[must_use]pub fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self1.50.0[src]
impl PartialEq<FeatureID> for FeatureID[src]
impl PartialOrd<FeatureID> for FeatureID[src]
pub fn partial_cmp(&self, other: &FeatureID) -> Option<Ordering>[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl StructuralEq for FeatureID[src]
impl StructuralPartialEq for FeatureID[src]
Auto Trait Implementations
impl RefUnwindSafe for FeatureID
impl Send for FeatureID
impl Sync for FeatureID
impl Unpin for FeatureID
impl UnwindSafe for FeatureID
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,