| 57 | } |
| 58 | |
| 59 | GraphicsState::GraphicsState(ref<Device> pDevice) : mpDevice(pDevice) |
| 60 | { |
| 61 | uint32_t vpCount = getMaxViewportCount(); |
| 62 | |
| 63 | // Create the viewports |
| 64 | mViewports.resize(vpCount); |
| 65 | mScissors.resize(vpCount); |
| 66 | mVpStack.resize(vpCount); |
| 67 | mScStack.resize(vpCount); |
| 68 | for (uint32_t i = 0; i < vpCount; i++) |
| 69 | { |
| 70 | setViewport(i, mViewports[i], true); |
| 71 | } |
| 72 | |
| 73 | mpGsoGraph = std::make_unique<GraphicsStateGraph>(); |
| 74 | } |
| 75 | |
| 76 | GraphicsState::~GraphicsState() = default; |
| 77 |
nothing calls this directly
no test coverage detected