![]() |
FastEngine 0.9.3
A multiplayer oriented 2D engine made with Vulkan.
|
Resource containing instances information for rendering. More...
#include <C_renderStates.hpp>
Public Member Functions | |
constexpr void | setInstancesCount (uint32_t count, bool uniqueDrawCall) |
constexpr void | setIndirectBuffer (VkBuffer buffer) |
constexpr void | setTextureIndices (uint32_t const *textureIndices) |
constexpr void | setDynamicDescriptors (fge::vulkan::DescriptorSet const *dynamicDescriptors, uint32_t const *dynamicBufferSizes, uint32_t const *dynamicBufferOffsets, uint32_t const *dynamicSets, uint32_t count) |
constexpr void | setVertexCount (uint32_t count) |
constexpr void | setVertexOffset (uint32_t offset) |
constexpr void | setFirstInstance (uint32_t firstInstance) |
Set the first instance value for the draw call. | |
constexpr uint32_t | getInstancesCount () const |
constexpr bool | hasUniqueDrawCall () const |
constexpr VkBuffer | getIndirectBuffer () const |
constexpr uint32_t const * | getTextureIndices () const |
constexpr uint32_t | getTextureIndices (uint32_t index) const |
constexpr fge::vulkan::DescriptorSet const * | getDynamicDescriptors (uint32_t index=0) const |
constexpr uint32_t const * | getDynamicBufferSizes () const |
constexpr uint32_t | getDynamicBufferSizes (uint32_t index) const |
constexpr uint32_t const * | getDynamicBufferOffsets () const |
constexpr uint32_t | getDynamicBufferOffsets (uint32_t index) const |
constexpr uint32_t const * | getDynamicSets () const |
constexpr uint32_t | getDynamicSets (uint32_t index) const |
constexpr uint32_t | getDynamicCount () const |
constexpr uint32_t | getVertexCount () const |
constexpr uint32_t | getVertexOffset () const |
constexpr uint32_t | getFirstInstance () const |
Resource containing instances information for rendering.
Texture indices are used to select the texture to use for each instance, the index refers to a texture in RenderResourceTextures. If the index is out of range, the texture will be replaced by a bad texture. This parameter is optional, if set to nullptr, all textures in RenderResourceTextures will be bound to each instance.
Vertex count is used to select the number of vertices to use for each instance. If the vertex count is 0, the vertex count will be set to the vertex count of the vertex buffer.
Dynamic descriptors are used to set dynamic descriptors for each instance. Dynamic descriptors are used to set dynamic uniform buffers. This parameter is optional, if set to nullptr, no dynamic descriptors will be set.
|
inlineconstexpr |
Set the first instance value for the draw call.
Appliqued if hasUniqueDrawCall() is true without indirect buffer. Appliqued has an offset if hasUniqueDrawCall() is false.
firstInstance | The first instance value |