|
Foundation
|
The root object of everything RHI. Implementation of this class inherently defines the RHI backend. More...
#include <Application.hpp>
Public Member Functions | |
| RHIApplication ()=default | |
| RHIApplication (RHIApplication const &)=delete | |
| virtual Span< const RHIDevice::DeviceDesc > | EnumerateDevices () const =0 |
| virtual RHIApplicationScopedHandle< RHIDevice > | CreateDevice (RHIDevice::DeviceDesc const &desc)=0 |
| virtual RHIDevice * | GetDevice (Handle handle) const =0 |
| virtual void | DestroyDevice (Handle handle)=0 |
| virtual String | ResolveRelativePathBase (StringView path="") const =0 |
| Retrives path relative to the application executable. | |
| virtual String | ResolveRelativePathData (StringView path="") const =0 |
| Retrives path that's writable and persistent. | |
| virtual Optional< RHIFileInfo > | QueryFileInfo (StringView path) const =0 |
| virtual bool | IterateDirectory (StringView path, RHIDirectoryIteratorCallback cb, void *userData) const =0 |
| Iterate over the files in a directory, calling the provided callback for each file. | |
| virtual bool | CreateDirectory (StringView path) const =0 |
| virtual bool | RemoveDirectory (StringView path) const =0 |
| virtual bool | RemoveFile (StringView path) const =0 |
| template<typename T > | |
| bool | IterateDirectory (StringView path, T &&cb) const |
| Iterate over the files in a directory, calling the provided callback for each file. | |
Public Member Functions inherited from Foundation::RHI::RHIObject | |
| RHIObject ()=default | |
| RHIObject (RHIObject const &)=delete | |
| RHIObject & | operator= (const RHIObject &)=delete |
| RHIObject (RHIObject &&)=delete | |
| RHIObject & | operator= (RHIObject &&)=delete |
| virtual | ~RHIObject ()=default |
|
default |
|
delete |
|
pure virtual |
Implemented in Foundation::RHI::VulkanApplication.
|
pure virtual |
Implemented in Foundation::RHI::VulkanApplication.
|
pure virtual |
Implemented in Foundation::RHI::VulkanApplication.
|
pure virtual |
Implemented in Foundation::RHI::VulkanApplication.
Implemented in Foundation::RHI::VulkanApplication.
|
pure virtual |
Iterate over the files in a directory, calling the provided callback for each file.
| cb | Callback invoked per entry; returns true to continue iterating, false to stop. |
Implemented in Foundation::RHI::VulkanApplication.
|
inline |
Iterate over the files in a directory, calling the provided callback for each file.
| T | Lambda taking (StringView directory, StringView file) -> bool Returns true to continue iterating, false to stop. |
|
pure virtual |
Implemented in Foundation::RHI::VulkanApplication.
|
pure virtual |
Implemented in Foundation::RHI::VulkanApplication.
|
pure virtual |
Implemented in Foundation::RHI::VulkanApplication.
|
pure virtual |
Retrives path relative to the application executable.
Implemented in Foundation::RHI::VulkanApplication.
|
pure virtual |
Retrives path that's writable and persistent.
Implemented in Foundation::RHI::VulkanApplication.