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::_Texture_descriptor Struct Reference

#include <amprt.h>

Public Member Functions

 _Texture_descriptor () __GPU
 
 _Texture_descriptor (unsigned int _Most_detailed_mipmap_level, unsigned int _View_mipmap_levels) __GPU
 
 ~_Texture_descriptor () __GPU
 
 _Texture_descriptor (const _Texture_descriptor &_Other) __GPU
 
 _Texture_descriptor (const _Texture_descriptor &_Other, unsigned int _Most_detailed_mipmap_level, unsigned int _View_mipmap_levels) __GPU
 
_Texture_descriptoroperator= (const _Texture_descriptor &_Other) __GPU
 
 _Texture_descriptor (_Texture_descriptor &&_Other) __CPU_ONLY
 
bool operator== (const _Texture_descriptor &_Other) const __GPU
 
_Ret_ _Texture_Get_texture_ptr () const __CPU_ONLY
 
unsigned int _Get_most_detailed_mipmap_level () const __GPU
 
unsigned int _Get_view_mipmap_levels () const __GPU
 
void _Set_view_mipmap_levels (unsigned int _View_mipmap_levels) __CPU_ONLY
 
void _Set_texture_ptr (_In_opt_ _Texture *_Texture_ptr) __CPU_ONLY
 
void _Set_texture_ptr (_In_opt_ _Texture *_Texture_ptr) __GPU_ONLY
 
bool _Are_mipmap_levels_overlapping (const _Texture_descriptor *_Other) const __CPU_ONLY
 

Public Attributes

IUnknown * _M_data_ptr
 
_Texture_descriptor(_In_ _Texture *_Texture_ptr _M_view_mipmap_levels ) = _Get_mipmap_levels(_M_texture_ptr)
 

Private Attributes

_Texture_M_texture_ptr
 
unsigned int _M_most_detailed_mipmap_level
 
unsigned int _M_view_mipmap_levels
 

Constructor & Destructor Documentation

Concurrency::details::_Texture_descriptor::_Texture_descriptor ( )
inline
578  {
579  // Enables move constructor
580  }
unsigned int _M_view_mipmap_levels
Definition: amprt.h:570
#define NULL
Definition: crtdbg.h:30
IUnknown * _M_data_ptr
Definition: amprt.h:553
unsigned int _M_most_detailed_mipmap_level
Definition: amprt.h:564
_Texture * _M_texture_ptr
Definition: amprt.h:560
Concurrency::details::_Texture_descriptor::_Texture_descriptor ( unsigned int  _Most_detailed_mipmap_level,
unsigned int  _View_mipmap_levels 
)
inline
584  : _M_data_ptr(NULL), _M_texture_ptr(NULL), _M_most_detailed_mipmap_level(_Most_detailed_mipmap_level), _M_view_mipmap_levels(_View_mipmap_levels)
585  {
586  }
unsigned int _M_view_mipmap_levels
Definition: amprt.h:570
#define NULL
Definition: crtdbg.h:30
IUnknown * _M_data_ptr
Definition: amprt.h:553
unsigned int _M_most_detailed_mipmap_level
Definition: amprt.h:564
_Texture * _M_texture_ptr
Definition: amprt.h:560
Concurrency::details::_Texture_descriptor::~_Texture_descriptor ( )
inline
599  {
601  }
#define NULL
Definition: crtdbg.h:30
void _Set_texture_ptr(_In_opt_ _Texture *_Texture_ptr) __CPU_ONLY
Definition: amprt.h:668
Concurrency::details::_Texture_descriptor::_Texture_descriptor ( const _Texture_descriptor _Other)
inline
607  {
609  }
unsigned int _M_view_mipmap_levels
Definition: amprt.h:570
#define NULL
Definition: crtdbg.h:30
IUnknown * _M_data_ptr
Definition: amprt.h:553
void _Set_texture_ptr(_In_opt_ _Texture *_Texture_ptr) __CPU_ONLY
Definition: amprt.h:668
unsigned int _M_most_detailed_mipmap_level
Definition: amprt.h:564
_Texture * _M_texture_ptr
Definition: amprt.h:560
Concurrency::details::_Texture_descriptor::_Texture_descriptor ( const _Texture_descriptor _Other,
unsigned int  _Most_detailed_mipmap_level,
unsigned int  _View_mipmap_levels 
)
inline
614  _M_most_detailed_mipmap_level(_Most_detailed_mipmap_level), _M_view_mipmap_levels(_View_mipmap_levels)
615  {
617  }
unsigned int _M_view_mipmap_levels
Definition: amprt.h:570
#define NULL
Definition: crtdbg.h:30
IUnknown * _M_data_ptr
Definition: amprt.h:553
void _Set_texture_ptr(_In_opt_ _Texture *_Texture_ptr) __CPU_ONLY
Definition: amprt.h:668
unsigned int _M_most_detailed_mipmap_level
Definition: amprt.h:564
_Texture * _M_texture_ptr
Definition: amprt.h:560
Concurrency::details::_Texture_descriptor::_Texture_descriptor ( _Texture_descriptor &&  _Other)
inline
635  {
636  *this = std::move(_Other);
637  }
_OutIt move(_InIt _First, _InIt _Last, _OutIt _Dest)
Definition: xutility:2447

