--- layout: stdlib-reference --- # StructuredBuffer\\.Load ## Description Load an element from the buffer at the specified location. ## Signature
/// Requires Capability Set 1:
T StructuredBuffer<T, L>.Load<TIndex>(TIndex location)
    where TIndex : __BuiltinIntegerType
    where L : IBufferDataLayout;

/// Requires Capability Set 2:
T StructuredBuffer<T, L>.Load<TIndex>(
    TIndex location,
    out uint status)
    where TIndex : __BuiltinIntegerType
    where L : IBufferDataLayout;

## Generic Parameters #### TIndex: [\_\_BuiltinIntegerType](../../interfaces/0_builtinintegertype-029g/index.html) Type of the index. ## Parameters #### location : [TIndex](load-0.html#typeparam-TIndex) The index of buffer. #### status : uint ## Return value The element at the specified index. ## Availability and Requirements ### Capability Set 1 Defined for the following targets: #### hlsl Available in all stages. #### glsl Available in all stages. #### cpp Available in all stages. #### cuda Available in all stages. #### metal Available in all stages. #### wgsl Available in all stages. #### spirv Available in all stages. #### llvm Available in all stages. ### Capability Set 2 Defined for the following targets: #### hlsl Available in all stages.