nngn
Loading...
Searching...
No Matches
anonymous_namespace{vulkan.cpp} Namespace Reference

Classes

class  Buffers
 
class  CameraDescriptorSets
 
struct  LightingDescriptorSets
 
struct  RenderList
 
class  Shaders
 
class  ShadowCube
 
class  ShadowMap
 
class  TexArray
 
struct  TextureDescriptorSets
 
class  UBODescriptorSets
 
class  VulkanBackend
 

Functions

bool check_support (std::ranges::input_range auto &&s0, std::ranges::input_range auto &&s1, const char *name)
 

Variables

constexpr std::array DEVICE_EXTENSIONS
 Required device extensions.
 
constexpr std::array VALIDATION_LAYERS = {"VK_LAYER_KHRONOS_validation"}
 Validation layers enabled in debug mode.
 
constexpr VkSurfaceFormatKHR SURFACE_FORMAT
 Preferred swap chain image format.
 
constexpr auto DEPTH_FORMAT = VK_FORMAT_D32_SFLOAT
 Preferred depth image format.
 
constexpr auto PRESENT_MODE = nngn::Graphics::PresentMode::FIFO
 Preferred swap chain present mode.
 
constexpr auto CMD_POOL_FLAGS = VK_COMMAND_POOL_CREATE_TRANSIENT_BIT
 Flags used to create all command pools.
 
constexpr std::size_t MAX_FRAMES = 32
 Maximum number of concurrent frames.
 
const auto CLIP_PROJ
 Adjusts depth values in clip space.
 

Function Documentation

◆ check_support()

bool anonymous_namespace{vulkan.cpp}::check_support ( std::ranges::input_range auto && s0,
std::ranges::input_range auto && s1,
const char * name )
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ CLIP_PROJ

const auto anonymous_namespace{vulkan.cpp}::CLIP_PROJ
Initial value:
1, 0, 0, 0,
0, 1, 0, 0,
0, 0, .5, .5,
0, 0, 0, 1))
static constexpr mat3_base< T > transpose(const mat3_base< T > &m)
Definition math.h:323

Adjusts depth values in clip space.

◆ CMD_POOL_FLAGS

auto anonymous_namespace{vulkan.cpp}::CMD_POOL_FLAGS = VK_COMMAND_POOL_CREATE_TRANSIENT_BIT
constexpr

Flags used to create all command pools.

◆ DEPTH_FORMAT

auto anonymous_namespace{vulkan.cpp}::DEPTH_FORMAT = VK_FORMAT_D32_SFLOAT
constexpr

Preferred depth image format.

◆ DEVICE_EXTENSIONS

std::array anonymous_namespace{vulkan.cpp}::DEVICE_EXTENSIONS
constexpr
Initial value:
= {
VK_KHR_MAINTENANCE1_EXTENSION_NAME,
VK_KHR_SWAPCHAIN_EXTENSION_NAME,
}

Required device extensions.

◆ MAX_FRAMES

std::size_t anonymous_namespace{vulkan.cpp}::MAX_FRAMES = 32
constexpr

Maximum number of concurrent frames.

◆ PRESENT_MODE

auto anonymous_namespace{vulkan.cpp}::PRESENT_MODE = nngn::Graphics::PresentMode::FIFO
constexpr

Preferred swap chain present mode.

◆ SURFACE_FORMAT

VkSurfaceFormatKHR anonymous_namespace{vulkan.cpp}::SURFACE_FORMAT
constexpr
Initial value:
= {
.format = VK_FORMAT_B8G8R8A8_UNORM,
.colorSpace = VK_COLOR_SPACE_SRGB_NONLINEAR_KHR}

Preferred swap chain image format.

◆ VALIDATION_LAYERS

std::array anonymous_namespace{vulkan.cpp}::VALIDATION_LAYERS = {"VK_LAYER_KHRONOS_validation"}
constexpr

Validation layers enabled in debug mode.