Enum cat_engine_basement::graphics::core::shader::ShaderParameter[][src]

#[repr(u32)]
pub enum ShaderParameter {
    ShaderType,
    DeleteStatus,
    CompileStatus,
    InfoLogLength,
    ShaderSourceLength,
}
Expand description

Specifies a shader object parameter.

Variants

ShaderType

Returns ShaderType::FragmentShader if shader is a vertex shader object, ShaderType::GeometryShader if shader is a geometry shader object, and ShaderType::FragmentShader if shader is a fragment shader object.

DeleteStatus

Returns true if shader is currently flagged for deletion, and false otherwise.

CompileStatus

Returns true if the last compile operation on shader was successful, and false otherwise.

InfoLogLength

Returns the number of characters in the information log for shader including the null termination character (i.e., the size of the character buffer required to store the information log). If shader has no information log, a value of 0 is returned.

ShaderSourceLength

Returns the length of the concatenation of the source strings that make up the shader source for the shader, including the null termination character (i.e., the size of the character buffer required to store the shader source). If no source code exists, 0 is returned.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.