linalg::CoopMat<T, MemoryScope S, int M, int N, linalg.CoopMatMatrixUse R>.GetLength

Description

Returns the number of elements for accessible by the current thread. The number of components accessible by current thread is implementation-dependent.

Signature

static uint linalg::CoopMat<T, MemoryScope S, int M, int N, linalg.CoopMatMatrixUseR>.GetLength()
    where T : ICoopElement;

Return value

The number of elements accessible by the current thread.

Remarks

The return value is unlikely to be same to M * N.

Availability and Requirements

Defined for the following targets:

hlsl

Available in all stages.

cuda

Available in all stages.

spirv

Available in all stages.

Requires capability: spvCooperativeMatrixKHR.