1
0
mirror of https://github.com/EduApps-CDG/OpenDX synced 2024-12-30 09:45:37 +01:00
OpenDX/src/d3d11/d3d11_context_state.h

36 lines
770 B
C
Raw Normal View History

#pragma once
#include <array>
#include "d3d11_state.h"
2017-12-04 13:39:37 +01:00
#include "d3d11_view.h"
namespace dxvk {
2017-12-04 13:39:37 +01:00
struct D3D11ContextStateOM {
std::array<Com<D3D11RenderTargetView>, D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT> renderTargetViews;
2017-12-04 13:39:37 +01:00
Rc<DxvkFramebuffer> framebuffer;
};
struct D3D11ContextStateRS {
uint32_t numViewports = 0;
uint32_t numScissors = 0;
std::array<D3D11_VIEWPORT, D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE> viewports;
std::array<D3D11_RECT, D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE> scissors;
Com<D3D11RasterizerState> state;
};
/**
* \brief Context state
*/
struct D3D11ContextState {
2017-12-04 13:39:37 +01:00
D3D11ContextStateOM om;
D3D11ContextStateRS rs;
};
}