![]() |
Rise
The Vieneo Province
|
#include <DrawContext11.h>
Classes | |
| struct | Saved |
Public Member Functions | |
| HRESULT | Initialize (Device11 &device, const std::filesystem::path &shaderDirectory={}) |
| void | Reset () |
| void | BindScene () |
| void | ReleaseTargets () |
| 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) |
| HRESULT | DrawImmediate (const void *vertices, UINT bytes, const VertexLayout11 &layout, Primitive11 primitive, UINT primitiveCount) |
| HRESULT | ApplyPipeline (bool fixedPoints=false) |
| Pipeline11 & | Pipeline () |
| FixedState11 & | Fixed () |
| Materials11 & | Materials () |
| void | Material (int pass) |
| int | Material () const |
| void | Scissor (const RECT &value) |
| const RECT & | Scissor () const |
| const D3D11_VIEWPORT & | Viewport () const |
| Device11 * | Owner () const |
| const std::string & | Status () const |
| Saved | Capture () const |
| HRESULT | Restore (const Saved &saved) |
Private Types | |
| template<class Description> | |
| using | Key = std::array<unsigned char,sizeof(Description)> |
Static Private Member Functions | |
| template<class Description> | |
| static Key< Description > | Bytes (const Description &value) |
Private Attributes | |
| std::map< Key< D3D11_RASTERIZER_DESC >, Microsoft::WRL::ComPtr< ID3D11RasterizerState > > | rasterStates |
| std::map< Key< D3D11_DEPTH_STENCIL_DESC >, Microsoft::WRL::ComPtr< ID3D11DepthStencilState > > | depthStates |
| std::map< Key< D3D11_BLEND_DESC >, Microsoft::WRL::ComPtr< ID3D11BlendState > > | blendStates |
| Device11 * | owner =nullptr |
| FixedFunction11 | fixed |
| FixedState11 | fixedState |
| Materials11 | materials |
| Pipeline11 | pipeline |
| Pipeline11 | cachedPipeline |
| ID3D11RasterizerState * | cachedRaster =nullptr |
| ID3D11DepthStencilState * | cachedDepth =nullptr |
| ID3D11BlendState * | cachedBlend =nullptr |
| int | material =-1 |
| RECT | scissor {} |
| D3D11_VIEWPORT | viewport {} |
| Microsoft::WRL::ComPtr< ID3D11RenderTargetView > | color |
| Microsoft::WRL::ComPtr< ID3D11DepthStencilView > | depth |
| Geometry11 | immediate |
| Geometry11 | fanIndices |
| UINT | immediateCapacity =0 |
| UINT | fanCapacity =0 |
| std::string | status |
Definition at line 22 of file DrawContext11.h.
|
private |
Definition at line 57 of file DrawContext11.h.
| HRESULT Rendering::DrawContext11::ApplyPipeline | ( | bool | fixedPoints = false | ) |
Definition at line 67 of file DrawContext11.cpp.
| void Rendering::DrawContext11::BindScene | ( | ) |
Definition at line 33 of file DrawContext11.cpp.
|
inlinestaticprivate |
| DrawContext11::Saved Rendering::DrawContext11::Capture | ( | ) | const |
| HRESULT Rendering::DrawContext11::Draw | ( | Geometry11 & | vertices, |
| const VertexLayout11 & | layout, | ||
| Primitive11 | primitive, | ||
| UINT | first, | ||
| UINT | primitiveCount, | ||
| Geometry11 * | indices = nullptr, | ||
| INT | baseVertex = 0, | ||
| UINT | streamOffset = 0 ) |
| HRESULT Rendering::DrawContext11::DrawImmediate | ( | const void * | vertices, |
| UINT | bytes, | ||
| const VertexLayout11 & | layout, | ||
| Primitive11 | primitive, | ||
| UINT | primitiveCount ) |
Definition at line 171 of file DrawContext11.cpp.
|
inline |
Definition at line 35 of file DrawContext11.h.
| HRESULT Rendering::DrawContext11::Initialize | ( | Device11 & | device, |
| const std::filesystem::path & | shaderDirectory = {} ) |
Definition at line 26 of file DrawContext11.cpp.
|
inline |
Definition at line 38 of file DrawContext11.h.
|
inline |
|
inline |
|
inline |
| void Rendering::DrawContext11::ReleaseTargets | ( | ) |
Definition at line 40 of file DrawContext11.cpp.
| void Rendering::DrawContext11::Reset | ( | ) |
Definition at line 18 of file DrawContext11.cpp.
Definition at line 62 of file DrawContext11.cpp.
|
inline |
Definition at line 40 of file DrawContext11.h.
| void Rendering::DrawContext11::Scissor | ( | const RECT & | value | ) |
Definition at line 57 of file DrawContext11.cpp.
|
inline |
| HRESULT Rendering::DrawContext11::Target | ( | ID3D11RenderTargetView * | color, |
| ID3D11DepthStencilView * | depth, | ||
| const D3D11_VIEWPORT & | viewport ) |
Definition at line 45 of file DrawContext11.cpp.
|
inline |
|
private |
Definition at line 62 of file DrawContext11.h.
|
private |
Definition at line 72 of file DrawContext11.h.
|
private |
Definition at line 71 of file DrawContext11.h.
|
private |
Definition at line 68 of file DrawContext11.h.
|
private |
Definition at line 70 of file DrawContext11.h.
|
private |
Definition at line 76 of file DrawContext11.h.
|
private |
Definition at line 77 of file DrawContext11.h.
|
private |
Definition at line 61 of file DrawContext11.h.
|
private |
Definition at line 79 of file DrawContext11.h.
|
private |
Definition at line 78 of file DrawContext11.h.
|
private |
Definition at line 64 of file DrawContext11.h.
|
private |
Definition at line 65 of file DrawContext11.h.
|
private |
Definition at line 78 of file DrawContext11.h.
|
private |
Definition at line 79 of file DrawContext11.h.
|
private |
Definition at line 73 of file DrawContext11.h.
|
private |
Definition at line 66 of file DrawContext11.h.
|
private |
Definition at line 63 of file DrawContext11.h.
|
private |
Definition at line 67 of file DrawContext11.h.
|
private |
Definition at line 60 of file DrawContext11.h.
|
private |
Definition at line 74 of file DrawContext11.h.
|
private |
Definition at line 80 of file DrawContext11.h.
|
private |
Definition at line 75 of file DrawContext11.h.