|
ObjectivelyGPU
Object oriented graphics framework for SDL3 and C
|
An SDL_GPUGraphicsPipeline: the compiled vertex/fragment program plus all fixed-function render state (blend, rasteriser, depth/stencil, targets).
More...
#include <GraphicsPipeline.h>
Public Member Functions | |
| GraphicsPipeline * | initWithDevice (GraphicsPipeline *self, RenderDevice *device, const SDL_GPUGraphicsPipelineCreateInfo *info) |
Initializes this GraphicsPipeline, compiling it from info. | |
| Class * | _GraphicsPipeline (void) |
| The GraphicsPipeline archetype. | |
Data Fields | |
| Object | object |
| The superclass. | |
| SDL_GPUGraphicsPipeline * | pipeline |
| The underlying SDL graphics pipeline. | |
| ident | data |
| User data. | |
Protected Attributes | |
| GraphicsPipelineInterface * | interface |
| The interface. | |
An SDL_GPUGraphicsPipeline: the compiled vertex/fragment program plus all fixed-function render state (blend, rasteriser, depth/stencil, targets).
GraphicsPipeline owns its underlying SDL_GPUGraphicsPipeline and releases it in dealloc, so a pipeline is freed with release like any other Objectively object. Bind it with RenderPass::bindPipeline via its pipeline handle.
| Class * _GraphicsPipeline | ( | void | ) |
The GraphicsPipeline archetype.
| GraphicsPipeline * initWithDevice | ( | GraphicsPipeline * | self, |
| RenderDevice * | device, | ||
| const SDL_GPUGraphicsPipelineCreateInfo * | info | ||
| ) |
Initializes this GraphicsPipeline, compiling it from info.
This is the designated initializer. All shaders, vertex input state, blend, rasteriser, depth/stencil state, and colour target formats are supplied in info.
| self | The GraphicsPipeline. |
| device | The RenderDevice used to create and release the pipeline. Retained. |
| info | Graphics pipeline creation parameters. |
NULL on failure. | ident GraphicsPipeline::data |
User data.
|
protected |
The interface.
| Object GraphicsPipeline::object |
The superclass.
| SDL_GPUGraphicsPipeline* GraphicsPipeline::pipeline |
The underlying SDL graphics pipeline.