Struct gfx::shade::core::ConstantBufferVar
source · pub struct ConstantBufferVar {
pub name: String,
pub slot: u8,
pub size: usize,
pub usage: Usage,
pub elements: Vec<ConstVar, Global>,
}
Expand description
A constant buffer.
Fields§
§name: String
Name of this constant buffer.
slot: u8
Slot of the constant buffer.
size: usize
Size (in bytes) of this buffer’s data.
usage: Usage
What program stage this buffer is used in.
elements: Vec<ConstVar, Global>
List of individual elements in this buffer.
Trait Implementations§
source§impl Clone for ConstantBufferVar
impl Clone for ConstantBufferVar
source§fn clone(&self) -> ConstantBufferVar
fn clone(&self) -> ConstantBufferVar
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ConstantBufferVar
impl Debug for ConstantBufferVar
source§impl Hash for ConstantBufferVar
impl Hash for ConstantBufferVar
source§impl PartialEq<ConstantBufferVar> for ConstantBufferVar
impl PartialEq<ConstantBufferVar> for ConstantBufferVar
source§fn eq(&self, other: &ConstantBufferVar) -> bool
fn eq(&self, other: &ConstantBufferVar) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.