Rise
The Vieneo Province
Loading...
Searching...
No Matches
DirectX::MapGuard Class Reference

#include <DirectXHelpers.h>

Inheritance diagram for DirectX::MapGuard:
[legend]
Collaboration diagram for DirectX::MapGuard:
[legend]

Public Member Functions

 MapGuard (_In_ ID3D11DeviceContext *context, _In_ ID3D11Resource *resource, _In_ unsigned int subresource, _In_ D3D11_MAP mapType, _In_ unsigned int mapFlags) noexcept(false)
 MapGuard (MapGuard &&)=delete
MapGuard & operator= (MapGuard &&)=delete
 MapGuard (MapGuard const &)=delete
MapGuard & operator= (MapGuard const &)=delete
 ~MapGuard ()
uint8_t * get () const noexcept
uint8_t * get (size_t slice) const noexcept
uint8_t * scanline (size_t row) const noexcept
uint8_t * scanline (size_t slice, size_t row) const noexcept
template<typename T>
void copy (_In_reads_(count) T const *data, size_t count) noexcept
template<typename T>
void copy (T const &data) noexcept

Private Attributes

ID3D11DeviceContext * mContext
ID3D11Resource * mResource
unsigned int mSubresource

Detailed Description

Definition at line 83 of file DirectXHelpers.h.

Constructor & Destructor Documentation

◆ MapGuard() [1/3]

DirectX::MapGuard::MapGuard ( _In_ ID3D11DeviceContext * context,
_In_ ID3D11Resource * resource,
_In_ unsigned int subresource,
_In_ D3D11_MAP mapType,
_In_ unsigned int mapFlags )
inline

Definition at line 86 of file DirectXHelpers.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MapGuard() [2/3]

DirectX::MapGuard::MapGuard ( MapGuard && )
delete
Here is the call graph for this function:

◆ MapGuard() [3/3]

DirectX::MapGuard::MapGuard ( MapGuard const & )
delete
Here is the call graph for this function:

◆ ~MapGuard()

DirectX::MapGuard::~MapGuard ( )
inline

Definition at line 108 of file DirectXHelpers.h.

Member Function Documentation

◆ copy() [1/2]

template<typename T>
void DirectX::MapGuard::copy ( _In_reads_(count) T const * data,
size_t count )
inlinenoexcept

Definition at line 130 of file DirectXHelpers.h.

◆ copy() [2/2]

template<typename T>
void DirectX::MapGuard::copy ( T const & data)
inlinenoexcept

Definition at line 136 of file DirectXHelpers.h.

◆ get() [1/2]

uint8_t * DirectX::MapGuard::get ( ) const
inlinenoexcept

Definition at line 116 of file DirectXHelpers.h.

◆ get() [2/2]

uint8_t * DirectX::MapGuard::get ( size_t slice) const
inlinenoexcept

Definition at line 117 of file DirectXHelpers.h.

◆ operator=() [1/2]

MapGuard & DirectX::MapGuard::operator= ( MapGuard && )
delete
Here is the call graph for this function:

◆ operator=() [2/2]

MapGuard & DirectX::MapGuard::operator= ( MapGuard const & )
delete
Here is the call graph for this function:

◆ scanline() [1/2]

uint8_t * DirectX::MapGuard::scanline ( size_t row) const
inlinenoexcept

Definition at line 119 of file DirectXHelpers.h.

◆ scanline() [2/2]

uint8_t * DirectX::MapGuard::scanline ( size_t slice,
size_t row ) const
inlinenoexcept

Definition at line 120 of file DirectXHelpers.h.

Member Data Documentation

◆ mContext

ID3D11DeviceContext* DirectX::MapGuard::mContext
private

Definition at line 142 of file DirectXHelpers.h.

◆ mResource

ID3D11Resource* DirectX::MapGuard::mResource
private

Definition at line 143 of file DirectXHelpers.h.

◆ mSubresource

unsigned int DirectX::MapGuard::mSubresource
private

Definition at line 144 of file DirectXHelpers.h.


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