vpr::GraphicsPipelineInfo struct

This struct is used to define most of the pipeline state for a Vulkan vkGraphicsPipeline object.

Contents

All members have default values that are reasonable chosen with an eye towards stability, but make sure to update the following:

  • DynamicStateInfo
  • VertexInfo
  • MultisampleInfo (whether or not MSAA is on, sample count) And be aware of the default values and useful values for:
  • AssemblyInfo: update if not using triangle lists
  • RasterizationInfo: Set culling mode, winding direction, and polygon rendering mode.

Public functions

auto GetPipelineCreateInfo() const -> VkGraphicsPipelineCreateInfo
This method returns a VkGraphicsPipelineCreateInfo struct with its internal state object pointers set to point to the members of this class.

Function documentation

VkGraphicsPipelineCreateInfo vpr::GraphicsPipelineInfo::GetPipelineCreateInfo() const

This method returns a VkGraphicsPipelineCreateInfo struct with its internal state object pointers set to point to the members of this class.

This is useful for short-cutting having to set them all yourself, but be aware of object lifetime and make sure the class instance being pointed to exists when using the returned VkGraphicsPipelineCreateInfo struct! Also, note that not all fields are filled: you MUST fill the following fields yourself:

  • renderPass
  • subpass
  • layout
  • stageCount
  • pStages