Foundation
Loading...
Searching...
No Matches
Classes | Namespaces | Functions | Variables
Examples.hpp File Reference
#include <RHIVulkan/Application.hpp>
#include <RenderCore/Renderer.hpp>
#include <Math/Math.hpp>

Go to the source code of this file.

Classes

struct  ExampleFpsCounter
 
struct  ExamplesArcballCamera
 

Namespaces

namespace  details
 

Functions

void details::CreateSwapchain (SDL_Window *window, RHIDevice *device, RHIDeviceScopedHandle< RHISwapchain > &outSwap)
 
auto Examples_InitVulkan (SDL_Window *window, RendererDesc const &desc={})
 
bool Examples_ShouldClose (SDL_Window *window, Renderer *renderer, RHIDeviceScopedHandle< RHISwapchain > &swap, SDL_Event *outEvent=nullptr)
 
void Examples_NewFrame (Renderer *renderer)
 
auto Examples_DestroyVulkan (SDL_Window *window, Renderer *renderer, VulkanApplication *app, RHIApplicationScopedHandle< RHIDevice > &device, RHIDeviceScopedHandle< RHISwapchain > &swapchain)
 
float Examples_GetTime ()
 

Variables

constexpr RHIResourceFormat kFormatPreferenceList []
 
constexpr RHISwapchainPresentMode kPresentModePreferenceList []
 
constexpr int Examples_SDLWindowFlagsVulkan = SDL_WINDOW_RESIZABLE | SDL_WINDOW_HIGH_PIXEL_DENSITY | SDL_WINDOW_VULKAN
 

Function Documentation

◆ Examples_DestroyVulkan()

auto Examples_DestroyVulkan ( SDL_Window *  window,
Renderer renderer,
VulkanApplication app,
RHIApplicationScopedHandle< RHIDevice > &  device,
RHIDeviceScopedHandle< RHISwapchain > &  swapchain 
)
inline

◆ Examples_GetTime()

float Examples_GetTime ( )
inline

◆ Examples_InitVulkan()

auto Examples_InitVulkan ( SDL_Window *  window,
RendererDesc const &  desc = {} 
)
inline

◆ Examples_NewFrame()

void Examples_NewFrame ( Renderer renderer)
inline

◆ Examples_ShouldClose()

bool Examples_ShouldClose ( SDL_Window *  window,
Renderer renderer,
RHIDeviceScopedHandle< RHISwapchain > &  swap,
SDL_Event *  outEvent = nullptr 
)
inline

Variable Documentation

◆ Examples_SDLWindowFlagsVulkan

constexpr int Examples_SDLWindowFlagsVulkan = SDL_WINDOW_RESIZABLE | SDL_WINDOW_HIGH_PIXEL_DENSITY | SDL_WINDOW_VULKAN
constexpr

◆ kFormatPreferenceList

constexpr RHIResourceFormat kFormatPreferenceList[]
constexpr
Initial value:
= {
RHIResourceFormat::R8G8B8A8Unorm, RHIResourceFormat::B8G8R8A8Unrom, RHIResourceFormat::R8G8B8A8Srgb,
RHIResourceFormat::B8G8R8A8Srgb}

◆ kPresentModePreferenceList

constexpr RHISwapchainPresentMode kPresentModePreferenceList[]
constexpr
Initial value:
= {
RHISwapchainPresentMode::Mailbox, RHISwapchainPresentMode::Tearing, RHISwapchainPresentMode::Fifo}