Engine²
Open-source game engine written in C++.
Loading...
Searching...
No Matches
PrepareEndRenderTexture.cpp File Reference

Functions

static void EnsurePlaceholderEndRenderTexture (Graphic::Resource::Context &context, Graphic::Resource::TextureContainer &textureContainer)
static void EnsureSurfaceEndRenderTexture (Graphic::Resource::Context &context, Graphic::Resource::TextureContainer &textureContainer)
static void EnsureDepthTexture (Engine::Core &core, const glm::uvec2 &requiredSize)
 Ensure a depth render texture of the specified pixel dimensions exists in the texture container.

Function Documentation

◆ EnsureDepthTexture()

void EnsureDepthTexture ( Engine::Core & core,
const glm::uvec2 & requiredSize )
static

Ensure a depth render texture of the specified pixel dimensions exists in the texture container.

Ensures a 2D depth texture named by Graphic::System::END_DEPTH_RENDER_TEXTURE_ID is present in the core's Graphic::Resource::TextureContainer; if an existing texture has a different size it is replaced.

Parameters
coreThe engine core providing access to graphic resources.
requiredSizeWidth and height, in pixels, for the depth texture.

The created texture uses the Depth32Float format and is configured for texture binding, render attachment, copy source, and copy destination usage.

◆ EnsurePlaceholderEndRenderTexture()

void EnsurePlaceholderEndRenderTexture ( Graphic::Resource::Context & context,
Graphic::Resource::TextureContainer & textureContainer )
static

◆ EnsureSurfaceEndRenderTexture()

void EnsureSurfaceEndRenderTexture ( Graphic::Resource::Context & context,
Graphic::Resource::TextureContainer & textureContainer )
static