Share via


short_vector_traits 結構

short_vector_traits允許擷取短向量型別或純量型別的基礎向量長度和純量類型

語法

template<
    typename T
>
struct short_vector_traits;
template<>
struct short_vector_traits<unsigned int>;
template<>
struct short_vector_traits<uint_2>;
template<>
struct short_vector_traits<uint_3>;
template<>
struct short_vector_traits<uint_4>;
template<>
struct short_vector_traits<int>;
template<>
struct short_vector_traits<int_2>;
template<>
struct short_vector_traits<int_3>;
template<>
struct short_vector_traits<int_4>;
template<>
struct short_vector_traits<float>;
template<>
struct short_vector_traits<float_2>;
template<>
struct short_vector_traits<float_3>;
template<>
struct short_vector_traits<float_4>;
template<>
struct short_vector_traits<unorm>;
template<>
struct short_vector_traits<unorm_2>;
template<>
struct short_vector_traits<unorm_3>;
template<>
struct short_vector_traits<unorm_4>;
template<>
struct short_vector_traits<norm>;
template<>
struct short_vector_traits<norm_2>;
template<>
struct short_vector_traits<norm_3>;
template<>
struct short_vector_traits<norm_4>;
template<>
struct short_vector_traits<double>;
template<>
struct short_vector_traits<double_2>;
template<>
struct short_vector_traits<double_3>;
template<>
struct short_vector_traits<double_4>;

參數

T

成員

公用 Typedefs

名稱 描述
value_type

公用建構函式

名稱 描述
short_vector_traits::short_vector_traits 建構函式

公用常數

名稱 描述
short_vector_traits::size 常數

繼承階層架構

short_vector_traits

需求

標頭: amp_short_vectors.h

命名空間: Concurrency::graphics

short_vector_traits::short_vector_traits 建構函式

short_vector_traits();

short_vector_traits::size 常數

static int const size = 1;

另請參閱

Concurrency::graphics 命名空間