HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GR_InstanceBuffer Class Reference

#include <GR_UtilsVK.h>

Public Member Functions

 GR_InstanceBuffer (const char *name, RV_GPUType type, int vsize, int ninstances, int step=1, bool normalized=true)
 
void init (RV_Render *r, int entries)
 
void initCPUMapped (RV_Render *r, int entries, bool cpu_mapped=true)
 
 UT_NON_COPYABLE (GR_InstanceBuffer)
 

Public Attributes

UT_UniquePtr< RV_VKBufferBuffer
 
UT_StringHolder AttribName
 
RV_GPUType Type = RV_GPU_FLOAT32
 
int VectorSize = 4
 
int NumInstances = 1
 
int InstanceStep = 1
 
bool NormalizedFormat = true
 

Detailed Description

Definition at line 125 of file GR_UtilsVK.h.

Constructor & Destructor Documentation

GR_InstanceBuffer::GR_InstanceBuffer ( const char *  name,
RV_GPUType  type,
int  vsize,
int  ninstances,
int  step = 1,
bool  normalized = true 
)
inline

Definition at line 128 of file GR_UtilsVK.h.

Member Function Documentation

void GR_InstanceBuffer::init ( RV_Render r,
int  entries 
)
void GR_InstanceBuffer::initCPUMapped ( RV_Render r,
int  entries,
bool  cpu_mapped = true 
)
GR_InstanceBuffer::UT_NON_COPYABLE ( GR_InstanceBuffer  )

Member Data Documentation

UT_StringHolder GR_InstanceBuffer::AttribName

Definition at line 146 of file GR_UtilsVK.h.

UT_UniquePtr<RV_VKBuffer> GR_InstanceBuffer::Buffer

Definition at line 145 of file GR_UtilsVK.h.

int GR_InstanceBuffer::InstanceStep = 1

Definition at line 150 of file GR_UtilsVK.h.

bool GR_InstanceBuffer::NormalizedFormat = true

Definition at line 151 of file GR_UtilsVK.h.

int GR_InstanceBuffer::NumInstances = 1

Definition at line 149 of file GR_UtilsVK.h.

RV_GPUType GR_InstanceBuffer::Type = RV_GPU_FLOAT32

Definition at line 147 of file GR_UtilsVK.h.

int GR_InstanceBuffer::VectorSize = 4

Definition at line 148 of file GR_UtilsVK.h.


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