31 Geometry11* indices=
nullptr,INT baseVertex=0,UINT streamOffset=0);
39 void Scissor(
const RECT& value);
51 Microsoft::WRL::ComPtr<ID3D11RenderTargetView>
color;
52 Microsoft::WRL::ComPtr<ID3D11DepthStencilView>
depth;
57 template<
class Description>
using Key=std::array<
unsigned char,
sizeof(Description)>;
60 std::map<Key<D3D11_RASTERIZER_DESC>,Microsoft::WRL::ComPtr<ID3D11RasterizerState>>
rasterStates;
61 std::map<Key<D3D11_DEPTH_STENCIL_DESC>,Microsoft::WRL::ComPtr<ID3D11DepthStencilState>>
depthStates;
62 std::map<Key<D3D11_BLEND_DESC>,Microsoft::WRL::ComPtr<ID3D11BlendState>>
blendStates;
76 Microsoft::WRL::ComPtr<ID3D11RenderTargetView>
color;
77 Microsoft::WRL::ComPtr<ID3D11DepthStencilView>
depth;
Microsoft::WRL::ComPtr< ID3D11RenderTargetView > color
const D3D11_VIEWPORT & Viewport() const
const RECT & Scissor() const
Pipeline11 cachedPipeline
ID3D11DepthStencilState * cachedDepth
std::map< Key< D3D11_RASTERIZER_DESC >, Microsoft::WRL::ComPtr< ID3D11RasterizerState > > rasterStates
const std::string & Status() const
HRESULT ApplyPipeline(bool fixedPoints=false)
std::map< Key< D3D11_DEPTH_STENCIL_DESC >, Microsoft::WRL::ComPtr< ID3D11DepthStencilState > > depthStates
Materials11 & Materials()
std::map< Key< D3D11_BLEND_DESC >, Microsoft::WRL::ComPtr< ID3D11BlendState > > blendStates
HRESULT DrawImmediate(const void *vertices, UINT bytes, const VertexLayout11 &layout, Primitive11 primitive, UINT primitiveCount)
ID3D11RasterizerState * cachedRaster
HRESULT Initialize(Device11 &device, const std::filesystem::path &shaderDirectory={})
ID3D11BlendState * cachedBlend
Microsoft::WRL::ComPtr< ID3D11DepthStencilView > depth
HRESULT Target(ID3D11RenderTargetView *color, ID3D11DepthStencilView *depth, const D3D11_VIEWPORT &viewport)
HRESULT Draw(Geometry11 &vertices, const VertexLayout11 &layout, Primitive11 primitive, UINT first, UINT primitiveCount, Geometry11 *indices=nullptr, INT baseVertex=0, UINT streamOffset=0)
static Key< Description > Bytes(const Description &value)
std::array< unsigned char, sizeof(Description)> Key
Microsoft::WRL::ComPtr< ID3D11DepthStencilView > depth
Microsoft::WRL::ComPtr< ID3D11RenderTargetView > color