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: RefValuesscissor: Rect

Implementations

impl<R: Resources> RawDataSet<R>[src]

pub fn new() -> RawDataSet<R>[src]

Create an empty data set.

pub fn clear(&mut self)[src]

Clear all contained data.

Trait Implementations

impl<R: Clone + Resources> Clone for RawDataSet<R>[src]

impl<R: Debug + Resources> Debug for RawDataSet<R>[src]

impl<R: PartialEq + Resources> PartialEq<RawDataSet<R>> for RawDataSet<R>[src]

impl<R: Resources> StructuralPartialEq for RawDataSet<R>[src]

Auto Trait Implementations

impl<R> RefUnwindSafe for RawDataSet<R> where
    <R as Resources>::Buffer: RefUnwindSafe,
    <R as Resources>::DepthStencilView: RefUnwindSafe,
    <R as Resources>::RenderTargetView: RefUnwindSafe,
    <R as Resources>::Sampler: RefUnwindSafe,
    <R as Resources>::ShaderResourceView: RefUnwindSafe,
    <R as Resources>::UnorderedAccessView: RefUnwindSafe

impl<R> Send for RawDataSet<R>

impl<R> Sync for RawDataSet<R>

impl<R> Unpin for RawDataSet<R> where
    <R as Resources>::Buffer: Unpin,
    <R as Resources>::DepthStencilView: Unpin,
    <R as Resources>::RenderTargetView: Unpin,
    <R as Resources>::Sampler: Unpin,
    <R as Resources>::ShaderResourceView: Unpin,
    <R as Resources>::UnorderedAccessView: Unpin

impl<R> UnwindSafe for RawDataSet<R> where
    <R as Resources>::Buffer: UnwindSafe,
    <R as Resources>::DepthStencilView: UnwindSafe,
    <R as Resources>::RenderTargetView: UnwindSafe,
    <R as Resources>::Sampler: UnwindSafe,
    <R as Resources>::ShaderResourceView: UnwindSafe,
    <R as Resources>::UnorderedAccessView: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.