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

Resource containing descriptor sets information for rendering. More...

#include <C_renderStates.hpp>

Public Types

using ArrayOfDescriptorSet = fge::vulkan::DescriptorSet const*
 
using ArrayOfDescriptorSetPointer = fge::vulkan::DescriptorSet const**
 
using ArrayVariant = std::variant<ArrayOfDescriptorSet, ArrayOfDescriptorSetPointer>
 

Public Member Functions

constexpr RenderResourceDescriptors (ArrayVariant const &descriptors, uint32_t const *sets, uint32_t count)
 
constexpr void set (ArrayVariant const &descriptors, uint32_t const *sets, uint32_t count)
 
constexpr uint32_t getCount () const
 
constexpr fge::vulkan::DescriptorSet const * getDescriptorSet (uint32_t index) const
 
constexpr uint32_t getSet (uint32_t index) const
 

Detailed Description

Resource containing descriptor sets information for rendering.

When using descriptors and textures/transform resources, be careful to not use the same descriptor set for both.

  • Transform use descriptor set FGE_RENDERTARGET_DEFAULT_DESCRIPTOR_SET_TRANSFORM, at vertex shader stage.
  • Textures use descriptor set FGE_RENDERTARGET_DEFAULT_DESCRIPTOR_SET_TEXTURE, at fragment shader stage. if there is multiple textures, they are bind in increasing order, starting at FGE_RENDERTARGET_DEFAULT_DESCRIPTOR_SET_TEXTURE. On both cases, the binding is 0.

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