4#include <SDL3/SDL_gpu.h>
24 void release(SDL_GPUDevice *device);
29 SDL_ReleaseGPUSampler(device,
sampler);
33 SDL_ReleaseGPUGraphicsPipeline(device,
pipeline);
Definition CommandBuffer.h:17
CameraProjection
Definition Camera.h:16
@ PERSPECTIVE
Definition Camera.h:16
void renderDepthDebug(const Renderer &renderer, CommandBuffer &cmdBuf, const DepthDebugPass &pass, const DepthDebugPass::Options &opts)
float far
Definition DepthViz.h:14
VizStyle mode
Definition DepthViz.h:12
CameraProjection cam_proj
Definition DepthViz.h:15
float near
Definition DepthViz.h:13
SDL_GPUTexture * depthTexture
Definition DepthViz.h:17
SDL_GPUSampler * sampler
Definition DepthViz.h:18
VizStyle
Definition DepthViz.h:10
@ VIZ_GRAYSCALE
Definition DepthViz.h:10
@ VIZ_HEATMAP
Definition DepthViz.h:10
void release(SDL_GPUDevice *device)
Definition DepthViz.h:27
static DepthDebugPass create(const Renderer &renderer, SDL_GPUTexture *depthTexture)
SDL_GPUGraphicsPipeline * pipeline
Definition DepthViz.h:19
The Renderer class provides a rendering context for a graphical application.
Definition Renderer.h:20