Flint Engine
Modular C++20 2D game engine powered by SDL3
Loading...
Searching...
No Matches

◆ initialize()

bool Flint::BatchPipeline::initialize ( SDL_GPUDevice * device,
ShaderFormat shaderFormat,
SDL_GPUTextureFormat swapchainFormat )

Initialize the batch pipeline with shader assets and swapchain target formats.

Loads the batch vertex/fragment shaders and builds the underlying GPU pipeline with standard alpha blending enabled.

Parameters
devicePointer to the active SDL GPU device.
shaderFormatActive GPU shader format (e.g., SPIR-V, MSL, DXBC).
swapchainFormatTarget render pass color format.
Returns
true if initialization succeeded, false otherwise.