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
StructMultiple elements, each having a name.
Fields
members: Vec<(String, BlockLayout)> | The list of elements, with |
BasicTypeA basic element.
Fields
ty: UniformType | Type of data. |
offset_in_buffer: usize | Offset of this element in bytes from the start of the buffer. |
ArrayA fixed-size array.
For example:
uint data[12];
Fields
content: Box<BlockLayout> | Type of data of each element. |
length: usize | Number of elements in the array. |
DynamicSizedArrayAn 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
content: Box<BlockLayout> | Type of data of each element. |
Trait Implementations
impl Eq for BlockLayout[src]
impl PartialEq for BlockLayout[src]
fn eq(&self, __arg_0: &BlockLayout) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &BlockLayout) -> bool
This method tests for !=.
impl Clone for BlockLayout[src]
fn clone(&self) -> BlockLayout
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more