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

#include <amprt.h>

Public Member Functions

 _Sampler_descriptor () __GPU
 
 _Sampler_descriptor (_In_ _Sampler *_Sampler_ptr) __GPU
 
 ~_Sampler_descriptor () __GPU
 
 _Sampler_descriptor (const _Sampler_descriptor &_Other) __GPU
 
_Sampler_descriptoroperator= (const _Sampler_descriptor &_Other) __GPU
 
 _Sampler_descriptor (_Sampler_descriptor &&_Other) __CPU_ONLY
 
bool operator== (const _Sampler_descriptor &_Other) const __GPU
 
_Ret_ _Sampler_Get_sampler_ptr () const __CPU_ONLY
 
void _Set_sampler_ptr (_In_opt_ _Sampler *_Sampler_ptr) __CPU_ONLY
 
void _Set_sampler_ptr (_In_opt_ _Sampler *_Sampler_ptr) __GPU_ONLY
 

Public Attributes

void_M_data_ptr
 

Private Attributes

_Sampler_M_sampler_ptr
 

Constructor & Destructor Documentation

Concurrency::details::_Sampler_descriptor::_Sampler_descriptor ( )
inline
730  {
731  }
#define NULL
Definition: crtdbg.h:30
void * _M_data_ptr
Definition: amprt.h:715
_Sampler * _M_sampler_ptr
Definition: amprt.h:722
Concurrency::details::_Sampler_descriptor::_Sampler_descriptor ( _In_ _Sampler _Sampler_ptr)
inline
735  {
737  }
#define NULL
Definition: crtdbg.h:30
void * _M_data_ptr
Definition: amprt.h:715
details::_Reference_counted_obj_ptr< details::_Sampler > _Sampler_ptr
Definition: amprt.h:304
void _Set_sampler_ptr(_In_opt_ _Sampler *_Sampler_ptr) __CPU_ONLY
Definition: amprt.h:780
_Sampler * _M_sampler_ptr
Definition: amprt.h:722
Concurrency::details::_Sampler_descriptor::~_Sampler_descriptor ( )
inline
741  {
743  }
#define NULL
Definition: crtdbg.h:30
void _Set_sampler_ptr(_In_opt_ _Sampler *_Sampler_ptr) __CPU_ONLY
Definition: amprt.h:780
Concurrency::details::_Sampler_descriptor::_Sampler_descriptor ( const _Sampler_descriptor _Other)
inline
748  {
750  }
#define NULL
Definition: crtdbg.h:30
void * _M_data_ptr
Definition: amprt.h:715
void _Set_sampler_ptr(_In_opt_ _Sampler *_Sampler_ptr) __CPU_ONLY
Definition: amprt.h:780
_Sampler * _M_sampler_ptr
Definition: amprt.h:722
Concurrency::details::_Sampler_descriptor::_Sampler_descriptor ( _Sampler_descriptor &&  _Other)
inline
766  {
767  *this = std::move(_Other);
768  }
_OutIt move(_InIt _First, _InIt _Last, _OutIt _Dest)
Definition: xutility:2447

Member Function Documentation

_Ret_ _Sampler* Concurrency::details::_Sampler_descriptor::_Get_sampler_ptr ( ) const
inline
776  {
777  return _M_sampler_ptr;
778  }
_Sampler * _M_sampler_ptr
Definition: amprt.h:722
void Concurrency::details::_Sampler_descriptor::_Set_sampler_ptr ( _In_opt_ _Sampler _Sampler_ptr)
inline
781  {
783  {
784  if (_M_sampler_ptr != NULL) {
785  reinterpret_cast<_Reference_counter*>(_M_sampler_ptr)->_Remove_reference();
786  }
787 
789 
790  if (_M_sampler_ptr != NULL) {
791  reinterpret_cast<_Reference_counter*>(_M_sampler_ptr)->_Add_reference();
792  }
793  }
794  }
#define NULL
Definition: crtdbg.h:30
details::_Reference_counted_obj_ptr< details::_Sampler > _Sampler_ptr
Definition: amprt.h:304
_Sampler * _M_sampler_ptr
Definition: amprt.h:722
void Concurrency::details::_Sampler_descriptor::_Set_sampler_ptr ( _In_opt_ _Sampler _Sampler_ptr)
inline
798  {
799  // No need to set the sampler ptr on the GPU
800  UNREFERENCED_PARAMETER(_Sampler_ptr);
802  }
#define NULL
Definition: crtdbg.h:30
details::_Reference_counted_obj_ptr< details::_Sampler > _Sampler_ptr
Definition: amprt.h:304
_Sampler * _M_sampler_ptr
Definition: amprt.h:722
_Sampler_descriptor& Concurrency::details::_Sampler_descriptor::operator= ( const _Sampler_descriptor _Other)
inline
754  {
755  if (this != &_Other)
756  {
757  _M_data_ptr = _Other._M_data_ptr;
759  }
760 
761  return *this;
762  }
void * _M_data_ptr
Definition: amprt.h:715
void _Set_sampler_ptr(_In_opt_ _Sampler *_Sampler_ptr) __CPU_ONLY
Definition: amprt.h:780
_Sampler * _M_sampler_ptr
Definition: amprt.h:722
bool Concurrency::details::_Sampler_descriptor::operator== ( const _Sampler_descriptor _Other) const
inline
771  {
772  return _M_sampler_ptr == _Other._M_sampler_ptr && _M_data_ptr == _Other._M_data_ptr;
773  }
void * _M_data_ptr
Definition: amprt.h:715
_Sampler * _M_sampler_ptr
Definition: amprt.h:722

Member Data Documentation

void* Concurrency::details::_Sampler_descriptor::_M_data_ptr
mutable
_Sampler* Concurrency::details::_Sampler_descriptor::_M_sampler_ptr
private

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