Struct nannou::ui::backend::glium::glium::program::ComputeShader[][src]

pub struct ComputeShader { /* fields omitted */ }

A combination of compute shaders linked together.

Methods

impl ComputeShader
[src]

Returns true if the backend supports compute shaders.

Builds a new compute shader from some source code.

Builds a new compute shader from some binary.

Executes the compute shader.

x * y * z work groups will be started. The current work group can be retrieved with gl_WorkGroupID. Inside each work group, additional local work groups can be started depending on the attributes of the compute shader itself.

Executes the compute shader.

This is similar to execute, except that the parameters are stored in a buffer.

Returns the program's compiled binary.

You can store the result in a file, then reload it later. This avoids having to compile the source code every time.

Returns informations about a uniform variable, if it exists.

Important traits for Iter<'a, K, V>

Returns an iterator to the list of uniforms.

Example

for (name, uniform) in program.uniforms() {
    println!("Name: {} - Type: {:?}", name, uniform.ty);
}

Returns a list of uniform blocks.

Example

for (name, uniform) in program.get_uniform_blocks() {
    println!("Name: {}", name);
}

Returns the list of shader storage blocks.

Example

for (name, uniform) in program.get_shader_storage_blocks() {
    println!("Name: {}", name);
}

Trait Implementations

impl Debug for ComputeShader
[src]

Formats the value using the given formatter. Read more

impl GlObject for ComputeShader
[src]

The type of identifier for this object.

Returns the id of the object.

Auto Trait Implementations

impl !Send for ComputeShader

impl !Sync for ComputeShader