DirectBatch struct
#include <nCine/Graphics/RenderBatcher.h>
Batched command filled with instances directly rather than collected from commands, see BeginDirectBatch().
Public variables
- RenderCommand* Command
- The batched command, or
nullptrif none is set up. - RHI::UniformBlockCache* InstancesBlock
- Instances block of Command.
-
std::
uint8_t* Instances - Where the instances go, instance
iat. -
std::
uint32_t Stride - Size of one instance in bytes.
-
std::
uint32_t Capacity - Number of instances there is room for.
-
std::
uint32_t Count - Number of instances written so far.
Variable documentation
std:: uint8_t* nCine:: RenderBatcher:: DirectBatch:: Instances
Where the instances go, instance i at.
Instances + i * Stride