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
3609  {
3610  _ASSERTE(_Is_buffer());
3611  return reinterpret_cast<_Buffer_descriptor *>(_M_desc);
3612  }
#define _ASSERTE(expr)
Definition: crtdbg.h:216
BOOL _Is_buffer() const
Definition: amprt.h:3593
void * _M_desc
Definition: amprt.h:3583
_Ret_ void* _Device_resource_info::_Get_resource_ptr ( ) const
inline
3627  {
3628  if (_Is_buffer())
3629  {
3631  return reinterpret_cast<void *>(_Tmp);
3632  }
3633  else if (_Is_texture())
3634  {
3636  return reinterpret_cast<void *>(_Tmp);
3637  }
3638  else
3639  {
3640  _ASSERTE(_Is_sampler());
3642  return reinterpret_cast<void *>(_Tmp);
3643  }
3644  }
Definition: amprt.h:2445
_Ret_ _Texture_descriptor * _Get_texture_desc() const
Definition: amprt.h:3614
Definition: amprt.h:2228
BOOL _Is_sampler() const
Definition: amprt.h:3603
#define _ASSERTE(expr)
Definition: crtdbg.h:216
BOOL _Is_buffer() const
Definition: amprt.h:3593
_Ret_ _Buffer_descriptor * _Get_buffer_desc() const
Definition: amprt.h:3608
_Ret_ _Sampler * _Get_sampler_ptr() const __CPU_ONLY
Definition: amprt.h:775
_Ret_ _Sampler_descriptor * _Get_sampler_desc() const
Definition: amprt.h:3620
_Ret_ _Texture * _Get_texture_ptr() const __CPU_ONLY
Definition: amprt.h:647
_Ret_ _Ubiquitous_buffer * _Get_buffer_ptr() const __CPU_ONLY
Definition: amprt.h:497
BOOL _Is_texture() const
Definition: amprt.h:3598
_Ret_ _Sampler_descriptor* _Device_resource_info::_Get_sampler_desc ( ) const
inline
3621  {
3622  _ASSERTE(_Is_sampler());
3623  return reinterpret_cast<_Sampler_descriptor *>(_M_desc);
3624  }
BOOL _Is_sampler() const
Definition: amprt.h:3603
#define _ASSERTE(expr)
Definition: crtdbg.h:216
void * _M_desc
Definition: amprt.h:3583
_Ret_ _Texture_descriptor* _Device_resource_info::_Get_texture_desc ( ) const
inline
3615  {
3616  _ASSERTE(_Is_texture());
3617  return reinterpret_cast<_Texture_descriptor *>(_M_desc);
3618  }
#define _ASSERTE(expr)
Definition: crtdbg.h:216
BOOL _Is_texture() const
Definition: amprt.h:3598
void * _M_desc
Definition: amprt.h:3583
BOOL _Device_resource_info::_Is_buffer ( ) const
inline
3594  {
3595  return (_M_resource_kind == RESOURCE_BUFFER);
3596  }
Definition: amprt.h:3574
_Resource_kind _M_resource_kind
Definition: amprt.h:3581
BOOL _Device_resource_info::_Is_sampler ( ) const
inline
3604  {
3605  return (_M_resource_kind == RESOURCE_SAMPLER);
3606  }
Definition: amprt.h:3576
_Resource_kind _M_resource_kind
Definition: amprt.h:3581
BOOL _Device_resource_info::_Is_texture ( ) const
inline
3599  {
3600  return (_M_resource_kind == RESOURCE_TEXTURE);
3601  }
Definition: amprt.h:3575
_Resource_kind _M_resource_kind
Definition: amprt.h:3581

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: