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]

[src]

Returns true if the backend supports compute shaders.

[src]

Builds a new compute shader from some source code.

[src]

Builds a new compute shader from some binary.

[src]

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.

[src]

Executes the compute shader.

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

[src]

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.

[src]

Returns informations about a uniform variable, if it exists.

Important traits for Iter<'a, K, V>
[src]

Returns an iterator to the list of uniforms.

Example

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

[src]

Returns a list of uniform blocks.

Example

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

[src]

Returns the list of shader storage blocks.

Example

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

Trait Implementations

impl GlObject for ComputeShader
[src]

The type of identifier for this object.

[src]

Returns the id of the object.

impl Debug for ComputeShader
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for ComputeShader

impl !Sync for ComputeShader