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

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

Developing Vulkan® applications

Discover our Vulkan blog posts, presentations, samples, and more. Find out how we can help you create and optimize your Vulkan applications!

Vulkan®

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

Nadav Geva

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.

Enjoy this blog post? If you found it useful, why not share it with other game developers?

You may also like...

If slide decks are what you’re after, you’ll find 100+ of our finest presentations here. Plus there’s a handy list of our product manuals!

Developer guides

Browse our developer guides, and find valuable advice on developing with AMD hardware, ray tracing, Vulkan, DirectX, UE4, and lots more.

Words not enough? How about pictures? How about moving pictures? We have some amazing videos to share with you!

The home of great performance and optimization advice for AMD RDNA™ 2 GPUs, AMD Ryzen™ CPUs, and so much more.

Product Blogs

Our handy product blogs will help you make good use of our tools, SDKs, and effects, as well as sharing the latest features with new releases.

Publications

Discover our published publications.