
Vulkan®
Vulkan® gives software developers control over the performance, efficiency, and capabilities of AMD Radeon™ GPUs and multi-core CPUs.
This sample shows how to use the AMD_shader_ballot
extension and mbcnt
to perform a fast reduction within a wavefront.
For more information about Vulkan®, visit our dedicated page:
Vulkan® gives software developers control over the performance, efficiency, and capabilities of AMD Radeon™ GPUs and multi-core CPUs.
mbcnt
computes the number of bits set in the provided argument, masked with a thread mask which contains 1 for all active threads less than the current thread within a wavefront.ballot
returns a 64-bit mask which contains 1 if that thread within the wavefront passed true into the instruction, and 0 otherwise.