ObjectivelyGPU
Object oriented graphics framework for SDL3 and C
Loading...
Searching...
No Matches
GraphicsPipeline.h File Reference

GraphicsPipeline wraps an SDL_GPUGraphicsPipeline, owning its handle. More...

#include <SDL3/SDL_gpu.h>
#include <Objectively/Object.h>
#include <ObjectivelyGPU/Types.h>

Go to the source code of this file.

Data Structures

struct  GraphicsPipeline
 An SDL_GPUGraphicsPipeline: the compiled vertex/fragment program plus all fixed-function render state (blend, rasteriser, depth/stencil, targets). More...
 

Typedefs

typedef struct RenderDevice RenderDevice
 
typedef struct GraphicsPipeline GraphicsPipeline
 

Functions

OBJECTIVELYGPU_EXPORT Class * _GraphicsPipeline (void)
 

Variables

OBJECTIVELYGPU_EXPORT const SDL_GPUColorTargetBlendState GPU_BlendStateOpaque
 Opaque blending: source color overwrites the destination (no blending).
 
OBJECTIVELYGPU_EXPORT const SDL_GPUColorTargetBlendState GPU_BlendStateAlpha
 Straight (non-premultiplied) alpha blending: src·srcA + dst·(1 - srcA).
 
OBJECTIVELYGPU_EXPORT const SDL_GPUColorTargetBlendState GPU_BlendStatePremultipliedAlpha
 Premultiplied alpha blending: src + dst·(1 - srcA).
 
OBJECTIVELYGPU_EXPORT const SDL_GPUColorTargetBlendState GPU_BlendStateAdditive
 Additive blending: src·srcA + dst, for glow, particles, and light accumulation.
 
OBJECTIVELYGPU_EXPORT const SDL_GPUGraphicsPipelineCreateInfo GPU_GraphicsPipeline3D
 3D world geometry: triangle list, solid fill, back-face culling (CCW front), depth test and write enabled with LESS_OR_EQUAL.
 
OBJECTIVELYGPU_EXPORT const SDL_GPUGraphicsPipelineCreateInfo GPU_GraphicsPipeline2D
 2D UI and sprites: triangle list, solid fill, no culling, no depth test.
 

Detailed Description

GraphicsPipeline wraps an SDL_GPUGraphicsPipeline, owning its handle.

Typedef Documentation

◆ GraphicsPipeline

◆ RenderDevice

typedef struct RenderDevice RenderDevice

Function Documentation

◆ _GraphicsPipeline()

OBJECTIVELYGPU_EXPORT Class * _GraphicsPipeline ( void  )