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

Method setViewport

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

Source from the content-addressed store, hash-verified

232}
233
234void GraphicsState::setViewport(uint32_t index, const GraphicsState::Viewport& vp, bool setScissors)
235{
236 mViewports[index] = vp;
237
238 if (setScissors)
239 {
240 GraphicsState::Scissor sc;
241 sc.left = (int32_t)vp.originX;
242 sc.right = sc.left + (int32_t)vp.width;
243 sc.top = (int32_t)vp.originY;
244 sc.bottom = sc.top + (int32_t)vp.height;
245 this->setScissors(index, sc);
246 }
247}
248
249void GraphicsState::setScissors(uint32_t index, const GraphicsState::Scissor& sc)
250{

Callers 3

renderMethod · 0.80
initIntegratorMethod · 0.80
blitMethod · 0.80

Calls 1

setScissorsMethod · 0.95

Tested by

no test coverage detected