Function Prototype
vkGetRenderingAreaGranularity
Returns the granularity for dynamic rendering optimal render area
To query the render area granularity for a render pass instance, call:
void vkGetRenderingAreaGranularity(
VkDevice device,
const VkRenderingAreaInfo* pRenderingAreaInfo,
VkExtent2D* pGranularity);
pub fn get_rendering_area_granularity(
device: vk::Device,
p_rendering_area_info: *const vk::RenderingAreaInfo,
p_granularity: *mut vk::Extent2D,
);
void vkGetRenderingAreaGranularityKHR(
VkDevice device,
const VkRenderingAreaInfo* pRenderingAreaInfo,
VkExtent2D* pGranularity);
pub fn get_rendering_area_granularity_khr(
device: vk::Device,
p_rendering_area_info: *const vk::RenderingAreaInfo,
p_granularity: *mut vk::Extent2D,
);
deviceis the logical device that owns the render pass instance.pRenderingAreaInfois a pointer to a VkRenderingAreaInfo structure specifying details of the render pass instance to query the render area granularity for.pGranularityis a pointer to a VkExtent2D structure in which the granularity is returned.
The conditions leading to an optimal renderArea are:
- the
offset.xmember inrenderAreais a multiple of thewidthmember of the returned VkExtent2D (the horizontal granularity). - the
offset.ymember inrenderAreais a multiple of theheightmember of the returned VkExtent2D (the vertical granularity). - either the
extent.widthmember inrenderAreais a multiple of the horizontal granularity oroffset.x+extent.widthis equal to thewidthof each attachment used in the render pass instance. - either the
extent.heightmember inrenderAreais a multiple of the vertical granularity oroffset.y+extent.heightis equal to theheightof each attachment used in the render pass instance.
Valid Usage (Implicit)
VUID-vkGetRenderingAreaGranularity-device-parameter
device must be a valid VkDevice handle
VUID-vkGetRenderingAreaGranularity-pRenderingAreaInfo-parameter
pRenderingAreaInfo must be a valid pointer to a valid VkRenderingAreaInfo structure
VUID-vkGetRenderingAreaGranularity-pGranularity-parameter
pGranularity must be a valid pointer to a VkExtent2D structure
Parent
VK_VERSION_1_4Type
Function Prototype