wisdom
Loading...
Searching...
No Matches
wisDeviceCreateSwapchain Struct Reference

Detailed Description

Specification


C Version:

C Implementation Specific Version:
// Provided by Wisdom 0.7.0.
WisResult wisVKDeviceCreateSwapchain(const WisVKDevice* self,
const WisVKSurface* surface,
const WisVKCommandQueue* queue,
const WisSwapchainDesc* desc,
WisVKSwapchain* swapchain);
// Provided by Wisdom 0.7.0.
WisResult wisDX12DeviceCreateSwapchain(const WisDX12Device* self,
const WisDX12Surface* surface,
const WisDX12CommandQueue* queue,
const WisSwapchainDesc* desc,
WisDX12Swapchain* swapchain);

C++ Version:

namespace wis{
// Provided by Wisdom 0.7.0.
WIS_NODISCARD wis::Swapchain Device::CreateSwapchain(const wis::Surface& surface,
const wis::CommandQueue& queue,
const wis::SwapchainDesc& desc,
wis::Result& out_result) const noexcept;
}
C++ Implementation Specific Version:
namespace wis{
// Provided by Wisdom 0.7.0.
WIS_NODISCARD wis::VKSwapchain VKDevice::CreateSwapchain(const wis::VKSurface& surface,
const wis::VKCommandQueue& queue,
const wis::SwapchainDesc& desc,
wis::Result& out_result) const noexcept;
// Provided by Wisdom 0.7.0.
WIS_NODISCARD wis::DX12Swapchain DX12Device::CreateSwapchain(const wis::DX12Surface& surface,
const wis::DX12CommandQueue& queue,
const wis::SwapchainDesc& desc,
wis::Result& out_result) const noexcept;
}

Parameters


  • this self self is a pointer to the valid WisDevice instance.
  • surface describes a pointer to WisSurface to create the swapchain for. Surface is ref-counted.
  • queue describes a pointer to WisCommandQueue to create the swapchain for. Queue is ref-counted and must be a graphics queue.
  • desc indicates a pointer to WisSwapchainDesc, which describes the swapchain to create.
  • swapchain points to WisSwapchain, which is initialized on success.
  • return denoting the outcome of operation.

Description


See Also