Member Function Documentation

bool Concurrency::details::_Texture_descriptor::_Are_mipmap_levels_overlapping ( const _Texture_descriptor _Other) const
inline
695  {
696  _ASSERTE(_Other);
697 
698  if (this->_Get_texture_ptr() != _Other->_Get_texture_ptr())
699  {
700  return false;
701  }
702 
705  }
unsigned int _M_view_mipmap_levels
Definition: amprt.h:570
#define _ASSERTE(expr)
Definition: crtdbg.h:216
unsigned int _M_most_detailed_mipmap_level
Definition: amprt.h:564
_Ret_ _Texture * _Get_texture_ptr() const __CPU_ONLY
Definition: amprt.h:647
unsigned int Concurrency::details::_Texture_descriptor::_Get_most_detailed_mipmap_level ( ) const
inline
654  {
656  }
unsigned int _M_most_detailed_mipmap_level
Definition: amprt.h:564
_Ret_ _Texture* Concurrency::details::_Texture_descriptor::_Get_texture_ptr ( ) const
inline
648  {
650  return _M_texture_ptr;
651  }
#define _ASSERTE(expr)
Definition: crtdbg.h:216
_Texture * _M_texture_ptr
Definition: amprt.h:560
unsigned int Concurrency::details::_Texture_descriptor::_Get_view_mipmap_levels ( ) const
inline
659  {
660  return _M_view_mipmap_levels;
661  }
unsigned int _M_view_mipmap_levels
Definition: amprt.h:570
void Concurrency::details::_Texture_descriptor::_Set_texture_ptr ( _In_opt_ _Texture _Texture_ptr)
inline
669  {
671  {
672  if (_M_texture_ptr != NULL) {
673  reinterpret_cast<_Reference_counter*>(_M_texture_ptr)->_Remove_reference();
674  }
675 
677 
678  if (_M_texture_ptr != NULL) {
679  reinterpret_cast<_Reference_counter*>(_M_texture_ptr)->_Add_reference();
680  }
681  }
682  }
details::_Reference_counted_obj_ptr< details::_Texture > _Texture_ptr
Definition: amprt.h:303
#define NULL
Definition: crtdbg.h:30
_Texture * _M_texture_ptr
Definition: amprt.h:560
void Concurrency::details::_Texture_descriptor::_Set_texture_ptr ( _In_opt_ _Texture _Texture_ptr)
inline
686  {
687  // No need to set the texture ptr on the GPU
688  UNREFERENCED_PARAMETER(_Texture_ptr);
690  }
details::_Reference_counted_obj_ptr< details::_Texture > _Texture_ptr
Definition: amprt.h:303
#define NULL
Definition: crtdbg.h:30
_Texture * _M_texture_ptr
Definition: amprt.h:560
void Concurrency::details::_Texture_descriptor::_Set_view_mipmap_levels ( unsigned int  _View_mipmap_levels)
inline
664  {
665  _M_view_mipmap_levels = _View_mipmap_levels;
666  }
unsigned int _M_view_mipmap_levels
Definition: amprt.h:570
_Texture_descriptor& Concurrency::details::_Texture_descriptor::operator= ( const _Texture_descriptor _Other)
inline
621  {
622  if (this != &_Other)
623  {
624  _M_data_ptr = _Other._M_data_ptr;
628  }
629 
630  return *this;
631  }
unsigned int _M_view_mipmap_levels
Definition: amprt.h:570
IUnknown * _M_data_ptr
Definition: amprt.h:553
void _Set_texture_ptr(_In_opt_ _Texture *_Texture_ptr) __CPU_ONLY
Definition: amprt.h:668
unsigned int _M_most_detailed_mipmap_level
Definition: amprt.h:564
_Texture * _M_texture_ptr
Definition: amprt.h:560
bool Concurrency::details::_Texture_descriptor::operator== ( const _Texture_descriptor _Other) const
inline
640  {
641  return _M_texture_ptr == _Other._M_texture_ptr
642  && _M_data_ptr == _Other._M_data_ptr
645  }
unsigned int _M_view_mipmap_levels
Definition: amprt.h:570
IUnknown * _M_data_ptr
Definition: amprt.h:553
unsigned int _M_most_detailed_mipmap_level
Definition: amprt.h:564
_Texture * _M_texture_ptr
Definition: amprt.h:560

Member Data Documentation

IUnknown* Concurrency::details::_Texture_descriptor::_M_data_ptr
mutable
unsigned int Concurrency::details::_Texture_descriptor::_M_most_detailed_mipmap_level
private
_Texture* Concurrency::details::_Texture_descriptor::_M_texture_ptr
private
unsigned int Concurrency::details::_Texture_descriptor::_M_view_mipmap_levels
private
_Texture_descriptor (_In_ _Texture * _Texture_ptr Concurrency::details::_Texture_descriptor::_M_view_mipmap_levels) = _Get_mipmap_levels(_M_texture_ptr)

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