Clarify the effect of the SUBGROUP features and capabilities (#8203)

This commit is contained in:
Andy Leiserson
2025-09-10 17:53:56 -07:00
committed by GitHub
parent 3758b08be9
commit d31d944ed5
4 changed files with 212 additions and 9 deletions

View File

@@ -1058,7 +1058,8 @@ bitflags_array! {
///
/// This is a native only feature.
const SHADER_INT64 = 1 << 37;
/// Allows compute and fragment shaders to use the subgroup operation built-ins
/// Allows compute and fragment shaders to use the subgroup operation
/// built-ins and perform subgroup operations (except barriers).
///
/// Supported Platforms:
/// - Vulkan
@@ -1067,14 +1068,17 @@ bitflags_array! {
///
/// This is a native only feature.
const SUBGROUP = 1 << 38;
/// Allows vertex shaders to use the subgroup operation built-ins
/// Allows vertex shaders to use the subgroup operation built-ins and
/// perform subgroup operations (except barriers).
///
/// Supported Platforms:
/// - Vulkan
///
/// This is a native only feature.
const SUBGROUP_VERTEX = 1 << 39;
/// Allows shaders to use the subgroup barrier
/// Allows compute shaders to use the subgroup barrier.
///
/// Requires [`Features::SUBGROUP`]. Without it, enables nothing.
///
/// Supported Platforms:
/// - Vulkan