Saga3D API Documentation  1.0-RC4
SBlendState.h
Go to the documentation of this file.
1 #ifndef __SBLEND_STATE_H_INCLUDED__
2 #define __SBLEND_STATE_H_INCLUDED__
3 
4 #include "EBlendFactor.h"
5 #include "EBlendOp.h"
6 #include "EPixelFormat.h"
7 #include "GraphicsConstants.h"
8 #include <array>
9 
10 namespace saga
11 {
12 namespace video
13 {
15  {
16  R = 1 << 0,
17  G = 1 << 1,
18  B = 1 << 2,
19  A = 1 << 3,
22  };
23 
25  {
26  bool Enabled = false;
33  std::uint32_t ColorWriteMask;
34  };
35 
36  struct SBlendState
37  {
38  bool Enabled = false;
40  float Factors[4] = { 0.f };
41  std::array<SBlendAttachmentState, MAX_COLOR_ATTACHMENTS> AttachmentStates;
42  };
43 
44 } // namespace scene
45 } // namespace saga
46 
47 #endif // __SBLEND_STATE_H_INCLUDED__
48 
saga::video::E_BLEND_OP
E_BLEND_OP
Definition: EBlendOp.h:9
saga::video::B
@ B
Definition: SBlendState.h:18
saga::video::E_COLOR_COMPONENT
E_COLOR_COMPONENT
Definition: SBlendState.h:14
EPixelFormat.h
saga::video::SBlendState::AttachmentStates
std::array< SBlendAttachmentState, MAX_COLOR_ATTACHMENTS > AttachmentStates
Definition: SBlendState.h:41
saga::video::SBlendState::Enabled
bool Enabled
Definition: SBlendState.h:38
saga::video::A
@ A
Definition: SBlendState.h:19
saga::video::SBlendAttachmentState::SrcAlpha
E_BLEND_FACTOR SrcAlpha
Definition: SBlendState.h:30
saga::video::SBlendAttachmentState::SrcColor
E_BLEND_FACTOR SrcColor
Definition: SBlendState.h:27
EBlendOp.h
saga::video::SBlendState::ColorAttachmentCount
int ColorAttachmentCount
Definition: SBlendState.h:39
GraphicsConstants.h
saga::video::RGBA
@ RGBA
Definition: SBlendState.h:21
saga::video::SBlendAttachmentState
Definition: SBlendState.h:24
saga::video::SBlendAttachmentState::ColorBlendOp
E_BLEND_OP ColorBlendOp
Definition: SBlendState.h:29
saga::video::R
@ R
Definition: SBlendState.h:16
saga::video::SBlendState::Factors
float Factors[4]
Definition: SBlendState.h:40
saga::video::SBlendState
Definition: SBlendState.h:36
saga::video::SBlendAttachmentState::ColorWriteMask
std::uint32_t ColorWriteMask
Definition: SBlendState.h:33
saga::video::SBlendAttachmentState::DstColor
E_BLEND_FACTOR DstColor
Definition: SBlendState.h:28
saga::video::RGB
@ RGB
Definition: SBlendState.h:20
EBlendFactor.h
saga::video::E_BLEND_FACTOR
E_BLEND_FACTOR
Definition: EBlendFactor.h:9
saga::video::G
@ G
Definition: SBlendState.h:17
saga::video::SBlendAttachmentState::AlphaBlendOp
E_BLEND_OP AlphaBlendOp
Definition: SBlendState.h:32
saga::video::SBlendAttachmentState::DstAlpha
E_BLEND_FACTOR DstAlpha
Definition: SBlendState.h:31
saga
Definition: aabbox3d.h:11
saga::video::SBlendAttachmentState::Enabled
bool Enabled
Definition: SBlendState.h:26