Class atlas::vk::descriptor_set
ClassList > atlas > vk > descriptor_set
Public Functions
Type | Name |
---|---|
void | bind (const VkCommandBuffer & p_current, uint32_t p_frame_index, const VkPipelineLayout &) |
descriptor_set () = default |
|
descriptor_set (const uint32_t & p_set_slot, const descriptor_set_layout & p_entry) |
|
void | destroy () |
VkDescriptorSetLayout | get_layout () const |
void | update (const std::span< vk_uniform_buffer > & p_uniforms, const std::span< texture > & p_textures) Updating descriptors with uniforms/textures specified. |
void | update (const std::span< vk_uniform_buffer > & p_uniforms) |
~descriptor_set () = default |
Public Functions Documentation
function bind
void atlas::vk::descriptor_set::bind (
const VkCommandBuffer & p_current,
uint32_t p_frame_index,
const VkPipelineLayout &
)
function descriptor_set [1/2]
atlas::vk::descriptor_set::descriptor_set () = default
function descriptor_set [2/2]
atlas::vk::descriptor_set::descriptor_set (
const uint32_t & p_set_slot,
const descriptor_set_layout & p_entry
)
Parameters:
p_set_slot
is the slot index to bind this descriptor set Tells vulkan when binding this descriptor set where the resources location for shader to know where to access the resources binded
function destroy
void atlas::vk::descriptor_set::destroy ()
function get_layout
inline VkDescriptorSetLayout atlas::vk::descriptor_set::get_layout () const
Something to note for myself The vk_renderer will actually store in and cache vk::mesh into a map<string, vk::mesh> Each mesh will actually store the actual geometry data and apply a per-pipeline-info on them This update_mesh would be invoked like(m_uniformss, m_cached_meshes[p_entity.name()]); Where we invoke the mesh we want to update with the following invokation call here vk::mesh will also contain the matrices such as glm::mat4 that is the model matrix
function update [1/2]
Updating descriptors with uniforms/textures specified.
void atlas::vk::descriptor_set::update (
const std::span< vk_uniform_buffer > & p_uniforms,
const std::span< texture > & p_textures
)
function update [2/2]
void atlas::vk::descriptor_set::update (
const std::span< vk_uniform_buffer > & p_uniforms
)
function ~descriptor_set
atlas::vk::descriptor_set::~descriptor_set () = default
The documentation for this class was generated from the following file TheAtlasEngine/atlas/drivers/vulkan-cpp/vk_descriptor_set.hpp