PeriDyno 1.0.0
Loading...
Searching...
No Matches
dyno::VkHostArray2D< T > Class Template Reference

#include <VkHostArray2D.h>

Inheritance diagram for dyno::VkHostArray2D< T >:
Collaboration diagram for dyno::VkHostArray2D< T >:

Public Member Functions

 VkHostArray2D ()
 
 VkHostArray2D (uint32_t nx, uint32_t ny)
 
 ~VkHostArray2D ()
 
uint32_t index (uint32_t i, uint32_t j)
 
void resize (uint32_t nx, uint32_t ny, const T *data=nullptr)
 
VariableType type () override
 
uint32_t bufferSize () override
 
void clear ()
 
HostArray2DInfo getInfo ()
 
uint32_t size () const
 
uint32_t nx () const
 
uint32_t ny () const
 
void * mapped ()
 
void unmap ()
 
- Public Member Functions inherited from dyno::VkVariable
 VkVariable ()
 
 ~VkVariable ()
 
VkContextcurrentContext () const
 
VkDescriptorBufferInfo & getDescriptor ()
 
VkBuffer bufferHandle () const
 
virtual void * data () const
 

Private Attributes

uint32_t m_nx = 0
 
uint32_t m_ny = 0
 
uint32_t m_num = 0
 

Additional Inherited Members

- Static Public Member Functions inherited from dyno::VkVariable
static VkDescriptorType descriptorType (const VariableType varType)
 
- Protected Attributes inherited from dyno::VkVariable
VkContextctx = nullptr
 
std::shared_ptr< vks::Bufferbuffer
 

Detailed Description

template<typename T>
class dyno::VkHostArray2D< T >

Definition at line 15 of file VkHostArray2D.h.

Constructor & Destructor Documentation

◆ VkHostArray2D() [1/2]

template<typename T>
dyno::VkHostArray2D< T >::VkHostArray2D ( )
inline

Definition at line 19 of file VkHostArray2D.h.

◆ VkHostArray2D() [2/2]

template<typename T>
dyno::VkHostArray2D< T >::VkHostArray2D ( uint32_t nx,
uint32_t ny )

Definition at line 9 of file VkHostArray2D.inl.

Here is the call graph for this function:

◆ ~VkHostArray2D()

template<typename T>
dyno::VkHostArray2D< T >::~VkHostArray2D ( )

Definition at line 4 of file VkHostArray2D.inl.

Member Function Documentation

◆ bufferSize()

template<typename T>
uint32_t dyno::VkHostArray2D< T >::bufferSize ( )
inlineoverridevirtual

Implements dyno::VkVariable.

Definition at line 34 of file VkHostArray2D.h.

◆ clear()

template<typename T>
void dyno::VkHostArray2D< T >::clear ( )

Definition at line 55 of file VkHostArray2D.inl.

◆ getInfo()

template<typename T>
HostArray2DInfo dyno::VkHostArray2D< T >::getInfo ( )

Definition at line 77 of file VkHostArray2D.inl.

◆ index()

template<typename T>
uint32_t dyno::VkHostArray2D< T >::index ( uint32_t i,
uint32_t j )

Definition at line 15 of file VkHostArray2D.inl.

◆ mapped()

template<typename T>
void * dyno::VkHostArray2D< T >::mapped ( )

Definition at line 64 of file VkHostArray2D.inl.

◆ nx()

template<typename T>
uint32_t dyno::VkHostArray2D< T >::nx ( ) const
inline

Definition at line 41 of file VkHostArray2D.h.

Here is the caller graph for this function:

◆ ny()

template<typename T>
uint32_t dyno::VkHostArray2D< T >::ny ( ) const
inline

Definition at line 42 of file VkHostArray2D.h.

Here is the caller graph for this function:

◆ resize()

template<typename T>
void dyno::VkHostArray2D< T >::resize ( uint32_t nx,
uint32_t ny,
const T * data = nullptr )

Definition at line 21 of file VkHostArray2D.inl.

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

◆ size()

template<typename T>
uint32_t dyno::VkHostArray2D< T >::size ( ) const
inline

Definition at line 40 of file VkHostArray2D.h.

◆ type()

template<typename T>
VariableType dyno::VkHostArray2D< T >::type ( )
overridevirtual

Implements dyno::VkVariable.

Definition at line 49 of file VkHostArray2D.inl.

◆ unmap()

template<typename T>
void dyno::VkHostArray2D< T >::unmap ( )

Definition at line 71 of file VkHostArray2D.inl.

Member Data Documentation

◆ m_num

template<typename T>
uint32_t dyno::VkHostArray2D< T >::m_num = 0
private

Definition at line 52 of file VkHostArray2D.h.

◆ m_nx

template<typename T>
uint32_t dyno::VkHostArray2D< T >::m_nx = 0
private

Definition at line 49 of file VkHostArray2D.h.

◆ m_ny

template<typename T>
uint32_t dyno::VkHostArray2D< T >::m_ny = 0
private

Definition at line 50 of file VkHostArray2D.h.


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