• Slang Standard Library Reference
    • Interfaces
    • Types
      • Buffer types
        • AppendStructuredBuffer
        • ByteAddressBuffer
        • ConsumeStructuredBuffer
          • Consume
          • GetDimensions
        • RWByteAddressBuffer
        • RWStructuredBuffer
        • RasterizerOrderedByteAddressBuffer
        • RasterizerOrderedStructuredBuffer
        • StructuredBuffer
      • Math types
      • Miscelaneous types
      • Ray-tracing
      • Sampler types
      • Scalar types
      • Stage IO types
      • Texture types
      • Array
      • Atomic
      • ConstantBuffer
      • DifferentialPair
      • DifferentialPtrPair
      • Optional
      • ParameterBlock
      • Ptr
      • String
      • Tuple
      • _AttributeTargets
    • Attributes
    • Global Declarations

ConsumeStructuredBuffer<T, L>.GetDimensions

Description

Gets the dimensions of the resource.

Signature

void ConsumeStructuredBuffer<T, L>.GetDimensions(
    out uint numStructs,
    out uint stride)
    where L : IBufferDataLayout;

Parameters

numStructs : uint

[out] The number of structures in the buffer.

stride : uint

[out] The stride, in bytes, of each element