FastEngine 0.9.3
A multiplayer oriented 2D engine made with Vulkan.
Loading...
Searching...
No Matches
fge::RenderResourceTransform Class Reference

Resource containing transform information for rendering. More...

#include <C_renderStates.hpp>

Public Types

enum class  Configs { GLOBAL_TRANSFORMS_INDEX_IS_ADDED_TO_FIRST_INSTANCE , GLOBAL_TRANSFORMS_INDEX_OVERWRITE_FIRST_INSTANCE , GLOBAL_TRANSFORMS_INDEX_IS_IGNORED , DEFAULT = GLOBAL_TRANSFORMS_INDEX_OVERWRITE_FIRST_INSTANCE }
 

Public Member Functions

void set (fge::TransformUboData const &data)
 
void set (uint32_t globalTransformsIndex, Configs config=Configs::DEFAULT)
 
fge::TransformUboData const * getTransformData () const
 
std::optional< uint32_t > getGlobalTransformsIndex () const
 
Configs getConfig () const
 

Detailed Description

Resource containing transform information for rendering.

A transform is a default uniform buffer containing a model matrix and a view matrix. It is generally used in every object that needs to be rendered. The transform is optional, if set to nullptr, no transform descriptor will be bound and the user have to provide their own descriptors in RenderResourceInstances (dynamic descriptors) or in RenderResourceDescriptors.

The transform descriptor is bound to the FGE_RENDERTARGET_DEFAULT_DESCRIPTOR_SET_TRANSFORM set, binding 0.


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