Foundation
Loading...
Searching...
No Matches
Surface.hpp
Go to the documentation of this file.
1#pragma once
2#include "Common.hpp"
3#include "Swapchain.hpp" // for RHISwapchainPresentMode
4
5namespace Foundation::RHI {
6 class RHISurface : public RHIObject {
7 public:
8 struct SurfaceDesc {
9 void* windowHandle = nullptr; // e.g. SDL_Window*
10 };
11
12 [[nodiscard]] virtual Span<RHISurfaceFormat const> GetSupportedFormats() const = 0;
14
15 virtual void DebugSetObjectName(const char* name) = 0;
16 };
17
18}
Base class for all RHI objects.
Definition Details.hpp:17
Definition Surface.hpp:6
virtual Span< RHISurfaceFormat const > GetSupportedFormats() const =0
virtual void DebugSetObjectName(const char *name)=0
virtual Span< RHISwapchainPresentMode const > GetSupportedPresentModes() const =0
std::span< T > Span
Alias for std::span
Definition Container.hpp:62
Low-level Rendering Hardware Interface (RHI) abstractions.
Definition Application.hpp:3
void * windowHandle
Definition Surface.hpp:9