Enum rafx_api::RafxPipeline[][src]

pub enum RafxPipeline {
    Empty(RafxPipelineEmpty),
}

Represents a complete GPU configuration for executing work.

There are two kinds of pipelines: Graphics and Compute

A pipeline includes fixed-function state (i.e. configuration) and programmable state (i.e. shaders). Pipelines are expensive objects to create. Ideally, they should be created when the application initializes or on a separate thread.

Pipelines are bound by command buffers. Fewer pipeline changes is better, and it is often worth batching draw calls that use the same pipeline to happen together so that the pipeline does not need to be changed as frequently.

Pipelines must not be dropped if they are in use by the GPU.

Variants

Empty(RafxPipelineEmpty)

Implementations

impl RafxPipeline[src]

pub fn pipeline_type(&self) -> RafxPipelineType[src]

Returns the type of pipeline that this is

pub fn root_signature(&self) -> &RafxRootSignature[src]

Returns the root signature used to create the pipeline

pub fn empty_pipeline(&self) -> Option<&RafxPipelineEmpty>[src]

Trait Implementations

impl Debug for RafxPipeline[src]

Auto Trait Implementations

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> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

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

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

impl<T> Resource for T where
    T: Downcast + Send + Sync
[src]

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.