Enum 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
Struct | Multiple elements, each having a name. Fields
| ||||
BasicType | A basic element. Fields
| ||||
Array | A fixed-size array. For example:
Fields
| ||||
DynamicSizedArray | 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:
Fields
|