|
| texture_view (texture< _Value_type, _Rank > &_Src, unsigned int _Mipmap_level=0) __CPU_ONLY |
| Construct a texture_view of a texture _Src on host. More...
|
|
| texture_view (texture< _Value_type, _Rank > &_Src) __GPU_ONLY |
| Construct a texture_view of a texture _Src on an accelerator. More...
|
|
| texture_view (const texture_view< _Value_type, _Rank > &_Other) __GPU |
| Construct a texture_view from another texture_view. Both are views of the same texture. More...
|
|
texture_view< _Value_type, _Rank > & | operator= (const texture_view< _Value_type, _Rank > &_Other) __GPU |
| Assignment operator. This texture_view becomes a view of the same texture which _Other is a view of. More...
|
|
| ~texture_view () __GPU |
| Destructor More...
|
|
const value_type | operator[] (const index< _Rank > &_Index) const __GPU_ONLY |
| Get the element value indexed by _Index. More...
|
|
const value_type | operator[] (int _I0) const __GPU_ONLY |
| Get the element value indexed by _I0. More...
|
|
const value_type | operator() (const index< _Rank > &_Index) const __GPU_ONLY |
| Get the element value indexed by _Index. More...
|
|
const value_type | operator() (int _I0) const __GPU_ONLY |
| Get the element value indexed by _I0 More...
|
|
const value_type | operator() (int _I0, int _I1) const __GPU_ONLY |
| Get the element value indexed by (_I0,_I1) More...
|
|
const value_type | operator() (int _I0, int _I1, int _I2) const __GPU_ONLY |
| Get the element value indexed by (_I0,_I1,_I2) More...
|
|
const value_type | get (const index< _Rank > &_Index) const __GPU_ONLY |
| Get the element value indexed by _Index. More...
|
|
void | set (const index< _Rank > &_Index, const value_type &_Value) const __GPU_ONLY |
| Set the element indexed by _Index with value _Value. More...
|
|
__declspec(property(get=get_extent)) Concurrency Concurrency::extent< _Rank > | get_extent () const __GPU |
| Returns the extent that defines the shape of this texture or texture view. More...
|
|
Concurrency::extent< _Rank > | get_mipmap_extent (unsigned int _Mipmap_level) const __CPU_ONLY |
| Returns the extent for specific mipmap level of this texture or texture view. More...
|
|
Concurrency::extent< _Rank > | get_mipmap_extent (unsigned int _Mipmap_level) const __GPU_ONLY |
| Returns the extent for specific mipmap level of this texture or texture view. More...
|
|
__declspec(property(get=get_accelerator_view)) Concurrency Concurrency::accelerator_view | get_accelerator_view () const __CPU_ONLY |
| Returns the accelerator_view where this texture or texture view is located. More...
|
|
| __declspec (property(get=get_bits_per_scalar_element)) unsigned int bits_per_scalar_element |
| Returns the number of bits per scalar element More...
|
|
unsigned int | get_bits_per_scalar_element () const __CPU_ONLY |
|
| __declspec (property(get=get_mipmap_levels)) unsigned int mipmap_levels |
| Query how many mipmap levels are accessible by this texture (or texture view). More...
|
|
unsigned int | get_mipmap_levels () const __GPU |
|
| __declspec (property(get=get_data_length)) unsigned int data_length |
| Returns the physical data length (in bytes) that is required in order to represent the texture on the host side with its native format. If the texture contains multiple mipmap levels the value represents the sum of physical data length for each accessible mipmap level by this texture (or texture view). More...
|
|
unsigned int | get_data_length () const __CPU_ONLY |
|
template<typename _Value_type, int _Rank>
class Concurrency::graphics::texture_view< _Value_type, _Rank >
A texture_view provides read and write access to a texture. Note that currently texture_view can only be used to read textures whose value type is int, unsigned int and float with default 32 bit bpse. To read other texture formats, use texture_view<const _Value_type, _Rank>.
- Parameters
-
_Value_type | The type of the elements in the texture aggregates. |
_Rank | The _Rank of the corresponding extent domain. |