Move render debug state setup into GL backend

This commit is contained in:
2026-06-04 20:12:54 +02:00
parent 1b771287f9
commit 51601adf6d
7 changed files with 123 additions and 21 deletions

View File

@@ -512,6 +512,14 @@ struct OpenGlCapabilityDispatch {
OpenGlCapabilityFn disable = nullptr;
};
struct OpenGlRenderPlatformHintDispatch {
OpenGlCapabilityFn enable = nullptr;
};
struct OpenGlDebugOutputStateDispatch {
OpenGlCapabilityFn enable = nullptr;
};
struct OpenGlBufferClearDispatch {
OpenGlClearFn clear = nullptr;
};
@@ -731,6 +739,10 @@ struct OpenGlMeshDeleteDispatch {
std::uint32_t state,
bool enabled,
OpenGlCapabilityDispatch dispatch) noexcept;
[[nodiscard]] pp::foundation::Status apply_opengl_render_platform_hints(
OpenGlRenderPlatformHintDispatch dispatch) noexcept;
[[nodiscard]] pp::foundation::Status apply_opengl_debug_output_states(
OpenGlDebugOutputStateDispatch dispatch) noexcept;
[[nodiscard]] pp::foundation::Status clear_opengl_buffers(
std::uint32_t mask,
OpenGlBufferClearDispatch dispatch) noexcept;