pub struct PixelType(/* private fields */);
Expand description

This enum defines the possible pixel data types for a pixel transfer operation

C++ enum: QOpenGLTexture::PixelType.

C++ documentation:

This enum defines the possible pixel data types for a pixel transfer operation

Implementations§

source§

impl PixelType

source

pub fn to_int(&self) -> c_int

source§

impl PixelType

source

pub const NoPixelType: PixelType = _

Equivalent to GL_NONE (C++ enum variant: NoPixelType = 0)

source

pub const Int8: PixelType = _

Equivalent to GL_BYTE (C++ enum variant: Int8 = 5120)

source

pub const UInt8: PixelType = _

Equivalent to GL_UNSIGNED_BYTE (C++ enum variant: UInt8 = 5121)

source

pub const Int16: PixelType = _

Equivalent to GL_SHORT (C++ enum variant: Int16 = 5122)

source

pub const UInt16: PixelType = _

Equivalent to GL_UNSIGNED_SHORT (C++ enum variant: UInt16 = 5123)

source

pub const Int32: PixelType = _

Equivalent to GL_INT (C++ enum variant: Int32 = 5124)

source

pub const UInt32: PixelType = _

Equivalent to GL_UNSIGNED_INT (C++ enum variant: UInt32 = 5125)

source

pub const Float16: PixelType = _

Equivalent to GL_HALF_FLOAT (C++ enum variant: Float16 = 5131)

source

pub const Float16OES: PixelType = _

Equivalent to GL_HALF_FLOAT_OES (C++ enum variant: Float16OES = 36193)

source

pub const Float32: PixelType = _

Equivalent to GL_FLOAT (C++ enum variant: Float32 = 5126)

source

pub const UInt32RGB9E5: PixelType = _

Equivalent to GL_UNSIGNED_INT_5_9_9_9_REV (C++ enum variant: UInt32_RGB9_E5 = 35902)

source

pub const UInt32RG11B10F: PixelType = _

Equivalent to GL_UNSIGNED_INT_10F_11F_11F_REV (C++ enum variant: UInt32_RG11B10F = 35899)

source

pub const UInt8RG3B2: PixelType = _

Equivalent to GL_UNSIGNED_BYTE_3_3_2 (C++ enum variant: UInt8_RG3B2 = 32818)

source

pub const UInt8RG3B2Rev: PixelType = _

Equivalent to GL_UNSIGNED_BYTE_2_3_3_REV (C++ enum variant: UInt8_RG3B2_Rev = 33634)

source

pub const UInt16RGB5A1: PixelType = _

Equivalent to GL_UNSIGNED_SHORT_5_5_5_1 (C++ enum variant: UInt16_RGB5A1 = 32820)

source

pub const UInt16RGB5A1Rev: PixelType = _

Equivalent to GL_UNSIGNED_SHORT_1_5_5_5_REV (C++ enum variant: UInt16_RGB5A1_Rev = 33638)

source

pub const UInt16R5G6B5: PixelType = _

Equivalent to GL_UNSIGNED_SHORT_5_6_5 (C++ enum variant: UInt16_R5G6B5 = 33635)

source

pub const UInt16R5G6B5Rev: PixelType = _

Equivalent to GL_UNSIGNED_SHORT_5_6_5_REV (C++ enum variant: UInt16_R5G6B5_Rev = 33636)

source

pub const UInt16RGBA4: PixelType = _

Equivalent to GL_UNSIGNED_SHORT_4_4_4_4 (C++ enum variant: UInt16_RGBA4 = 32819)

source

pub const UInt16RGBA4Rev: PixelType = _

Equivalent to GL_UNSIGNED_SHORT_4_4_4_4_REV (C++ enum variant: UInt16_RGBA4_Rev = 33637)

source

pub const UInt32RGBA8: PixelType = _

Equivalent to GL_UNSIGNED_INT_8_8_8_8 (C++ enum variant: UInt32_RGBA8 = 32821)

source

pub const UInt32RGBA8Rev: PixelType = _

Equivalent to GL_UNSIGNED_INT_8_8_8_8_REV (C++ enum variant: UInt32_RGBA8_Rev = 33639)

source

pub const UInt32RGB10A2: PixelType = _

Equivalent to GL_UNSIGNED_INT_10_10_10_2 (C++ enum variant: UInt32_RGB10A2 = 32822)

source

pub const UInt32RGB10A2Rev: PixelType = _

Equivalent to GL_UNSIGNED_INT_2_10_10_10_REV (C++ enum variant: UInt32_RGB10A2_Rev = 33640)

source

pub const UInt32D24S8: PixelType = _

Equivalent to GL_UNSIGNED_INT_24_8. Introduced in Qt 5.4 (C++ enum variant: UInt32_D24S8 = 34042)

source

pub const Float32D32UInt32S8X24: PixelType = _

Equivalent to GL_FLOAT_32_UNSIGNED_INT_24_8_REV. Introduced in Qt 5.4 (C++ enum variant: Float32_D32_UInt32_S8_X24 = 36269)

Trait Implementations§

source§

impl Clone for PixelType

source§

fn clone(&self) -> PixelType

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for PixelType

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<PixelType> for c_int

source§

fn from(value: PixelType) -> Self

Converts to this type from the input type.
source§

impl From<i32> for PixelType

source§

fn from(value: c_int) -> Self

Converts to this type from the input type.
source§

impl PartialEq for PixelType

source§

fn eq(&self, other: &PixelType) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for PixelType

source§

impl Eq for PixelType

source§

impl StructuralEq for PixelType

source§

impl StructuralPartialEq for PixelType

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> StaticUpcast<T> for T

source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.