1
0
mirror of https://github.com/borgesdan/xn65 synced 2024-12-29 21:54:47 +01:00

Remove BlendRenderTarget do arquivo de implementações

This commit is contained in:
Danilo 2024-11-13 09:50:42 -03:00
parent 146ae9cf89
commit b822909993
2 changed files with 15 additions and 16 deletions

View File

@ -9,20 +9,7 @@ namespace xna {
comptr<IDXGIAdapter1> Adapter;
comptr<IDXGIFactory1> Factory;
};
struct BlendRenderTarget {
bool Enabled{ true };
Blend Source{ Blend::SourceAlpha };
Blend Destination{ Blend::InverseSourceAlpha };
BlendOperation Operation{ BlendOperation::Add };
Blend SourceAlpha{ Blend::One };
Blend DestinationAlpha{ Blend::Zero };
BlendOperation OperationAlpha{ BlendOperation::Add };
ColorWriteChannels WriteMask{ ColorWriteChannels::All };
constexpr BlendRenderTarget() = default;
};
};
struct BlendStateImplementation {
friend class BlendState;

View File

@ -3,11 +3,23 @@
#include "../common/color.hpp"
#include "../default.hpp"
#include "gresource.hpp"
#include "../platform.hpp"
#include "gresource.hpp"
namespace xna {
struct BlendRenderTarget;
struct BlendRenderTarget {
bool Enabled{ true };
Blend Source{ Blend::SourceAlpha };
Blend Destination{ Blend::InverseSourceAlpha };
BlendOperation Operation{ BlendOperation::Add };
Blend SourceAlpha{ Blend::One };
Blend DestinationAlpha{ Blend::Zero };
BlendOperation OperationAlpha{ BlendOperation::Add };
ColorWriteChannels WriteMask{ ColorWriteChannels::All };
constexpr BlendRenderTarget() = default;
};
struct BlendStateImplementation;
//Contains blend state for the device.