5#include "flint/graphics/pipelines/pipeline-base.h"
7#include <SDL3/SDL_gpu.h>
42 bool initialize(SDL_GPUDevice *device, ShaderFormat shaderFormat,
43 SDL_GPUTextureFormat swapchainFormat);
57 m_batchShader.reset();
86 SDL_GPUVertexAttribute m_attributes[4] =
88 std::unique_ptr<Shader> m_batchShader;
void cleanup()
Release batch shader resources and reset base pipeline state.
bool configurePipeline(SDL_GPUGraphicsPipelineCreateInfo &pipelineInfo) override
Configure pipeline vertex layout, shader stages, and blend states.
bool initialize(SDL_GPUDevice *device, ShaderFormat shaderFormat, SDL_GPUTextureFormat swapchainFormat)
Initialize the batch pipeline with shader assets and swapchain target formats.
bool isInitialized() const
Check whether the underlying GPU pipeline handle is created and ready.
Graphics pipeline for primary 2D batched quad geometry and procedural shapes.
virtual void cleanup()
Release the SDL GPU pipeline object.
SDL_GPUGraphicsPipeline * getPipeline() const
Return the raw SDL GPU graphics pipeline handle.
Base class for GPU graphics pipelines.