Map renderer color write masks to OpenGL
This commit is contained in:
@@ -39,6 +39,13 @@ struct OpenGlEnumMapping {
|
||||
bool supported = false;
|
||||
};
|
||||
|
||||
struct OpenGlColorWriteMask {
|
||||
std::uint8_t r = 0;
|
||||
std::uint8_t g = 0;
|
||||
std::uint8_t b = 0;
|
||||
std::uint8_t a = 0;
|
||||
};
|
||||
|
||||
struct OpenGlReadbackFormat {
|
||||
std::uint32_t pixel_format = 0;
|
||||
std::uint32_t component_type = 0;
|
||||
@@ -155,6 +162,8 @@ struct OpenGlWindowsWglContextConfig {
|
||||
[[nodiscard]] std::uint32_t rgba32f_internal_format() noexcept;
|
||||
[[nodiscard]] std::uint8_t color_write_disabled() noexcept;
|
||||
[[nodiscard]] std::uint8_t color_write_enabled() noexcept;
|
||||
[[nodiscard]] OpenGlColorWriteMask color_write_mask_for_renderer_blend_state(
|
||||
pp::renderer::BlendState state) noexcept;
|
||||
[[nodiscard]] std::uint32_t linear_texture_filter() noexcept;
|
||||
[[nodiscard]] std::uint32_t linear_mipmap_linear_texture_filter() noexcept;
|
||||
[[nodiscard]] std::uint32_t nearest_texture_filter() noexcept;
|
||||
|
||||
Reference in New Issue
Block a user