|
ObjectivelyGPU
Object oriented graphics framework for SDL3 and C
|
Framebuffer groups a color and/or depth texture as an off-screen render target. More...
Go to the source code of this file.
Data Structures | |
| struct | GPU_FramebufferCreateInfo |
| Parameters for creating a Framebuffer. More... | |
| struct | Framebuffer |
| An off-screen render target grouping a color and/or depth texture. More... | |
Macros | |
| #define | GPU_MAX_COLOR_TARGETS 4 |
| The maximum number of color attachments a Framebuffer may have. | |
Typedefs | |
| typedef struct RenderDevice | RenderDevice |
| typedef struct Framebuffer | Framebuffer |
| typedef struct Texture | Texture |
| typedef struct GPU_FramebufferCreateInfo | GPU_FramebufferCreateInfo |
| Parameters for creating a Framebuffer. | |
Functions | |
| OBJECTIVELYGPU_EXPORT Class * | _Framebuffer (void) |
Framebuffer groups a color and/or depth texture as an off-screen render target.
| #define GPU_MAX_COLOR_TARGETS 4 |
The maximum number of color attachments a Framebuffer may have.
A render pass binds N color targets plus at most one depth-stencil target; this caps N. Four matches the minimum guaranteed across backends.
| typedef struct Framebuffer Framebuffer |
| typedef struct GPU_FramebufferCreateInfo GPU_FramebufferCreateInfo |
Parameters for creating a Framebuffer.
The GPU-layer analogue of SDL's *CreateInfo structs, for a target that aggregates several SDL_GPUTexture attachments and so has no single SDL struct. Use a designated initializer; omitted fields default to zero (SDL_GPU_TEXTUREFORMAT_INVALID, SDL_GPU_SAMPLECOUNT_1).
| typedef struct RenderDevice RenderDevice |
| OBJECTIVELYGPU_EXPORT Class * _Framebuffer | ( | void | ) |