PeriDyno 1.0.0
Loading...
Searching...
No Matches
dyno::VkVariable Class Referenceabstract

#include <VkVariable.h>

Inheritance diagram for dyno::VkVariable:
Collaboration diagram for dyno::VkVariable:

Public Member Functions

 VkVariable ()
 
 ~VkVariable ()
 
VkContextcurrentContext () const
 
VkDescriptorBufferInfo & getDescriptor ()
 
VkBuffer bufferHandle () const
 
virtual VariableType type ()=0
 
virtual uint32_t bufferSize ()=0
 
virtual void * data () const
 

Static Public Member Functions

static VkDescriptorType descriptorType (const VariableType varType)
 

Protected Attributes

VkContextctx = nullptr
 
std::shared_ptr< vks::Bufferbuffer
 

Detailed Description

Definition at line 28 of file VkVariable.h.

Constructor & Destructor Documentation

◆ VkVariable()

dyno::VkVariable::VkVariable ( )

Definition at line 6 of file VkVariable.cpp.

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

◆ ~VkVariable()

dyno::VkVariable::~VkVariable ( )

Definition at line 12 of file VkVariable.cpp.

Member Function Documentation

◆ bufferHandle()

VkBuffer dyno::VkVariable::bufferHandle ( ) const
inline

Definition at line 37 of file VkVariable.h.

Here is the caller graph for this function:

◆ bufferSize()

◆ currentContext()

VkContext * dyno::VkVariable::currentContext ( ) const
inline

Definition at line 33 of file VkVariable.h.

Here is the caller graph for this function:

◆ data()

virtual void * dyno::VkVariable::data ( ) const
inlinevirtual

Reimplemented in dyno::VkConstant< T >, and dyno::VkConstant< uint32_t >.

Definition at line 45 of file VkVariable.h.

Here is the caller graph for this function:

◆ descriptorType()

VkDescriptorType dyno::VkVariable::descriptorType ( const VariableType varType)
static

Definition at line 18 of file VkVariable.cpp.

Here is the caller graph for this function:

◆ getDescriptor()

VkDescriptorBufferInfo & dyno::VkVariable::getDescriptor ( )
inline

Definition at line 35 of file VkVariable.h.

◆ type()

Member Data Documentation

◆ buffer

std::shared_ptr<vks::Buffer> dyno::VkVariable::buffer
protected

Definition at line 50 of file VkVariable.h.

◆ ctx

VkContext* dyno::VkVariable::ctx = nullptr
protected

Definition at line 48 of file VkVariable.h.


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