From 11a5d4f2a35dfdcf61e16d4fcfba22e20ea6a3db Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 12 Jan 2022 22:17:20 +0200 Subject: [PATCH] Make various enums use uint8_t as their underlying type --- source/core/blend.h | 6 +++--- source/core/predicate.h | 2 +- source/core/stenciltest.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source/core/blend.h b/source/core/blend.h index da7c8c7f..50ea13bd 100644 --- a/source/core/blend.h +++ b/source/core/blend.h @@ -8,7 +8,7 @@ namespace Msp { namespace GL { -enum BlendEquation +enum BlendEquation: std::uint8_t { ADD, SUBTRACT, @@ -17,7 +17,7 @@ enum BlendEquation MAX }; -enum BlendFactor +enum BlendFactor: std::uint8_t { ZERO, ONE, @@ -35,7 +35,7 @@ enum BlendFactor ONE_MINUS_CONSTANT_ALPHA }; -enum ColorWriteMask +enum ColorWriteMask: std::uint8_t { WRITE_NONE = 0, WRITE_RED = 1, diff --git a/source/core/predicate.h b/source/core/predicate.h index 6b0a697b..38053d03 100644 --- a/source/core/predicate.h +++ b/source/core/predicate.h @@ -6,7 +6,7 @@ namespace Msp { namespace GL { -enum Predicate +enum Predicate: std::uint8_t { NEVER, ALWAYS, diff --git a/source/core/stenciltest.h b/source/core/stenciltest.h index c6a385d3..09f1d278 100644 --- a/source/core/stenciltest.h +++ b/source/core/stenciltest.h @@ -8,7 +8,7 @@ namespace Msp { namespace GL { -enum StencilOp +enum StencilOp: std::uint8_t { KEEP, SET_ZERO, -- 2.45.2