pub struct ShaderTypeBit(/* private fields */);Expand description
This enum specifies the type of QOpenGLShader that is being created.
C++ enum: QOpenGLShader::ShaderTypeBit.
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.
Implementations§
Source§impl ShaderTypeBit
impl ShaderTypeBit
Sourcepub const Vertex: ShaderTypeBit
pub const Vertex: ShaderTypeBit
Vertex shader written in the OpenGL Shading Language (GLSL). (C++ enum variant: Vertex = 1)
Sourcepub const Fragment: ShaderTypeBit
pub const Fragment: ShaderTypeBit
Fragment shader written in the OpenGL Shading Language (GLSL). (C++ enum variant: Fragment = 2)
Sourcepub const Geometry: ShaderTypeBit
pub const Geometry: ShaderTypeBit
Geometry shaders written in the OpenGL Shading Language (GLSL) based on the OpenGL core feature (requires OpenGL >= 3.2). (C++ enum variant: Geometry = 4)
Sourcepub const TessellationControl: ShaderTypeBit
pub const TessellationControl: ShaderTypeBit
Tessellation control shaders written in the OpenGL shading language (GLSL), based on the core feature (requires OpenGL >= 4.0). (C++ enum variant: TessellationControl = 8)
Sourcepub const TessellationEvaluation: ShaderTypeBit
pub const TessellationEvaluation: ShaderTypeBit
Tessellation evaluation shaders written in the OpenGL shading language (GLSL), based on the core feature (requires OpenGL >= 4.0). (C++ enum variant: TessellationEvaluation = 16)
Sourcepub const Compute: ShaderTypeBit
pub const Compute: ShaderTypeBit
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§
Source§impl<T: Into<QFlags<ShaderTypeBit>>> BitOr<T> for ShaderTypeBit
impl<T: Into<QFlags<ShaderTypeBit>>> BitOr<T> for ShaderTypeBit
Source§impl Clone for ShaderTypeBit
impl Clone for ShaderTypeBit
Source§fn clone(&self) -> ShaderTypeBit
fn clone(&self) -> ShaderTypeBit
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more