Skip to content

Improve 01526 message when sampleLocationsPerPixel is 0 #306

@ziga-lunarg

Description

@ziga-lunarg

If VkSampleLocationsInfoEXT::sampleLocationsPerPixel is 0, the validation layers message will say Unhandled VkSampleCountFlagBits

Full message is:

vkCmdSetSampleLocationsEXT(): pSampleLocationsInfo->sampleLocationsPerPixel is Unhandled VkSampleCountFlagBits, but VkPhysicalDeviceSampleLocationsPropertiesEXT::sampleLocationSampleCounts is VK_SAMPLE_COUNT_1_BIT|VK_SAMPLE_COUNT_2_BIT|VK_SAMPLE_COUNT_4_BIT|VK_SAMPLE_COUNT_8_BIT|VK_SAMPLE_COUNT_16_BIT.

We should have a way to print the invalid value in string_VkSampleCountFlagBits

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions