MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-ValidationLayers / SetValidationEnable

Function SetValidationEnable

layers/layer_options.cpp:320–343  ·  view source on GitHub ↗

Set the local enable flag for the appropriate VALIDATION_CHECK_ENABLE enum

Source from the content-addressed store, hash-verified

318
319// Set the local enable flag for the appropriate VALIDATION_CHECK_ENABLE enum
320void SetValidationEnable(ValidationEnabled& enable_data, const ValidationCheckEnables enable_id) {
321 switch (enable_id) {
322 case VALIDATION_CHECK_ENABLE_VENDOR_SPECIFIC_ARM:
323 enable_data[vendor_specific_arm] = true;
324 break;
325 case VALIDATION_CHECK_ENABLE_VENDOR_SPECIFIC_AMD:
326 enable_data[vendor_specific_amd] = true;
327 break;
328 case VALIDATION_CHECK_ENABLE_VENDOR_SPECIFIC_IMG:
329 enable_data[vendor_specific_img] = true;
330 break;
331 case VALIDATION_CHECK_ENABLE_VENDOR_SPECIFIC_NVIDIA:
332 enable_data[vendor_specific_nvidia] = true;
333 break;
334 case VALIDATION_CHECK_ENABLE_VENDOR_SPECIFIC_ALL:
335 enable_data[vendor_specific_arm] = true;
336 enable_data[vendor_specific_amd] = true;
337 enable_data[vendor_specific_img] = true;
338 enable_data[vendor_specific_nvidia] = true;
339 break;
340 default:
341 assert(false);
342 }
343}
344
345// Set the local enable flag for a single VK_VALIDATION_FEATURE_ENABLE_* flag
346void SetValidationFeatureEnable(ValidationEnabled& enable_data, const VkValidationFeatureEnableEXT feature_enable) {

Callers 1

SetLocalEnableSettingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected