Vulkan2D
2D renderer written in C using Vulkan and SDL2
VK2DStartupOptions Struct Reference

Startup options that dictate some basic VK2D stuff. More...

#include <Structs.h>

Data Fields

bool enableDebug
 Enables Vulkan compatibility layers.
 
bool stdoutLogging
 Print VK2D information to stdout.
 
bool quitOnError
 Crash the program when an error occurs.
 
const char * errorFile
 The file to output errors to, or NULL to disable file output.
 
uint32_t maxTextures
 Max number of textures active at once.
 
uint64_t vramPageSize
 

Detailed Description

Startup options that dictate some basic VK2D stuff.

Field Documentation

◆ vramPageSize

uint64_t VK2DStartupOptions::vramPageSize

Determines the size of a video-memory page in bytes. This can cap the max uniform buffer size for shaders, max instances in one instanced call, and max vertices in a single geometry render. You may leave this as 0, in which case the renderer will make it 256kb.


The documentation for this struct was generated from the following file: