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,
}
Expand description
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
Implementations§
Source§impl<R: Resources> RawDataSet<R>
impl<R: Resources> RawDataSet<R>
Sourcepub fn new() -> RawDataSet<R>
pub fn new() -> RawDataSet<R>
Create an empty data set.
Trait Implementations§
Source§impl<R: Clone + Resources> Clone for RawDataSet<R>
impl<R: Clone + Resources> Clone for RawDataSet<R>
Source§fn clone(&self) -> RawDataSet<R>
fn clone(&self) -> RawDataSet<R>
Returns a duplicate 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 moreimpl<R: Resources> StructuralPartialEq for RawDataSet<R>
Auto Trait Implementations§
impl<R> Freeze for RawDataSet<R>where
<R as Resources>::DepthStencilView: Freeze,
<R as Resources>::RenderTargetView: Freeze,
<R as Resources>::Buffer: Freeze,
impl<R> RefUnwindSafe for RawDataSet<R>where
<R as Resources>::DepthStencilView: RefUnwindSafe,
<R as Resources>::RenderTargetView: RefUnwindSafe,
<R as Resources>::Buffer: RefUnwindSafe,
<R as Resources>::ShaderResourceView: RefUnwindSafe,
<R as Resources>::UnorderedAccessView: RefUnwindSafe,
<R as Resources>::Sampler: RefUnwindSafe,
impl<R> Send for RawDataSet<R>
impl<R> Sync for RawDataSet<R>
impl<R> Unpin for RawDataSet<R>where
<R as Resources>::DepthStencilView: Unpin,
<R as Resources>::RenderTargetView: Unpin,
<R as Resources>::Buffer: Unpin,
<R as Resources>::ShaderResourceView: Unpin,
<R as Resources>::UnorderedAccessView: Unpin,
<R as Resources>::Sampler: Unpin,
impl<R> UnwindSafe for RawDataSet<R>where
<R as Resources>::DepthStencilView: UnwindSafe,
<R as Resources>::RenderTargetView: UnwindSafe,
<R as Resources>::Buffer: UnwindSafe,
<R as Resources>::ShaderResourceView: UnwindSafe,
<R as Resources>::UnorderedAccessView: UnwindSafe,
<R as Resources>::Sampler: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more