Vulkan’s Best Practice layer now has AMD-specific checks

Share on facebook
Share on twitter
Share on linkedin
Share on reddit
Share on email

You love our Performance Guide but sometimes it can be hard to work with. All those optimization suggestions are great, but how can you tell if they apply to your engine? Enter the AMD checks for the Vulkan® Best Practice validation layer.

We took many of our performance suggestions and incorporated them into the validation layer. This layer will analyze Vulkan API calls and alert you on sub-optimal usage. Now you don’t have to remember which flags you should or shouldn’t use or if you are clearing with a fast color. The Best Practice layer will check all of that, and more, for you!

There are several ways to enable the best practice layer:

  • Set an environment variable. Simply set:

				
					VK_LAYER_ENABLES=VK_VALIDATION_FEATURE_ENABLE_BEST_PRACTICES_EXT;VALIDATION_CHECK_ENABLE_VENDOR_SPECIFIC_AMD
				
			
  • Use the Vulkan Configurator.
    This easy-to-use GUI app can check which layers are present and configure the layers and their log output.
Vulkan Configurator
 
  • Enable the layer in your engine during the Vulkan Instance creation.
    This method allows you to more finely control the log output of the layer. Maybe you want to ignore certain suggestions, or elevate the severity of others. While this method requires changes in code, it allows for more control.

That’s it! You are ready to tune your engine with AMD’s Best Practices. We plan on adding even more checks in the future, as well as tune the existing checks based on your feedback.

The layer was recently merged into the validation layer Github Repo, and will be in version 1.2.189 of the SDK.

Related content

Vulkan®

Vulkan® gives software developers control over the performance, efficiency, and capabilities of AMD Radeon™ GPUs and multi-core CPUs.

Nadav Geva
Nadav Geva works in the North America Game Engineering team. Links to third party sites are provided for convenience and unless explicitly stated, AMD is not responsible for the contents of such linked sites and no endorsement is implied.

You may also like...

Some light reading to take away with you. Our ISAs, manuals, whitepapers, and many more.

Explore our huge collection of detailed tutorials, sample code, presentations, and documentation to find your answers to your graphics development questions.

Browse all our useful samples. Perfect for when you’re needing to get started, want to integrate one of our libraries, and much more.

Browse all our fantastic tutorials, including programming techniques, performance improvements, guest blogs, and how to use our tools.