Enum nannou::ui::backend::glium::glium::program::BlockLayout[][src]

pub enum BlockLayout {
    Struct {
        members: Vec<(String, BlockLayout)>,
    },
    BasicType {
        ty: UniformType,
        offset_in_buffer: usize,
    },
    Array {
        content: Box<BlockLayout>,
        length: usize,
    },
    DynamicSizedArray {
        content: Box<BlockLayout>,
    },
}

Layout of a shader storage buffer or a uniform buffer.

Variants

Multiple elements, each having a name.

Fields of Struct

The list of elements, with name/layout pairs.

A basic element.

Fields of BasicType

Type of data.

Offset of this element in bytes from the start of the buffer.

A fixed-size array.

For example:

uint data[12];

Fields of Array

Type of data of each element.

Number of elements in the array.

An array whose size isn't known at compile-time. Can only be used as the last element of a buffer.

Its actual size depends on the size of the buffer.

For example:

buffer MyBuffer {
    uint data[];
}

Fields of DynamicSizedArray

Type of data of each element.

Trait Implementations

impl Clone for BlockLayout
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for BlockLayout
[src]

Formats the value using the given formatter. Read more

impl Eq for BlockLayout
[src]

impl PartialEq<BlockLayout> for BlockLayout
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for BlockLayout

impl Sync for BlockLayout