Move texture2d mapping to renderer gl

This commit is contained in:
2026-06-02 06:41:00 +02:00
parent 02f14f1bf5
commit 85a5d19a3e
6 changed files with 68 additions and 15 deletions

View File

@@ -123,6 +123,11 @@ std::uint32_t texture_upload_type_for_internal_format(std::uint32_t internal_for
}
}
std::uint32_t unsigned_byte_component_type() noexcept
{
return gl_unsigned_byte;
}
std::uint32_t rgba_pixel_format() noexcept
{
return gl_rgba;

View File

@@ -43,6 +43,7 @@ struct OpenGlReadbackFormat {
OpenGlRuntime runtime) noexcept;
[[nodiscard]] std::uint32_t texture_upload_type_for_internal_format(std::uint32_t internal_format) noexcept;
[[nodiscard]] std::uint32_t unsigned_byte_component_type() noexcept;
[[nodiscard]] std::uint32_t rgba_pixel_format() noexcept;
[[nodiscard]] OpenGlPixelFormat texture_format_for_channel_count(std::uint32_t channel_count) noexcept;
[[nodiscard]] OpenGlReadbackFormat rgba8_readback_format() noexcept;