|
Engine²
Open-source game engine written in C++.
|
#include "system/preparation/PrepareEndRenderTexture.hpp"#include "exception/EndRenderTextureCreationError.hpp"#include "resource/Context.hpp"#include "resource/GraphicSettings.hpp"#include "resource/TextureContainer.hpp"#include "utils/EndRenderTexture.hpp"#include "utils/webgpu.hpp"#include <glm/vec2.hpp>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. | |
|
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.
| core | The engine core providing access to graphic resources. |
| requiredSize | Width 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.
|
static |
|
static |