Rediģēt

Kopīgot, izmantojot


writeonly_texture_view Class

Provides writeonly access to a texture.

Syntax

template <
    typename value_type,
    int _Rank
>
class writeonly_texture_view;

template <
    typename value_type,
    int _Rank
>
class writeonly_texture_view<value_type, _Rank> : public details::_Texture_base<value_type, _Rank>;

Parameters

value_type
The type of the elements in the texture.

_Rank
The rank of the texture.

Members

Public Typedefs

Name Description
scalar_type
value_type The type of the elements in the texture.

Public Constructors

Name Description
writeonly_texture_view Constructor Initializes a new instance of the writeonly_texture_view class.
~writeonly_texture_view Destructor Destroys the writeonly_texture_view object.

Public Methods

Name Description
set Sets the value of the element at the specified index.

Public Operators

Name Description
operator= Copies the specified writeonly_texture_view object to this one.

Public Constants

Name Description
rank Constant Gets the rank of the writeonly_texture_view object.

Inheritance Hierarchy

_Texture_base

writeonly_texture_view

Requirements

Header: amp_graphics.h

Namespace: Concurrency::graphics

~writeonly_texture_view

Destroys the writeonly_texture_view object.

~writeonly_texture_view() restrict(amp,cpu);

operator=

Copies the specified writeonly_texture_view object to this one.

writeonly_texture_view<value_type, _Rank>& operator= (
    const writeonly_texture_view<value_type, _Rank>& _Other) restrict(amp,cpu);

Parameters

_Other
writeonly_texture_view object to copy from.

Return Value

A reference to this writeonly_texture_view object.

rank

Gets the rank of the writeonly_texture_view object.

static const int rank = _Rank;

set

Sets the value of the element at the specified index.

void set(
    const index<_Rank>& _Index,
    const value_type& value) const restrict(amp);

Parameters

_Index
The index of the element.

value
The new value of the element.

writeonly_texture_view

Initializes a new instance of the writeonly_texture_view class.

writeonly_texture_view(
    texture<value_type,
    _Rank>& _Src) restrict(amp);

writeonly_texture_view(
    const writeonly_texture_view<value_type,
    _Rank>& _Src) restrict(amp,cpu);

Parameters

_Rank
The rank of the texture.

value_type
The type of the elements in the texture.

_Src
The texture that is used to create the writeonly_texture_view.

See also

Concurrency::graphics Namespace