#include <InputStreamLayoutBuilder.h>
Classes | |
class | BufferDescriptorBuilder |
Public Member Functions | |
void | Begin () |
Begin building a new InputStreamLayout. This is optional for the first InputStreamLayout. | |
void | SetTopology (PrimitiveTopology topology) |
Set the PrimitiveTopology used by the InputStreamLayout. The default is TriangleList. | |
BufferDescriptorBuilder * | AddBuffer (StreamStepFunction stepFunction=StreamStepFunction::PerVertex, uint32_t stepRate=1) |
Add a buffer descriptor to the InputStreamLayout. Use the returned BufferBuilder to register Channels and Padding. | |
InputStreamLayout | End () |
Finalize and return the InputStreamLayout. | |
Provides a convenient way to construct InputStreamLayout objects, which describes the input assembly stream buffer layout for the pipeline state.
The general usage includes adding one or more stream buffer descriptors, and adding one or more channels descriptors to each buffer. Examples are shown below.
1) Individual Stream Buffers - each stream channel is contained in a separate buffers
2) Interleaved Stream Buffers - a single buffer contains all stream channels
3) Multiple Interleaved Stream Buffers - multiple buffers with multiple channels