VV::V2::Surface struct

Surfaces hook onto a window to use as a rendering target.

Base classes

struct VV::V1::Surface
Native platform surface or window objects are abstracted by surface objects.

Derived classes

class VV::V3::Surface
Surfaces hook onto a window to use as a rendering target.

Public types

using Parent = V1::Surface

Public static functions

static auto Create(AppInstance::Handle _appHandle, const CreateInfo& _createInfo, Handle& _surfaceHandle) -> EResult
Create a surface (Default Allocator).
static void Destroy(AppInstance::Handle _appHandle, Surface::Handle _surfaceHandle)
Destroy a surface (Default Allocator).
static auto GetAvailableFormats(PhysicalDevice::Handle _deviceHandle, Surface::Handle _surfaceHandle, DynamicArray<Surface::Format>& _formatsContainer) -> EResult
Provides the available surface formats.
static auto GetSupportedPresentationModes(PhysicalDevice::Handle _deviceHandle, Surface::Handle _surfaceHandle, DynamicArray<EPresentationMode>& _presentationModesContainer) -> EResult
Provides the supported presentation modes.
static void Destroy(AppInstance::Handle _appHandle, Surface::Handle _surfaceHandle, const Memory::AllocationCallbacks* _allocator)
Destroy a VkSurfaceKHR object.

Function documentation

static EResult VV::V2::Surface::GetAvailableFormats(PhysicalDevice::Handle _deviceHandle, Surface::Handle _surfaceHandle, DynamicArray<Surface::Format>& _formatsContainer)

Provides the available surface formats.

Parameters
_deviceHandle
_surfaceHandle
_formatsContainer

static EResult VV::V2::Surface::GetSupportedPresentationModes(PhysicalDevice::Handle _deviceHandle, Surface::Handle _surfaceHandle, DynamicArray<EPresentationMode>& _presentationModesContainer)

Provides the supported presentation modes.

Parameters
_deviceHandle
_surfaceHandle
_presentationModesContainer

static void VV::V2::Surface::Destroy(AppInstance::Handle _appHandle, Surface::Handle _surfaceHandle, const Memory::AllocationCallbacks* _allocator)

Destroy a VkSurfaceKHR object.

Parameters
_appHandle
_surfaceHandle
_allocator

Specification