xash3d-fwgs/ref/vk/vk_cvar.h
Ivan Avdeev 6d3c5bfa3e vk: add runtime-toggleable debug logs with module granularity
Use e.g. `vk_debug_log "mat,tex,brush"` to enable verbose debug (-dev 2)
logs for Material, Textures and Brush modules.
2023-08-29 12:31:57 -04:00

37 lines
901 B
C

#pragma once
#include "cvardef.h"
#include "xash3d_types.h" // required for ref_api.h
#include "const.h" // required for ref_api.h
#include "com_model.h" // required for ref_api.h
#include "ref_api.h"
// from engine/common/cvar.h
#define FCVAR_READ_ONLY (1<<17) // cannot be set by user at all, and can't be requested by CvarGetPointer from game dlls
#define CVAR_TO_BOOL( x ) ((x) && ((x)->value != 0.0f) ? true : false )
void VK_LoadCvars( void );
void VK_LoadCvarsAfterInit( void );
#define DECLARE_CVAR(X) \
X(r_lighting_modulate) \
X(cl_lightstyle_lerping) \
X(vk_rtx_bounces) \
X(vk_rtx_light_begin) \
X(vk_rtx_light_end) \
X(r_lightmap) \
X(ui_infotool) \
X(vk_rtx) \
X(vk_rtx_extension) \
X(vk_only) \
X(vk_device_target_id) \
X(vk_debug_log) \
#define EXTERN_CVAR(cvar) extern cvar_t *cvar;
DECLARE_CVAR(EXTERN_CVAR)
#undef EXTERN_CVAR
DECLARE_ENGINE_SHARED_CVAR_LIST()