STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
Concurrency::accelerator_view Class Reference

Class represents a virtual device abstraction on a C++ AMP data-parallel accelerator More...

#include <amprt.h>

Public Member Functions

_AMPIMP ~accelerator_view ()
 Destructor More...
 
_AMPIMP accelerator_view (const accelerator_view &_Other)
 Copy constructor More...
 
_AMPIMP accelerator_viewoperator= (const accelerator_view &_Other)
 Assignment operator More...
 
_AMPIMP accelerator get_accelerator () const
 Get the accelerator for this accelerator view More...
 
__declspec(property(get=get_accelerator)) Concurrency _AMPIMP bool get_is_debug () const
 Returns a boolean value indicating whether the accelerator view was created with DEBUG layer enabled for extensive error reporting More...
 
 __declspec (property(get=get_is_debug)) bool is_debug
 
_AMPIMP unsigned int get_version () const
 Get the version for this accelerator view More...
 
 __declspec (property(get=get_version)) unsigned int version
 
_AMPIMP queuing_mode get_queuing_mode () const
 Get the queuing mode for this accelerator view More...
 
__declspec(property(get=get_queuing_mode)) Concurrency _AMPIMP bool get_is_auto_selection () const
 Returns a boolean value indicating whether the accelerator view when passed to a parallel_for_each would result in automatic selection of an appropriate execution target by the runtime More...
 
 __declspec (property(get=get_is_auto_selection)) bool is_auto_selection
 
_AMPIMP bool operator== (const accelerator_view &_Other) const
 Return true if the other accelerator view is same as this accelerator view; false otherwise More...
 
_AMPIMP bool operator!= (const accelerator_view &_Other) const
 Return false if the other accelerator view is same as this accelerator view; true otherwise More...
 
_AMPIMP void wait ()
 Waits for completion of all commands submitted so far to this accelerator_view More...
 
_AMPIMP void flush ()
 Submit all pending commands queued to this accelerator_view to the accelerator for execution. More...
 
_AMPIMP concurrency::completion_future create_marker ()
 Return a future to track the completion of all commands submitted so far to this accelerator_view More...
 

Private Member Functions

 accelerator_view ()
 
_AMPIMP accelerator_view (_Accelerator_view_impl_ptr _Impl, bool _Auto_selection=false)
 

Private Attributes

_Accelerator_view_impl_ptr _M_impl
 
bool _M_auto_selection
 

Friends

class accelerator
 
class details::_Buffer
 
class details::_Texture
 
class details::_Sampler
 
class details::_Ubiquitous_buffer
 
class details::_D3D_interop
 
class details::_D3D_accelerator_view_impl
 
class details::_CPU_accelerator_view_impl
 
class details::_Accelerator_view_hasher
 
_AMPIMP friend _Ret_ IUnknown *__cdecl direct3d::get_device (const accelerator_view &_Av)
 
_AMPIMP friend accelerator_view __cdecl direct3d::create_accelerator_view (_In_ IUnknown *_D3D_device, queuing_mode qmode)
 
_AMPIMP friend accelerator_view __cdecl direct3d::create_accelerator_view (accelerator &_Accelerator, bool _Disable_timeout, queuing_mode _Qmode)
 
_AMPIMP friend bool __cdecl direct3d::is_timeout_disabled (const accelerator_view &_Accelerator_view)
 
_Ret_ details::_Accelerator_view_impl * details::_Get_accelerator_view_impl_ptr (const accelerator_view &_Accl_view)
 

Detailed Description

Class represents a virtual device abstraction on a C++ AMP data-parallel accelerator

Constructor & Destructor Documentation

_AMPIMP Concurrency::accelerator_view::~accelerator_view ( )

Destructor

_AMPIMP Concurrency::accelerator_view::accelerator_view ( const accelerator_view _Other)

Copy constructor

Concurrency::accelerator_view::accelerator_view ( )
private
_AMPIMP Concurrency::accelerator_view::accelerator_view ( _Accelerator_view_impl_ptr  _Impl,
bool  _Auto_selection = false 
)
private

Member Function Documentation

Concurrency::accelerator_view::__declspec ( property(get=get_is_debug )
Concurrency::accelerator_view::__declspec ( property(get=get_version )
Concurrency::accelerator_view::__declspec ( property(get=get_is_auto_selection )
_AMPIMP concurrency::completion_future Concurrency::accelerator_view::create_marker ( )

Return a future to track the completion of all commands submitted so far to this accelerator_view

_AMPIMP void Concurrency::accelerator_view::flush ( )

Submit all pending commands queued to this accelerator_view to the accelerator for execution.

_AMPIMP accelerator Concurrency::accelerator_view::get_accelerator ( ) const

Get the accelerator for this accelerator view

__declspec (property(get=get_queuing_mode)) Concurrency _AMPIMP bool Concurrency::accelerator_view::get_is_auto_selection ( ) const

Returns a boolean value indicating whether the accelerator view when passed to a parallel_for_each would result in automatic selection of an appropriate execution target by the runtime

__declspec (property(get=get_accelerator)) Concurrency _AMPIMP bool Concurrency::accelerator_view::get_is_debug ( ) const

Returns a boolean value indicating whether the accelerator view was created with DEBUG layer enabled for extensive error reporting

_AMPIMP queuing_mode Concurrency::accelerator_view::get_queuing_mode ( ) const

Get the queuing mode for this accelerator view

_AMPIMP unsigned int Concurrency::accelerator_view::get_version ( ) const

Get the version for this accelerator view

_AMPIMP bool Concurrency::accelerator_view::operator!= ( const accelerator_view _Other) const

Return false if the other accelerator view is same as this accelerator view; true otherwise

_AMPIMP accelerator_view& Concurrency::accelerator_view::operator= ( const accelerator_view _Other)

Assignment operator

_AMPIMP bool Concurrency::accelerator_view::operator== ( const accelerator_view _Other) const

Return true if the other accelerator view is same as this accelerator view; false otherwise

_AMPIMP void Concurrency::accelerator_view::wait ( )

Waits for completion of all commands submitted so far to this accelerator_view

Friends And Related Function Documentation

friend class accelerator
friend
friend class details::_Accelerator_view_hasher
friend
friend class details::_Buffer
friend
friend class details::_CPU_accelerator_view_impl
friend
friend class details::_D3D_accelerator_view_impl
friend
friend class details::_D3D_interop
friend
_Ret_ details::_Accelerator_view_impl* details::_Get_accelerator_view_impl_ptr ( const accelerator_view _Accl_view)
friend
friend class details::_Sampler
friend
friend class details::_Texture
friend
friend class details::_Ubiquitous_buffer
friend
_AMPIMP friend accelerator_view __cdecl direct3d::create_accelerator_view ( _In_ IUnknown *  _D3D_device,
queuing_mode  qmode 
)
friend
_AMPIMP friend accelerator_view __cdecl direct3d::create_accelerator_view ( accelerator _Accelerator,
bool  _Disable_timeout,
queuing_mode  _Qmode 
)
friend
_AMPIMP friend _Ret_ IUnknown* __cdecl direct3d::get_device ( const accelerator_view _Av)
friend
_AMPIMP friend bool __cdecl direct3d::is_timeout_disabled ( const accelerator_view _Accelerator_view)
friend

Member Data Documentation

bool Concurrency::accelerator_view::_M_auto_selection
private
_Accelerator_view_impl_ptr Concurrency::accelerator_view::_M_impl
private

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