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

#include <VkConstant.h>

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

Public Member Functions

 VkConstant ()
 
 VkConstant (T val)
 
 ~VkConstant ()
 
void setValue (const T val)
 
T getValue ()
 
VariableType type () override
 
uint32_t bufferSize () override
 
void * data () const override
 
- Public Member Functions inherited from dyno::VkVariable
 VkVariable ()
 
 ~VkVariable ()
 
VkContextcurrentContext () const
 
VkDescriptorBufferInfo & getDescriptor ()
 
VkBuffer bufferHandle () const
 

Protected Attributes

T mVal
 
- Protected Attributes inherited from dyno::VkVariable
VkContextctx = nullptr
 
std::shared_ptr< vks::Bufferbuffer
 

Additional Inherited Members

- Static Public Member Functions inherited from dyno::VkVariable
static VkDescriptorType descriptorType (const VariableType varType)
 

Detailed Description

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

Definition at line 7 of file VkConstant.h.

Constructor & Destructor Documentation

◆ VkConstant() [1/2]

template<typename T>
dyno::VkConstant< T >::VkConstant ( )

Definition at line 6 of file VkConstant.inl.

Here is the call graph for this function:

◆ VkConstant() [2/2]

template<typename T>
dyno::VkConstant< T >::VkConstant ( T val)

Definition at line 12 of file VkConstant.inl.

◆ ~VkConstant()

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

Definition at line 18 of file VkConstant.inl.

Member Function Documentation

◆ bufferSize()

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

Implements dyno::VkVariable.

Definition at line 19 of file VkConstant.h.

◆ data()

template<typename T>
void * dyno::VkConstant< T >::data ( ) const
inlineoverridevirtual

Reimplemented from dyno::VkVariable.

Definition at line 21 of file VkConstant.h.

◆ getValue()

template<typename T>
T dyno::VkConstant< T >::getValue ( )

Definition at line 30 of file VkConstant.inl.

Here is the caller graph for this function:

◆ setValue()

template<typename T>
void dyno::VkConstant< T >::setValue ( const T val)

Definition at line 24 of file VkConstant.inl.

Here is the caller graph for this function:

◆ type()

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

Implements dyno::VkVariable.

Definition at line 36 of file VkConstant.inl.

Member Data Documentation

◆ mVal

template<typename T>
T dyno::VkConstant< T >::mVal
protected

Definition at line 24 of file VkConstant.h.


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