xash3d-fwgs/ref_vk/vk_const.h
Ivan 'provod' Avdeev 951d382eb6 vk: improve memory allocation logging
print region names, requirements, etc.
also decrease default vulkan device memory allocation size to 64Mb
decrease max vertices to 512k
2022-01-17 22:06:30 -08:00

24 lines
533 B
C

#pragma once
#define MAX_SCENE_STACK 2
#define MAX_SCENE_ENTITIES 2048
#define MAX_TEXTURES 4096
// TODO count these properly
#define MAX_BUFFER_VERTICES (512 * 1024)
#define MAX_BUFFER_INDICES (MAX_BUFFER_VERTICES * 3)
// indexed by uint8_t
#define MAX_SURFACE_LIGHTS 256
// indexed by uint8_t
#define MAX_POINT_LIGHTS 256
// indexed by uint8_t
#define MAX_VISIBLE_POINT_LIGHTS 63
// indexed by uint8_t
#define MAX_VISIBLE_SURFACE_LIGHTS 255
#define MAX_LIGHT_CLUSTERS 262144 //131072 //32768
#define LIGHT_GRID_CELL_SIZE 128