STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Public Attributes | List of all members
_Device_resource_info Struct Reference

#include <amprt.h>

Public Member Functions

BOOL _Is_buffer () const
 
BOOL _Is_texture () const
 
BOOL _Is_sampler () const
 
_Ret_ _Buffer_descriptor_Get_buffer_desc () const
 
_Ret_ _Texture_descriptor_Get_texture_desc () const
 
_Ret_ _Sampler_descriptor_Get_sampler_desc () const
 
_Ret_ void_Get_resource_ptr () const
 

Public Attributes

_Resource_kind _M_resource_kind
 
void_M_desc
 
_Access_mode _M_formal_access_mode
 
size_t _M_actual_arg_num
 

Member Function Documentation

_Ret_ _Buffer_descriptor* _Device_resource_info::_Get_buffer_desc ( ) const
inline
3460  {
3461  _ASSERTE(_Is_buffer());
3462  return reinterpret_cast<_Buffer_descriptor *>(_M_desc);
3463  }
BOOL _Is_buffer() const
Definition: amprt.h:3444
void * _M_desc
Definition: amprt.h:3434
_Ret_ void* _Device_resource_info::_Get_resource_ptr ( ) const
inline
3478  {
3479  if (_Is_buffer())
3480  {
3482  return reinterpret_cast<void *>(_Tmp);
3483  }
3484  else if (_Is_texture())
3485  {
3487  return reinterpret_cast<void *>(_Tmp);
3488  }
3489  else
3490  {
3491  _ASSERTE(_Is_sampler());
3493  return reinterpret_cast<void *>(_Tmp);
3494  }
3495  }
Definition: amprt.h:2369
_Ret_ _Texture_descriptor * _Get_texture_desc() const
Definition: amprt.h:3465
Definition: amprt.h:2152
BOOL _Is_sampler() const
Definition: amprt.h:3454
BOOL _Is_buffer() const
Definition: amprt.h:3444
_Ret_ _Buffer_descriptor * _Get_buffer_desc() const
Definition: amprt.h:3459
_Ret_ _Sampler * _Get_sampler_ptr() const __CPU_ONLY
Definition: amprt.h:780
_Ret_ _Sampler_descriptor * _Get_sampler_desc() const
Definition: amprt.h:3471
_Ret_ _Texture * _Get_texture_ptr() const __CPU_ONLY
Definition: amprt.h:653
_Ret_ _Ubiquitous_buffer * _Get_buffer_ptr() const __CPU_ONLY
Definition: amprt.h:503
BOOL _Is_texture() const
Definition: amprt.h:3449
_Ret_ _Sampler_descriptor* _Device_resource_info::_Get_sampler_desc ( ) const
inline
3472  {
3473  _ASSERTE(_Is_sampler());
3474  return reinterpret_cast<_Sampler_descriptor *>(_M_desc);
3475  }
BOOL _Is_sampler() const
Definition: amprt.h:3454
void * _M_desc
Definition: amprt.h:3434
_Ret_ _Texture_descriptor* _Device_resource_info::_Get_texture_desc ( ) const
inline
3466  {
3467  _ASSERTE(_Is_texture());
3468  return reinterpret_cast<_Texture_descriptor *>(_M_desc);
3469  }
BOOL _Is_texture() const
Definition: amprt.h:3449
void * _M_desc
Definition: amprt.h:3434
BOOL _Device_resource_info::_Is_buffer ( ) const
inline
3445  {
3446  return (_M_resource_kind == RESOURCE_BUFFER);
3447  }
Definition: amprt.h:3425
_Resource_kind _M_resource_kind
Definition: amprt.h:3432
BOOL _Device_resource_info::_Is_sampler ( ) const
inline
3455  {
3456  return (_M_resource_kind == RESOURCE_SAMPLER);
3457  }
Definition: amprt.h:3427
_Resource_kind _M_resource_kind
Definition: amprt.h:3432
BOOL _Device_resource_info::_Is_texture ( ) const
inline
3450  {
3451  return (_M_resource_kind == RESOURCE_TEXTURE);
3452  }
Definition: amprt.h:3426
_Resource_kind _M_resource_kind
Definition: amprt.h:3432

Member Data Documentation

size_t _Device_resource_info::_M_actual_arg_num
void* _Device_resource_info::_M_desc
_Access_mode _Device_resource_info::_M_formal_access_mode
_Resource_kind _Device_resource_info::_M_resource_kind

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