Skip to content

Commit

Permalink
Added COLOR_MASK_RGB enum value
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed Oct 16, 2023
1 parent 11d25e0 commit 29ed96c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Graphics/GraphicsEngine/interface/BlendState.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2019-2022 Diligent Graphics LLC
* Copyright 2019-2023 Diligent Graphics LLC
* Copyright 2015-2019 Egor Yusov
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -187,8 +187,11 @@ DILIGENT_TYPED_ENUM(COLOR_MASK, Uint8)
/// Allow data to be stored in the alpha component.
COLOR_MASK_ALPHA = 1u << 3u,

/// Allow data to be stored in all RGB components.
COLOR_MASK_RGB = COLOR_MASK_RED | COLOR_MASK_GREEN | COLOR_MASK_BLUE,

/// Allow data to be stored in all components.
COLOR_MASK_ALL = (((COLOR_MASK_RED | COLOR_MASK_GREEN) | COLOR_MASK_BLUE) | COLOR_MASK_ALPHA)
COLOR_MASK_ALL = (COLOR_MASK_RGB | COLOR_MASK_ALPHA)
};

DEFINE_FLAG_ENUM_OPERATORS(COLOR_MASK);
Expand Down

0 comments on commit 29ed96c

Please sign in to comment.