2021-02-03 19:06:21 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "cvardef.h"
|
|
|
|
|
2021-12-01 22:14:29 +01:00
|
|
|
// 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
|
|
|
|
|
2021-02-03 19:06:21 +01:00
|
|
|
#define CVAR_TO_BOOL( x ) ((x) && ((x)->value != 0.0f) ? true : false )
|
|
|
|
|
|
|
|
void VK_LoadCvars( void );
|
|
|
|
|
|
|
|
#define DECLARE_CVAR(X) \
|
|
|
|
X(r_lighting_modulate) \
|
|
|
|
X(cl_lightstyle_lerping) \
|
2021-03-15 17:44:15 +01:00
|
|
|
X(vk_rtx_bounces) \
|
2021-04-12 20:07:41 +02:00
|
|
|
X(vk_rtx_prev_frame_blend_factor) \
|
2021-10-03 22:39:54 +02:00
|
|
|
X(vk_rtx_light_begin) \
|
|
|
|
X(vk_rtx_light_end) \
|
2021-11-02 18:14:28 +01:00
|
|
|
X(r_lightmap) \
|
2021-11-03 18:15:12 +01:00
|
|
|
X(ui_infotool) \
|
2021-11-30 18:50:14 +01:00
|
|
|
X(vk_rtx) \
|
2021-12-02 00:37:23 +01:00
|
|
|
X(vk_rtx_extension) \
|
2021-02-03 19:06:21 +01:00
|
|
|
|
|
|
|
#define EXTERN_CVAR(cvar) extern cvar_t *cvar;
|
|
|
|
DECLARE_CVAR(EXTERN_CVAR)
|
|
|
|
#undef EXTERN_CVAR
|