1 #ifndef NXNA_GRAPHICS_PIPELINESTATE_H
2 #define NXNA_GRAPHICS_PIPELINESTATE_H
4 #include "../NxnaCommon.h"
10 enum class Blend : nxna_byte
17 InverseDestinationAlpha
43 Blend AlphaDestinationBlend;
44 Blend AlphaSourceBlend;
47 Blend ColorDestinationBlend;
48 Blend ColorSourceBlend;
53 bool IndependentBlendEnabled;
66 #ifdef NXNA_ENABLE_DIRECT3D11
69 ID3D11BlendState* State;
93 enum class InputElementUsage
105 InputElementUsage ElementUsage;
118 #ifdef NXNA_ENABLE_DIRECT3D11
129 const void* Bytecode;
130 unsigned int BytecodeLength;
148 unsigned int Pipeline;
150 #ifdef NXNA_ENABLE_DIRECT3D11
161 enum class PrimitiveTopologyType : nxna_byte
170 enum class CullMode : nxna_byte
177 enum class FillMode : nxna_byte
185 CullMode CullingMode;
186 bool FrontCounterClockwise;
187 FillMode FillingMode;
188 bool ScissorTestEnabled;
199 #ifdef NXNA_ENABLE_DIRECT3D11
202 ID3D11RasterizerState* State;
212 PrimitiveTopologyType Topology;
226 #ifdef NXNA_ENABLE_DIRECT3D11
240 #define NXNA_RENDERTARGETBLENDSTATEDESC_ALPHABLEND { \
243 Nxna::Graphics::BlendFunction::Add, \
244 Nxna::Graphics::Blend::InverseSourceAlpha, \
245 Nxna::Graphics::Blend::One, \
247 Nxna::Graphics::BlendFunction::Add, \
248 Nxna::Graphics::Blend::InverseSourceAlpha, \
249 Nxna::Graphics::Blend::One \
253 #define NXNA_RASTERIZERSTATEDESC_CULLNONE { \
254 Nxna::Graphics::CullMode::None, \
256 Nxna::Graphics::FillMode::Solid, \
262 #endif // NXNA_GRAPHICS_PIPELINESTATE_H
Four 32-bit floating point numbers.
BlendFunction
Definition: PipelineState.h:20
Subtract source 1 from source 2.
Definition: PipelineState.h:191
Definition: PipelineState.h:142
Subtract source 2 from source 1.
InputElementFormat
Definition: PipelineState.h:75
Definition: PipelineState.h:183
Definition: PipelineState.h:51
Definition: PipelineState.h:58
Definition: PipelineState.h:127
Three 32-bit floating point numbers.
Definition: PipelineState.h:38
Definition: PipelineState.h:208
Two 32-bit floating point numbers.
A single 32-bit floating point number.
Definition: PipelineState.h:215
Use the maximum of sources 1 and 2.
Use the minimum of sources 1 and 2.
Definition: PipelineState.h:133
Definition: PipelineState.h:110