Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
GPUFrame.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <SDL3/SDL.h>
4#include <SDL3/SDL_gpu.h>
5#include "World3DRenderer.hpp"
6#include "World2DRenderer.hpp"
7
9{
10 // The same slot recording path is used by the swapchain and GPU readback
11 // integration tests. Caller retains command-buffer submission ownership.
12 [[nodiscard]] std::expected<World3DRenderStats, World3DRendererError> recordWorld3D(
14 Uint32 width, Uint32 height, World3DRenderer& renderer,
15 const SequenceWorld3DSlot& world);
16 bool present(
17 SDL_GPUDevice* device,
19 World3DRenderer* renderer = nullptr,
20 const SequenceWorld3DSlot* world = nullptr,
21 World2DRenderer* overlayRenderer = nullptr,
22 const SequenceWorld2DSlot* overlay = nullptr,
23 SDL_FColor backdrop = {0, 0, 0, 1}
24 );
25}
std::uint32_t height
std::uint32_t width
unsigned index
bool present(SDL_GPUDevice *device, SDL_Window *window, World3DRenderer *renderer, const SequenceWorld3DSlot *world, World2DRenderer *overlayRenderer, const SequenceWorld2DSlot *overlay, SDL_FColor backdrop)
Definition GPUFrame.cpp:57
std::expected< World3DRenderStats, World3DRendererError > recordWorld3D(SDL_GPUCommandBuffer *command, SDL_GPUTexture *target, Uint32 width, Uint32 height, World3DRenderer &renderer, const SequenceWorld3DSlot &world)
Definition GPUFrame.cpp:34