Struct gfx::pso::RawDataSet
[−]
[src]
pub struct RawDataSet<R: Resources> { pub vertex_buffers: VertexBufferSet<R>, pub constant_buffers: Vec<ConstantBufferParam<R>>, pub global_constants: Vec<(Location, UniformValue)>, pub resource_views: Vec<ResourceViewParam<R>>, pub unordered_views: Vec<UnorderedViewParam<R>>, pub samplers: Vec<SamplerParam<R>>, pub pixel_targets: PixelTargetSet<R>, pub ref_values: RefValues, pub scissor: Rect, }
A complete set of raw data that needs to be specified at run-time
whenever we draw something with a PSO. This is what "data" struct
gets transformed into when we call encoder.draw(...)
with it.
It doesn't have any typing information, since PSO knows what
format and layout to expect from each resource.
Fields
vertex_buffers: VertexBufferSet<R>
constant_buffers: Vec<ConstantBufferParam<R>>
global_constants: Vec<(Location, UniformValue)>
resource_views: Vec<ResourceViewParam<R>>
unordered_views: Vec<UnorderedViewParam<R>>
samplers: Vec<SamplerParam<R>>
pixel_targets: PixelTargetSet<R>
ref_values: RefValues
scissor: Rect
Methods
impl<R: Resources> RawDataSet<R>
[src]
fn new() -> RawDataSet<R>
[src]
Create an empty data set.
fn clear(&mut self)
[src]
Clear all contained data.
Trait Implementations
impl<R: Clone + Resources> Clone for RawDataSet<R>
[src]
fn clone(&self) -> RawDataSet<R>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<R: Debug + Resources> Debug for RawDataSet<R>
[src]
impl<R: PartialEq + Resources> PartialEq for RawDataSet<R>
[src]
fn eq(&self, __arg_0: &RawDataSet<R>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &RawDataSet<R>) -> bool
[src]
This method tests for !=
.