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

Renderer limitations for the host. More...

#include <Structs.h>

Data Fields

VK2DMSAA maxMSAA
 Maximum MSAA the host supports, if you request an msaa higher than this value, this value will be used instead.
 
bool supportsTripleBuffering
 Whether or not the host supports triple buffering, if you request triple buffering and this is false, vsync will be used instead.
 
bool supportsImmediate
 Whether or not the host supports immediate mode, if you request immediate mode and this is false, vsync will be used instead.
 
bool supportsWireframe
 Doesn't really mean anything 💀
 
float maxLineWidth
 Maximum line width supported on the platform, if you specify a line width greater than this value, your requested line width will be clamped to this number.
 
uint64_t maxInstancedDraws
 Maximum amount of instances you may draw at once, if you request to draw more instances than this it will simply be capped to this number.
 
uint64_t maxShaderBufferSize
 Maximum size of a shader's uniform buffer in bytes, if you attempt to create a shader with a uniform buffer size greater than this value NULL will be returned.
 
uint64_t maxGeometryVertices
 Maximum vertices that can be used in one vk2dRendererDrawGeometryCall, if you use more vertices than this nothing will happen.
 
bool supportsMultiThreadLoading
 Whether or not the host supports loading assets in another thread, if attempt to load assets in another thread and this is false, assets will be loaded on the main thread instead.
 

Detailed Description

Renderer limitations for the host.

Each field specifies the renderer's behaviour in the event you attempt to do something the host machine is not capable of.


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