Rise
The Vieneo Province
Loading...
Searching...
No Matches
Rendering::Geometry11 Class Reference

#include <Geometry11.h>

Collaboration diagram for Rendering::Geometry11:
[legend]

Classes

struct  Converted

Public Member Functions

 Geometry11 ()=default
 Geometry11 (const Geometry11 &)=delete
Geometry11 & operator= (const Geometry11 &)=delete
 Geometry11 (Geometry11 &&)=default
Geometry11 & operator= (Geometry11 &&)=default
HRESULT Create (ID3D11Device *device, UINT bytes, bool dynamic, bool index=false, bool indices32=false)
HRESULT Lock (UINT offset, UINT size, void **destination, bool readOnly=false, bool discard=false)
HRESULT Unlock ()
HRESULT BindVertices (ID3D11DeviceContext *context, const VertexLayout11 &layout, UINT byteOffset, bool canonical)
HRESULT BindIndices (ID3D11DeviceContext *context)
HRESULT NativeBuffer (ID3D11DeviceContext *context, ID3D11Buffer **result)
const std::vector< uint8_t > & Bytes () const
UINT Size () const
bool Indices32 () const
bool Locked () const
uint64_t Revision () const
void ReleaseDevice ()
HRESULT RestoreDevice (ID3D11Device *device)
void Reset ()

Private Member Functions

HRESULT Upload (ID3D11DeviceContext *context)

Private Attributes

Microsoft::WRL::ComPtr< ID3D11Device > device
Microsoft::WRL::ComPtr< ID3D11Buffer > native
std::vector< uint8_t > bytes
std::map< VertexLayout11, Converted > converted
uint64_t revision =1
uint64_t uploaded =0
bool dynamic =false
bool index =false
bool indices32 =false
bool locked =false
bool readOnly =false

Detailed Description

Definition at line 23 of file Geometry11.h.

Constructor & Destructor Documentation

◆ Geometry11() [1/3]

Rendering::Geometry11::Geometry11 ( )
default
Here is the caller graph for this function:

◆ Geometry11() [2/3]

Rendering::Geometry11::Geometry11 ( const Geometry11 & )
delete
Here is the call graph for this function:

◆ Geometry11() [3/3]

Rendering::Geometry11::Geometry11 ( Geometry11 && )
default
Here is the call graph for this function:

Member Function Documentation

◆ BindIndices()

HRESULT Rendering::Geometry11::BindIndices ( ID3D11DeviceContext * context)

Definition at line 99 of file Geometry11.cpp.

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

◆ BindVertices()

HRESULT Rendering::Geometry11::BindVertices ( ID3D11DeviceContext * context,
const VertexLayout11 & layout,
UINT byteOffset,
bool canonical )

Definition at line 104 of file Geometry11.cpp.

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

◆ Bytes()

const std::vector< uint8_t > & Rendering::Geometry11::Bytes ( ) const
inline

Definition at line 37 of file Geometry11.h.

Here is the caller graph for this function:

◆ Create()

HRESULT Rendering::Geometry11::Create ( ID3D11Device * device,
UINT bytes,
bool dynamic,
bool index = false,
bool indices32 = false )

Definition at line 44 of file Geometry11.cpp.

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

◆ Indices32()

bool Rendering::Geometry11::Indices32 ( ) const
inline

Definition at line 39 of file Geometry11.h.

Here is the caller graph for this function:

◆ Lock()

HRESULT Rendering::Geometry11::Lock ( UINT offset,
UINT size,
void ** destination,
bool readOnly = false,
bool discard = false )

Definition at line 65 of file Geometry11.cpp.

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

◆ Locked()

bool Rendering::Geometry11::Locked ( ) const
inline

Definition at line 40 of file Geometry11.h.

◆ NativeBuffer()

HRESULT Rendering::Geometry11::NativeBuffer ( ID3D11DeviceContext * context,
ID3D11Buffer ** result )

Definition at line 94 of file Geometry11.cpp.

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

◆ operator=() [1/2]

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

◆ operator=() [2/2]

Geometry11 & Rendering::Geometry11::operator= ( Geometry11 && )
default
Here is the call graph for this function:

◆ ReleaseDevice()

void Rendering::Geometry11::ReleaseDevice ( )

Definition at line 51 of file Geometry11.cpp.

Here is the caller graph for this function:

◆ Reset()

void Rendering::Geometry11::Reset ( )

Definition at line 39 of file Geometry11.cpp.

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

◆ RestoreDevice()

HRESULT Rendering::Geometry11::RestoreDevice ( ID3D11Device * device)

Definition at line 55 of file Geometry11.cpp.

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

◆ Revision()

uint64_t Rendering::Geometry11::Revision ( ) const
inline

Definition at line 41 of file Geometry11.h.

Here is the caller graph for this function:

◆ Size()

UINT Rendering::Geometry11::Size ( ) const
inline

Definition at line 38 of file Geometry11.h.

Here is the caller graph for this function:

◆ Unlock()

HRESULT Rendering::Geometry11::Unlock ( )

Definition at line 75 of file Geometry11.cpp.

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

◆ Upload()

HRESULT Rendering::Geometry11::Upload ( ID3D11DeviceContext * context)
private

Definition at line 80 of file Geometry11.cpp.

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

Member Data Documentation

◆ bytes

std::vector<uint8_t> Rendering::Geometry11::bytes
private

Definition at line 55 of file Geometry11.h.

◆ converted

std::map<VertexLayout11,Converted> Rendering::Geometry11::converted
private

Definition at line 56 of file Geometry11.h.

◆ device

Microsoft::WRL::ComPtr<ID3D11Device> Rendering::Geometry11::device
private

Definition at line 53 of file Geometry11.h.

◆ dynamic

bool Rendering::Geometry11::dynamic =false
private

Definition at line 58 of file Geometry11.h.

◆ index

bool Rendering::Geometry11::index =false
private

Definition at line 58 of file Geometry11.h.

◆ indices32

bool Rendering::Geometry11::indices32 =false
private

Definition at line 58 of file Geometry11.h.

◆ locked

bool Rendering::Geometry11::locked =false
private

Definition at line 58 of file Geometry11.h.

◆ native

Microsoft::WRL::ComPtr<ID3D11Buffer> Rendering::Geometry11::native
private

Definition at line 54 of file Geometry11.h.

◆ readOnly

bool Rendering::Geometry11::readOnly =false
private

Definition at line 58 of file Geometry11.h.

◆ revision

uint64_t Rendering::Geometry11::revision =1
private

Definition at line 57 of file Geometry11.h.

◆ uploaded

uint64_t Rendering::Geometry11::uploaded =0
private

Definition at line 57 of file Geometry11.h.


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