WavePrefixBitAnd

Description

WavePrefixBitAnd - Exclusive prefix bitwise AND (equivalent to GLSL subgroupExclusiveAnd) Note: CUDA/HLSL require subgroup_partitioned capability (SM 6.5 for HLSL)

Signature

T WavePrefixBitAnd<T>(T expr)
    where T : __BuiltinLogicalType;

vector<T, N> WavePrefixBitAnd<T, int N>(vector<T, N> expr)
    where T : __BuiltinLogicalType;

matrix<T, N, M> WavePrefixBitAnd<T, int N, int M>(matrix<T, N, M> expr)
    where T : __BuiltinLogicalType;

Generic Parameters

T: __BuiltinLogicalType

N : int

M : int

Parameters

expr : T

expr : vector<T, N>

expr : matrix<T, N, M>

Availability and Requirements

Defined for the following targets:

glsl

Available in all stages.

spirv

Available in all stages.

Requires capability: spvGroupNonUniformArithmetic.

hlsl

Available in all stages.

cuda

Available in all stages.