pub struct Shader {
    pub entry_name: String,
    pub specialization_info: Option<SpecializationInfo>,
    pub spirv: Vec<u8>,
    pub stage: ShaderStageFlags,
    /* private fields */
}

Fields

entry_name: Stringspecialization_info: Option<SpecializationInfo>spirv: Vec<u8>stage: ShaderStageFlags

Implementations

Creates a new ray trace shader.

NOTE: May panic if the shader code is invalid.

Creates a new ray trace shader.

NOTE: May panic if the shader code is invalid.

Creates a new ray trace shader.

NOTE: May panic if the shader code is invalid.

Creates a new compute shader.

NOTE: May panic if the shader code is invalid.

Creates a new fragment shader.

NOTE: May panic if the shader code is invalid.

Creates a new geometry shader.

NOTE: May panic if the shader code is invalid.

Creates a new ray trace shader.

NOTE: May panic if the shader code is invalid.

Creates a new ray trace shader.

NOTE: May panic if the shader code is invalid.

Creates a new ray trace shader.

NOTE: May panic if the shader code is invalid.

Creates a new tesselation control shader.

NOTE: May panic if the shader code is invalid.

Creates a new tesselation evaluation shader.

NOTE: May panic if the shader code is invalid.

Creates a new vertex shader.

NOTE: May panic if the shader code is invalid.

Returns the input and write attachments of a shader.

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

Converts to this type from the input type.

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

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.

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

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.