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 *) __GPU_ONLY
 

Public Attributes

void_M_data_ptr
 

Private Attributes

_Sampler_M_sampler_ptr
 

Constructor & Destructor Documentation

Concurrency::details::_Sampler_descriptor::_Sampler_descriptor ( )
inline
735  {
736  }
void * _M_data_ptr
Definition: amprt.h:720
_Sampler * _M_sampler_ptr
Definition: amprt.h:727
#define NULL
Definition: corecrt.h:158
Concurrency::details::_Sampler_descriptor::_Sampler_descriptor ( _In_ _Sampler _Sampler_ptr)
inline
740  {
742  }
void * _M_data_ptr
Definition: amprt.h:720
details::_Reference_counted_obj_ptr< details::_Sampler > _Sampler_ptr
Definition: amprt.h:310
void _Set_sampler_ptr(_In_opt_ _Sampler *_Sampler_ptr) __CPU_ONLY
Definition: amprt.h:785
_Sampler * _M_sampler_ptr
Definition: amprt.h:727
#define NULL
Definition: corecrt.h:158
Concurrency::details::_Sampler_descriptor::~_Sampler_descriptor ( )
inline
746  {
748  }
void _Set_sampler_ptr(_In_opt_ _Sampler *_Sampler_ptr) __CPU_ONLY
Definition: amprt.h:785
#define NULL
Definition: corecrt.h:158
Concurrency::details::_Sampler_descriptor::_Sampler_descriptor ( const _Sampler_descriptor _Other)
inline
753  {
755  }
void * _M_data_ptr
Definition: amprt.h:720
void _Set_sampler_ptr(_In_opt_ _Sampler *_Sampler_ptr) __CPU_ONLY
Definition: amprt.h:785
_Sampler * _M_sampler_ptr
Definition: amprt.h:727
#define NULL
Definition: corecrt.h:158
Concurrency::details::_Sampler_descriptor::_Sampler_descriptor ( _Sampler_descriptor &&  _Other)
inline
771  {
772  *this = std::move(_Other);
773  }
constexpr remove_reference< _Ty >::type && move(_Ty &&_Arg) _NOEXCEPT
Definition: type_traits:1349

Member Function Documentation

_Ret_ _Sampler* Concurrency::details::_Sampler_descriptor::_Get_sampler_ptr ( ) const
inline
781  {
782  return _M_sampler_ptr;
783  }
_Sampler * _M_sampler_ptr
Definition: amprt.h:727
void Concurrency::details::_Sampler_descriptor::_Set_sampler_ptr ( _In_opt_ _Sampler _Sampler_ptr)
inline
786  {
788  {
789  if (_M_sampler_ptr != NULL) {
790  reinterpret_cast<_Reference_counter*>(_M_sampler_ptr)->_Remove_reference();
791  }
792 
794 
795  if (_M_sampler_ptr != NULL) {
796  reinterpret_cast<_Reference_counter*>(_M_sampler_ptr)->_Add_reference();
797  }
798  }
799  }
Definition: type_traits:160
details::_Reference_counted_obj_ptr< details::_Sampler > _Sampler_ptr
Definition: amprt.h:310
_Sampler * _M_sampler_ptr
Definition: amprt.h:727
#define NULL
Definition: corecrt.h:158
void Concurrency::details::_Sampler_descriptor::_Set_sampler_ptr ( _In_opt_ _Sampler )
inline
803  {
804  // No need to set the sampler ptr on the GPU
806  }
_Sampler * _M_sampler_ptr
Definition: amprt.h:727
#define NULL
Definition: corecrt.h:158
_Sampler_descriptor& Concurrency::details::_Sampler_descriptor::operator= ( const _Sampler_descriptor _Other)
inline
759  {
760  if (this != &_Other)
761  {
762  _M_data_ptr = _Other._M_data_ptr;
764  }
765 
766  return *this;
767  }
void * _M_data_ptr
Definition: amprt.h:720
void _Set_sampler_ptr(_In_opt_ _Sampler *_Sampler_ptr) __CPU_ONLY
Definition: amprt.h:785
_Sampler * _M_sampler_ptr
Definition: amprt.h:727
bool Concurrency::details::_Sampler_descriptor::operator== ( const _Sampler_descriptor _Other) const
inline
776  {
777  return _M_sampler_ptr == _Other._M_sampler_ptr && _M_data_ptr == _Other._M_data_ptr;
778  }
void * _M_data_ptr
Definition: amprt.h:720
_Sampler * _M_sampler_ptr
Definition: amprt.h:727

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: