#include <amprt.h>
|
static _AMPIMP _Ret_ _Buffer *__cdecl | _Create_buffer (accelerator_view _Accelerator_view, accelerator_view _Access_on_accelerator_view, size_t _Num_elems, size_t _Elem_size, bool _Is_temp=false, access_type _Cpu_access_type=access_type_auto) |
|
static _AMPIMP _Ret_ _Buffer *__cdecl | _Create_buffer (_In_ void *_Data_ptr, accelerator_view _Accelerator_view, size_t _Num_elems, size_t _Elem_size) |
|
static _AMPIMP _Ret_ _Buffer *__cdecl | _Create_stage_buffer (accelerator_view _Accelerator_view, accelerator_view _Access_on_accelerator_view, size_t _Num_elems, size_t _Elem_size, bool _Is_temp=false) |
|
static _AMPIMP _Ret_ _Buffer *__cdecl | _Get_temp_staging_buffer (accelerator_view _Av, size_t _Requested_num_elems, size_t _Elem_size) |
|
|
| _Buffer (_In_ _Accelerator_view_impl *_Av, _In_ void *_Buffer_data_ptr, _In_ void *_Host_ptr, _Access_mode _Allowed_host_access_mode, _Access_mode _Current_host_access_mode, size_t _Num_elems, size_t _Elem_size, bool _Owns_data, bool _Is_staging, bool _Is_temp, bool _Is_adopted) |
|
virtual | ~_Buffer () |
|
| _Buffer () |
|
| _Buffer (const _Buffer &rhs) |
|
_Buffer & | operator= (const _Buffer &rhs) |
|
void | _Set_host_ptr (_In_ void *_Host_ptr, _Access_mode _Host_access_mode=_No_access) |
|
void | _Set_data_ptr (_In_ IUnknown *_Data_ptr) |
|
Concurrency::details::_Buffer::_Buffer |
( |
_In_ _Accelerator_view_impl * |
_Av, |
|
|
_In_ void * |
_Buffer_data_ptr, |
|
|
_In_ void * |
_Host_ptr, |
|
|
_Access_mode |
_Allowed_host_access_mode, |
|
|
_Access_mode |
_Current_host_access_mode, |
|
|
size_t |
_Num_elems, |
|
|
size_t |
_Elem_size, |
|
|
bool |
_Owns_data, |
|
|
bool |
_Is_staging, |
|
|
bool |
_Is_temp, |
|
|
bool |
_Is_adopted |
|
) |
| |
|
protected |
virtual Concurrency::details::_Buffer::~_Buffer |
( |
| ) |
|
|
protectedvirtual |
Concurrency::details::_Buffer::_Buffer |
( |
| ) |
|
|
protected |
Concurrency::details::_Buffer::_Buffer |
( |
const _Buffer & |
rhs | ) |
|
|
protected |
_AMPIMP bool Concurrency::details::_Buffer::_Exclusively_owns_data |
( |
| ) |
|
_Ret_ _Accelerator_view_impl* Concurrency::details::_Buffer::_Get_accelerator_view_impl |
( |
| ) |
const |
|
inline |
_Accelerator_view_impl_ptr _M_accelerator_view
Definition: amprt.h:2129
_Ret_ _Accelerator_view_impl* Concurrency::details::_Buffer::_Get_access_on_accelerator_view_impl |
( |
| ) |
const |
|
inline |
_Accelerator_view_impl_ptr _M_access_on_accelerator_view
Definition: amprt.h:2130
_Access_mode Concurrency::details::_Buffer::_Get_allowed_host_access_mode |
( |
| ) |
const |
|
inline |
_Access_mode _M_allowed_host_access_mode
Definition: amprt.h:2133
access_type Concurrency::details::_Buffer::_Get_allowed_host_access_type |
( |
| ) |
const |
|
inline |
access_type _Get_cpu_access_type(_Access_mode _Cpu_access_mode)
Definition: amprt.h:1945
_Access_mode _M_allowed_host_access_mode
Definition: amprt.h:2133
_Access_mode Concurrency::details::_Buffer::_Get_current_host_access_mode |
( |
| ) |
const |
|
inline |
_Access_mode _M_current_host_access_mode
Definition: amprt.h:2134
_Ret_ void* Concurrency::details::_Buffer::_Get_data_ptr |
( |
| ) |
const |
|
inline |
void * _M_data_ptr
Definition: amprt.h:2131
size_t Concurrency::details::_Buffer::_Get_elem_size |
( |
| ) |
const |
|
inline |
size_t _M_elem_size
Definition: amprt.h:2135
_Ret_ void* Concurrency::details::_Buffer::_Get_host_ptr |
( |
| ) |
const |
|
inline |
void * _M_host_ptr
Definition: amprt.h:2132
size_t Concurrency::details::_Buffer::_Get_num_elems |
( |
| ) |
const |
|
inline |
size_t _M_num_elems
Definition: amprt.h:2136
bool Concurrency::details::_Buffer::_Is_adopted |
( |
| ) |
const |
|
inline |
bool _M_is_adopted
Definition: amprt.h:2143
bool Concurrency::details::_Buffer::_Is_buffer |
( |
| ) |
const |
|
inline |
bool _M_is_buffer
Definition: amprt.h:2144
bool Concurrency::details::_Buffer::_Is_host_accessible |
( |
_Access_mode |
_Requested_access_mode | ) |
const |
|
inline |
_Access_mode _Get_allowed_host_access_mode() const
Definition: amprt.h:2056
_AMPIMP bool Concurrency::details::_Buffer::_Is_mappable |
( |
| ) |
const |
bool Concurrency::details::_Buffer::_Is_staging |
( |
| ) |
const |
|
inline |
bool _M_is_staging
Definition: amprt.h:2138
bool Concurrency::details::_Buffer::_Is_temp |
( |
| ) |
const |
|
inline |
bool _M_is_temp
Definition: amprt.h:2141
bool Concurrency::details::_Buffer::_Owns_data |
( |
| ) |
const |
|
inline |
bool _M_owns_data
Definition: amprt.h:2137
void Concurrency::details::_Buffer::_Set_data_ptr |
( |
_In_ IUnknown * |
_Data_ptr | ) |
|
|
inlineprotected |
void * _M_data_ptr
Definition: amprt.h:2131
2112 _ASSERTE((_Host_ptr ==
NULL) || (_Host_access_mode !=
_No_access));
2115 if (_Host_ptr ==
NULL) {
#define NULL
Definition: vcruntime.h:236
_Access_mode _M_current_host_access_mode
Definition: amprt.h:2134
void * _M_host_ptr
Definition: amprt.h:2132
_AMPIMP void Concurrency::details::_Buffer::_Unmap_buffer |
( |
| ) |
|
_Buffer& Concurrency::details::_Buffer::operator= |
( |
const _Buffer & |
rhs | ) |
|
|
protected |
friend class _CPU_accelerator_view_impl |
|
friend |
friend class _D3D_accelerator_view_impl |
|
friend |
friend class _D3D_temp_staging_cache |
|
friend |
_Access_mode Concurrency::details::_Buffer::_M_allowed_host_access_mode |
|
protected |
_Access_mode Concurrency::details::_Buffer::_M_current_host_access_mode |
|
protected |
void* Concurrency::details::_Buffer::_M_data_ptr |
|
protected |
size_t Concurrency::details::_Buffer::_M_elem_size |
|
protected |
void* Concurrency::details::_Buffer::_M_host_ptr |
|
protected |
bool Concurrency::details::_Buffer::_M_is_adopted |
|
protected |
bool Concurrency::details::_Buffer::_M_is_buffer |
|
protected |
bool Concurrency::details::_Buffer::_M_is_staging |
|
protected |
bool Concurrency::details::_Buffer::_M_is_temp |
|
protected |
size_t Concurrency::details::_Buffer::_M_num_elems |
|
protected |
bool Concurrency::details::_Buffer::_M_owns_data |
|
protected |
std::unique_ptr<std::unordered_set<_View_key> > Concurrency::details::_Buffer::_M_view_keys |
|
private |
The documentation for this class was generated from the following file: