20160517 - VK_AMD_rasterization_order Time Saver


(1.) Download and use the latest vulkan.h from here.

(2.) Add VK_AMD_RASTERIZATION_ORDER_EXTENSION_NAME (this string, "VK_AMD_rasterization_order", is defined in vulkan.h) to your VkDeviceCreateInfo.ppEnabledExtensionNames.

(3.) Then use the extension, for example as follows,
// using "static" here to have structure pre-zeroed, feel free to clear instead, etc
static VkPipelineRasterizationStateRasterizationOrderAMD orderAMD;
orderAMD.sType = VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_RASTERIZATION_ORDER_AMD;
orderAMD.rasterizationOrder = VK_RASTERIZATION_ORDER_RELAXED_AMD;

// append it into the pNext of raster state
VkPipelineRasterizationStateCreateInfo createInfo;
...
createInfo.pNext = &orderAMD;