[][src]Struct qt_gui::q_opengl_shader::ShaderTypeBit

#[repr(transparent)]
pub struct ShaderTypeBit(_);

This enum specifies the type of QOpenGLShader that is being created.

C++ enum: QOpenGLShader::ShaderTypeBit.

C++ documentation:

This enum specifies the type of QOpenGLShader that is being created.

The ShaderType type is a typedef for QFlags<ShaderTypeBit>. It stores an OR combination of ShaderTypeBit values.

Methods

impl ShaderTypeBit[src]

pub fn to_int(&self) -> c_int[src]

impl ShaderTypeBit[src]

pub const Vertex: ShaderTypeBit[src]

Vertex shader written in the OpenGL Shading Language (GLSL). (C++ enum variant: Vertex = 1)

pub const Fragment: ShaderTypeBit[src]

Fragment shader written in the OpenGL Shading Language (GLSL). (C++ enum variant: Fragment = 2)

pub const Geometry: ShaderTypeBit[src]

Geometry shaders written in the OpenGL Shading Language (GLSL) based on the OpenGL core feature (requires OpenGL >= 3.2). (C++ enum variant: Geometry = 4)

pub const TessellationControl: ShaderTypeBit[src]

Tessellation control shaders written in the OpenGL shading language (GLSL), based on the core feature (requires OpenGL >= 4.0). (C++ enum variant: TessellationControl = 8)

pub const TessellationEvaluation: ShaderTypeBit[src]

Tessellation evaluation shaders written in the OpenGL shading language (GLSL), based on the core feature (requires OpenGL >= 4.0). (C++ enum variant: TessellationEvaluation = 16)

pub const Compute: ShaderTypeBit[src]

Compute shaders written in the OpenGL shading language (GLSL), based on the core feature (requires OpenGL >= 4.3). (C++ enum variant: Compute = 32)

Trait Implementations

impl<T: Into<QFlags<ShaderTypeBit>>> BitOr<T> for ShaderTypeBit[src]

type Output = QFlags<ShaderTypeBit>

The resulting type after applying the | operator.

impl Clone for ShaderTypeBit[src]

impl Copy for ShaderTypeBit[src]

impl Debug for ShaderTypeBit[src]

impl Eq for ShaderTypeBit[src]

impl From<ShaderTypeBit> for c_int[src]

impl From<ShaderTypeBit> for QFlags<ShaderTypeBit>[src]

impl From<i32> for ShaderTypeBit[src]

impl PartialEq<ShaderTypeBit> for ShaderTypeBit[src]

impl StructuralEq for ShaderTypeBit[src]

impl StructuralPartialEq for ShaderTypeBit[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.