Expose PLVK_DEBUG_EXTRA for enabling extra debug layers

This commit is contained in:
Cameron Gutman 2023-12-27 15:40:01 -06:00
parent 646ce2bf66
commit 61f71a318e

View file

@ -341,7 +341,8 @@ bool PlVkRenderer::initialize(PDECODER_PARAMETERS params)
pl_vk_inst_params vkInstParams = pl_vk_inst_default_params;
{
bool ok;
vkInstParams.debug = !!qEnvironmentVariableIntValue("PLVK_DEBUG", &ok);
vkInstParams.debug_extra = !!qEnvironmentVariableIntValue("PLVK_DEBUG_EXTRA", &ok);
vkInstParams.debug = vkInstParams.debug_extra || !!qEnvironmentVariableIntValue("PLVK_DEBUG", &ok);
#ifdef QT_DEBUG
if (!ok) {
vkInstParams.debug = true;