Overte C++ Documentation
gpu::Batch::DrawCallInfo Class Reference

#include <Batch.h>

Public Member Functions

 DrawCallInfo (Index idx)
 Create DrawCallInfo object with no user data. More...
 
 DrawCallInfo (Index idx, Index user)
 Create DrawCallInfo object with user data. It's used when drawing meshes. First bit of user data enables blendshapes and secodn on enables skinning. More...
 

Detailed Description

A structure passed to shaders. Contains index of an object in transform objects buffer for this draw call.

Constructor & Destructor Documentation

◆ DrawCallInfo() [1/2]

gpu::Batch::DrawCallInfo::DrawCallInfo ( Index  idx)
inline

Create DrawCallInfo object with no user data.

Parameters
idxIndex of the transform object for the given draw call.

◆ DrawCallInfo() [2/2]

gpu::Batch::DrawCallInfo::DrawCallInfo ( Index  idx,
Index  user 
)
inline

Create DrawCallInfo object with user data. It's used when drawing meshes. First bit of user data enables blendshapes and secodn on enables skinning.

Parameters
idxIndex of the transform object for the given draw call.
userUser data. Currently used only for meshes.

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