MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / GraphicsState

Method GraphicsState

Source/Falcor/Core/State/GraphicsState.cpp:59–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59GraphicsState::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
76GraphicsState::~GraphicsState() = default;
77

Callers

nothing calls this directly

Calls 2

getMaxViewportCountFunction · 0.85
resizeMethod · 0.45

Tested by

no test coverage detected