Plasma Engine  2.0
Loading...
Searching...
No Matches
CommandEncoderState.h
1
2#pragma once
3
4#include <Foundation/Math/Color.h>
5#include <Foundation/Math/Rect.h>
6#include <RendererFoundation/RendererFoundationDLL.h>
7
8
9struct PL_RENDERERFOUNDATION_DLL plGALCommandEncoderRenderState final
10{
11 void InvalidateState();
12 plGALShaderHandle m_hShader;
13 plGALBufferHandle m_hVertexBuffers[PL_GAL_MAX_VERTEX_BUFFER_COUNT];
14 plGALBufferHandle m_hIndexBuffer;
15
16 plGALVertexDeclarationHandle m_hVertexDeclaration;
17 plGALPrimitiveTopology::Enum m_Topology = plGALPrimitiveTopology::ENUM_COUNT;
18
19 plGALBlendStateHandle m_hBlendState;
20 plColor m_BlendFactor = plColor(0, 0, 0, 0);
21 plUInt32 m_uiSampleMask = 0;
22
23 plGALDepthStencilStateHandle m_hDepthStencilState;
24 plUInt8 m_uiStencilRefValue = 0;
25
26 plGALRasterizerStateHandle m_hRasterizerState;
27
28 plRectU32 m_ScissorRect = plRectU32(0xFFFFFFFF, 0xFFFFFFFF, 0, 0);
30 float m_fViewPortMinDepth = plMath::MaxValue<float>();
31 float m_fViewPortMaxDepth = -plMath::MaxValue<float>();
32};
plColor represents an RGBA color in linear color space. Values are stored as float,...
Definition Color.h:44
Definition RendererFoundationDLL.h:467
Definition RendererFoundationDLL.h:418
Definition RendererFoundationDLL.h:460
Definition RendererFoundationDLL.h:474
Definition RendererFoundationDLL.h:404
Definition RendererFoundationDLL.h:488
constexpr TYPE MaxValue()
Returns the largest possible positive value (that is not infinity).
Definition CommandEncoderState.h:10