#include <flint/graphics/pipelines/primitives-pipeline.h>
|
| bool | initialize (SDL_GPUDevice *device, ShaderFormat shaderFormat, SDL_GPUTextureFormat swapchainFormat) |
| |
| void | bind (SDL_GPURenderPass *renderPass, SDL_GPUPrimitiveType primitiveType) const |
| |
| bool | isInitialized () const |
| |
| void | cleanup () |
| |
Pipeline for rendering primitives (lines, line strips, points) Manages multiple pipeline variants for different primitive types
Definition at line 15 of file primitives-pipeline.h.
◆ ~PrimitivePipeline()
| Flint::PrimitivePipeline::~PrimitivePipeline |
( |
| ) |
|
|
inline |
◆ bind()
| void Flint::PrimitivePipeline::bind |
( |
SDL_GPURenderPass * | renderPass, |
|
|
SDL_GPUPrimitiveType | primitiveType ) const |
|
inline |
Bind the appropriate pipeline for the given primitive type
- Parameters
-
| renderPass | Active render pass |
| primitiveType | Type of primitive to render |
Definition at line 38 of file primitives-pipeline.h.
◆ cleanup()
| void Flint::PrimitivePipeline::cleanup |
( |
| ) |
|
|
inline |
◆ initialize()
| bool Flint::PrimitivePipeline::initialize |
( |
SDL_GPUDevice * | device, |
|
|
ShaderFormat | shaderFormat, |
|
|
SDL_GPUTextureFormat | swapchainFormat ) |
Initialize the primitive pipeline with a shader
- Parameters
-
| device | GPU device |
| shader | Shader containing vertex and fragment shaders |
| swapchainFormat | Format of the swapchain/render target |
- Returns
- true if initialization succeeded
◆ isInitialized()
| bool Flint::PrimitivePipeline::isInitialized |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: