Commit 04b22aef authored by Rosen's avatar Rosen
Browse files

wsi: Add doc for the surface property interface



Change-Id: I9483b0fe7fbeafdc6ff2ae5d66da6762e373ab25
Signed-off-by: Rosen's avatarRosen Zhelev <rosen.zhelev@arm.com>
parent 483f4dee
Pipeline #78750 passed with stage
in 1 minute and 9 seconds
......@@ -41,14 +41,23 @@ namespace wsi
class surface_properties
{
public:
/**
* Implementation of vkGetPhysicalDeviceSurfaceCapabilitiesKHR for the specific VkSurface type.
*/
virtual VkResult get_surface_capabilities(VkPhysicalDevice physical_device, VkSurfaceKHR surface,
VkSurfaceCapabilitiesKHR *surface_capabilities) = 0;
VkSurfaceCapabilitiesKHR *surface_capabilities) = 0;
/**
* Implementation of vkGetPhysicalDeviceSurfaceFormatsKHR for the specific VkSurface type.
*/
virtual VkResult get_surface_formats(VkPhysicalDevice physical_device, VkSurfaceKHR surface,
uint32_t *surface_format_count, VkSurfaceFormatKHR *surface_formats) = 0;
uint32_t *surface_format_count, VkSurfaceFormatKHR *surface_formats) = 0;
/**
* Implementation of vkGetPhysicalDeviceSurfacePresentModesKHR for the specific VkSurface type.
*/
virtual VkResult get_surface_present_modes(VkPhysicalDevice physical_device, VkSurfaceKHR surface,
uint32_t *present_mode_count, VkPresentModeKHR *present_modes) = 0;
uint32_t *present_mode_count, VkPresentModeKHR *present_modes) = 0;
};
} /* namespace wsi */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment