• Slang Standard Library Reference
    • Interfaces
    • Types
      • Buffer types
      • Math types
      • Miscelaneous types
      • Ray-tracing
      • Sampler types
      • Scalar types
      • Stage IO types
      • Texture types
      • Array
      • Atomic
      • AtomicAdd
      • BindlessDescriptorOptions
      • ConstantBuffer
      • CoopMat
      • CoopMatClampMode
      • CoopMatMatrixLayout
      • CoopMatMatrixUse
      • CoopVec
      • CoopVecComponentType
      • CoopVecMatrixLayout
      • DefaultVkBindlessBindings
      • DescriptorAccess
      • DescriptorHandle
      • DescriptorKind
      • DiffTensorView
      • DifferentialPair
      • DifferentialPtrPair
      • DispatchNodeInputRecord
      • MemoryScope
      • NodePayloadPtr
      • NullDifferential
      • Optional
      • ParameterBlock
      • Ptr
      • String
      • TensorLayout
      • TensorView
        • Clip
        • Dimension
        • InterlockedAdd
        • InterlockedAnd
        • InterlockedCompareExchange
        • InterlockedExchange
        • InterlockedMax
        • InterlockedMin
        • InterlockedOr
        • InterlockedXor
        • Stride
        • data_ptr
        • data_ptr_at
        • dims
        • init
        • load
        • size
        • store
        • stride
        • subscript
      • TorchTensor
      • Tuple
      • VkMutableBindlessBindings
      • _AttributeTargets
      • int8_t4_packed
      • uint8_t4_packed
    • Attributes
    • Global Declarations

TensorView<T>.load

Description

Signature

T TensorView<T>.load(uint x);

T TensorView<T>.load(
    uint x,
    uint y);

T TensorView<T>.load(
    uint x,
    uint y,
    uint z);

T TensorView<T>.load(
    uint x,
    uint y,
    uint z,
    uint w);

T TensorView<T>.load(
    uint i0,
    uint i1,
    uint i2,
    uint i3,
    uint i4);

T TensorView<T>.load<int N>(vector<uint, N> index);

Generic Parameters

N : int

Parameters

x : uint

y : uint

z : uint

w : uint

i0 : uint

i1 : uint

i2 : uint

i3 : uint

i4 : uint

index : vector<uint, N>

Availability and Requirements

Defined for the following targets:

cuda

Available in all stages.