Program Listing for File host_device_shared_vars.hpp#
↰ Return to documentation for file (Resources/Shaders/host_device/host_device_shared_vars.hpp)
#ifndef HOST_DEVICE_SHARED_VARS
#define HOST_DEVICE_SHARED_VARS
// ====================================================================
// CENTRALIZED CONFIGURATION - SINGLE SOURCE OF TRUTH
// All render limits and constants should reference these values.
// ====================================================================
// Maximum concurrent frame draws in flight (triple buffering)
const int MAX_FRAME_DRAWS = 3;
// Maximum objects in a scene
const int MAX_OBJECTS = 100;
// Maximum textures that can be bound in a single descriptor set
const int MAX_TEXTURE_COUNT = 64;
// Maximum materials supported
const int MAX_MATERIALS = 64;
// Maximum ray recursion depth for raytracing pipelines
const int MAX_RAY_RECURSION_DEPTH = 5;
// ====================================================================
// BINDING LOCATIONS - MAIN RENDER DESCRIPTOR SET
// ====================================================================
#define GLOBAL_UBO_BINDING 0
#define SCENE_UBO_BINDING 1
#define OBJECT_DESCRIPTION_BINDING 2
#define TEXTURES_BINDING 3
#define SAMPLER_BINDING 4
// ====================================================================
// BINDING LOCATIONS - RAYTRACING
// ====================================================================
#define TLAS_BINDING 0
#define OUT_IMAGE_BINDING 1
#endif