xash3d-fwgs/ref_vk/vk_cvar.h

27 lines
640 B
C
Raw Normal View History

#pragma once
#include "cvardef.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 );
#define DECLARE_CVAR(X) \
X(r_lighting_modulate) \
X(cl_lightstyle_lerping) \
X(vk_rtx_bounces) \
X(vk_rtx_prev_frame_blend_factor) \
X(vk_rtx_light_begin) \
X(vk_rtx_light_end) \
2021-11-02 18:14:28 +01:00
X(r_lightmap) \
X(ui_infotool) \
X(vk_rtx) \
X(vk_rtx_extension) \
#define EXTERN_CVAR(cvar) extern cvar_t *cvar;
DECLARE_CVAR(EXTERN_CVAR)
#undef EXTERN_CVAR