April 2017
Intermediate to advanced
700 pages
21h 36m
English
The viewport state can be specified to be one of the dynamic pipeline states. We do this during the pipeline creation (refer to the Specifying pipeline dynamic states recipe from Chapter 8, Graphics and Compute Pipelines). Here, dimensions of the viewport are specified with a function call like this:
vkCmdSetViewport( command_buffer, first_viewport, static_cast<uint32_t>(viewports.size()), viewports.data() );
Parameters defining the dimensions of each viewport used during rendering (refer to the Specifying a pipeline viewport and scissor test state recipe from Chapter 8, Graphics and Compute Pipelines) are specified through an array, where each element of the array corresponds to a given viewport (offset by the value specified ...
Read now
Unlock full access