6 class RHIDeviceSemaphore;
61 return static_cast<float>(xy.x) /
static_cast<float>(xy.y);
#define ENUM_NAME_CONV_BEGIN(T)
Defines convince to_string() method and format_as() [fmt] for the respective enum class Example usage...
Definition Enums.hpp:82
#define ENUM_NAME(E)
Definition Enums.hpp:93
Definition Device.hpp:246
Handle type for RHI Objects.
Definition Details.hpp:43
Base class for all RHI objects.
Definition Details.hpp:17
Definition Swapchain.hpp:32
const RHIDevice & mDevice
Definition Swapchain.hpp:34
RHISwapchain(RHIDevice const &device, SwapchainDesc const &desc)
Definition Swapchain.hpp:51
virtual RHISwapchainResult GetNextImage(uint64_t timeout_ns, RHIDeviceHandle< RHIDeviceSemaphore > semaphore, RHIDeviceHandle< RHIDeviceFence > fence, uint32_t &imageIndex)=0
virtual Span< RHITexture *const > GetImages() const =0
struct Foundation::RHI::RHISwapchain::SwapchainDesc mDesc
virtual void DebugSetObjectName(const char *name)=0
virtual RHIExtent2D GetExtents() const =0
float GetAspectRatio() const
Definition Swapchain.hpp:59
std::span< T > Span
Alias for std::span
Definition Container.hpp:62
Low-level Rendering Hardware Interface (RHI) abstractions.
Definition Application.hpp:3
RHISwapchainPresentMode
Definition Swapchain.hpp:24
RHIColorSpace
Definition Common.hpp:131
RHIResourceFormat
Definition Common.hpp:34
bool RHISwapchainResultMayPresent(RHISwapchainResult result)
Definition Swapchain.hpp:20
glm::vec< 2, uint32_t > RHIExtent2D
Definition Common.hpp:10
RHISwapchainResult
Definition Swapchain.hpp:9
Definition Swapchain.hpp:36
RHIDeviceHandle< RHISurface > surface
Definition Swapchain.hpp:48
uint32_t minBufferCount
Definition Swapchain.hpp:44
RHIResourceFormat format
Definition Swapchain.hpp:38
RHIColorSpace colorSpace
Definition Swapchain.hpp:39
RHISwapchainPresentMode presentMode
Definition Swapchain.hpp:46
RHIExtent2D extents
Definition Swapchain.hpp:41