构造 texture_view 实例。
texture_view( // [1] constructor
texture<_Value_type, _Rank>& _Src
) restrict(amp);
texture_view( // [2] constructor
texture<_Value_type, _Rank>& _Src,
unsigned int _Mipmap_level = 0
) restrict(cpu);
texture_view( // [3] constructor
const texture<_Value_type, _Rank>& _Src
) restrict(amp);
texture_view( // [4] constructor
const texture<_Value_type, _Rank>& _Src,
unsigned int _Most_detailed_mip,
unsigned int _Mip_levels
) restrict(cpu);
texture_view( // [5] copy constructor
const texture_view<_Value_type, _Rank>& _Other
) restrict(amp, cpu);
texture_view( // [6] copy constructor
const texture_view<const _Value_type, _Rank>& _Other
) restrict(amp, cpu);
texture_view( // [7] copy constructor
const texture_view<const _Value_type, _Rank>& _Other,
unsigned int _Most_detailed_mip,
unsigned int _Mip_levels
) restrict(cpu);
参数
_Src
[1,2] 构造函数
创建有可编写的 texture_view 的 texture。[3,4] 构造函数
创建有不可编写的 texture_view 的 texture。
_Other
[5] 复制构造函数
源可编写的 texture_view。[6,7] 复制构造函数
源不可编写的 texture_view。
_Mipmap_level
此可写的 texture_view 绑定的源 texture 上的特定 mipmap 级别。 默认值为 0,表示 mip 最高级别(最详细)。_Most_detailed_mip
相对于指定 texture_view 对象,视图的顶级(最详细) mip 级别。_Mip_levels
可通过 texture_view 获取的 mipmap 级别的数目。
要求
**标头:**amp_graphics.h
**命名空间:**concurrency::graphics