Crafter.Graphics
C++ graphics library using Wayland and Vulkan.
 
Loading...
Searching...
No Matches
Crafter::DescriptorSet< MeshShader, FragmentShader > Class Template Referenceexport

Holder for VkDescriptorSet. More...

Public Member Functions

 DescriptorSet ()
 Allocates 2 VkDescriptorSet from the pool, all descriptors previously allocated become invalid.
 
 ~DescriptorSet ()
 Deallocates 2 VkDescriptorSet from the pool.
 

Public Attributes

VkDescriptorSet set [2]
 [0] refers to the first stage, [1] refers to the second stage.
 

Static Public Attributes

static Event< void > onDescriptorRefresh
 This event is triggered when a descriptor is aded to this static set which invalidates all previous descriptors, subscribe to this event to renew them.
 

Detailed Description

template<typename MeshShader, typename FragmentShader>
class Crafter::DescriptorSet< MeshShader, FragmentShader >

Holder for VkDescriptorSet.

This class stores 2 VkDescriptorSet one for the first stage and one for the second stage, This class has static members to effeciently use a VkDescriptorPool.

Template Parameters
MeshShaderthe VulkanShader to use for the first stage.
FragmentShaderthe VulkanShader to use for the second stage.

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