FastEngine 0.9.3
A multiplayer oriented 2D engine made with Vulkan.
Loading...
Searching...
No Matches
fge::vulkan::DescriptorSet::Descriptor Struct Reference

This struct is used to describe a descriptor. More...

#include <C_descriptorSet.hpp>

Public Types

enum class  BufferTypes { STATIC , DYNAMIC , STORAGE }
 

Public Member Functions

 Descriptor (UniformBuffer const &uniformBuffer, uint32_t binding, BufferTypes type=BufferTypes::STATIC, VkDeviceSize range=0)
 
 Descriptor (TextureImage const &textureImage, uint32_t binding)
 

Public Attributes

std::variant< VkDescriptorBufferInfo, VkDescriptorImageInfo > _data
 
uint32_t _binding {0}
 
BufferTypes _bufferType {}
 
uint32_t _dstArrayElement {0}
 

Detailed Description

This struct is used to describe a descriptor.

Every descriptor must have a binding. The binding is used to link the descriptor to the descriptor set layout.


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