15 #include <vsg/state/GraphicsPipeline.h>
19 using Viewports = std::vector<VkViewport>;
20 using Scissors = std::vector<VkRect2D>;
40 void set(int32_t x, int32_t y, uint32_t width, uint32_t height);
50 void read(
Input& input)
override;
51 void write(
Output& output)
const override;
52 void apply(
Context& context, VkGraphicsPipelineCreateInfo& pipelineInfo)
const override;
ViewportState encapsulates VkPipelineViewportStateCreateInfo settings passed when setting up Graphics...
Definition: ViewportState.h:24
Viewports viewports
VkPipelineViewportStateCreateInfo settings.
Definition: ViewportState.h:36
ViewportState(int32_t x, int32_t y, uint32_t width, uint32_t height)
Create ViewportState containing a single Viewport and Scissor pair with specified position and extent...
int compare(const Object &rhs) const override
compare two objects, return -1 if this object is less than rhs, return 0 if it's equal,...
ViewportState(const VkExtent2D &extent)
Create ViewportState containing a single Viewport and Scissor pair with specified extent located at o...
VkViewport & getViewport()
get or create the first Viewport
void set(int32_t x, int32_t y, uint32_t width, uint32_t height)
set to a single Viewport and Scissor pair with specified extent
VkRect2D & getScissor()
get or create the first Scissor