alpaka
Abstraction Library for Parallel Kernel Acceleration
alpaka::trait::GetPitchBytes< TIdx, TView, TSfinae > Struct Template Reference

The pitch in bytes. This is the distance in bytes in the linear memory between two consecutive elements in the next higher dimension (TIdx-1). More...

#include <Traits.hpp>

Public Types

using ViewIdx = Idx< TView >
 

Static Public Member Functions

static ALPAKA_FN_HOST auto getPitchBytes (TView const &view) -> ViewIdx
 

Detailed Description

template<typename TIdx, typename TView, typename TSfinae = void>
struct alpaka::trait::GetPitchBytes< TIdx, TView, TSfinae >

The pitch in bytes. This is the distance in bytes in the linear memory between two consecutive elements in the next higher dimension (TIdx-1).

The default implementation uses the extent to calculate the pitch.

Definition at line 66 of file Traits.hpp.

Member Typedef Documentation

◆ ViewIdx

template<typename TIdx , typename TView , typename TSfinae = void>
using alpaka::trait::GetPitchBytes< TIdx, TView, TSfinae >::ViewIdx = Idx<TView>

Definition at line 68 of file Traits.hpp.

Member Function Documentation

◆ getPitchBytes()

template<typename TIdx , typename TView , typename TSfinae = void>
static ALPAKA_FN_HOST auto alpaka::trait::GetPitchBytes< TIdx, TView, TSfinae >::getPitchBytes ( TView const &  view) -> ViewIdx
inlinestatic

Definition at line 70 of file Traits.hpp.


The documentation for this struct was generated from the following file: