wren
Vulkan-based game engine
Loading...
Searching...
No Matches
wren::vk::ShaderModule Class Reference

#include <shader.hpp>

Collaboration diagram for wren::vk::ShaderModule:

Public Member Functions

 ShaderModule ()=default
 ShaderModule (reflect::spirv_t spirv, const ::vk::ShaderModule &module)
auto module () const -> ::vk::ShaderModule
auto get_vertex_input_bindings () const -> std::vector<::vk::VertexInputBindingDescription >
auto get_vertex_input_attributes () const -> std::vector<::vk::VertexInputAttributeDescription >
auto get_descriptor_set_layout_bindings () const -> std::vector<::vk::DescriptorSetLayoutBinding >

Private Attributes

reflect::spirv_t spirv_
::vk::ShaderModule module_
std::shared_ptr< spv_reflect::ShaderModule > reflection_

Constructor & Destructor Documentation

◆ ShaderModule() [1/2]

wren::vk::ShaderModule::ShaderModule ( )
default
Here is the caller graph for this function:

◆ ShaderModule() [2/2]

wren::vk::ShaderModule::ShaderModule ( reflect::spirv_t spirv,
const ::vk::ShaderModule & module )
Here is the call graph for this function:

Member Function Documentation

◆ get_descriptor_set_layout_bindings()

auto wren::vk::ShaderModule::get_descriptor_set_layout_bindings ( ) const -> std::vector<::vk::DescriptorSetLayoutBinding >
nodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_vertex_input_attributes()

auto wren::vk::ShaderModule::get_vertex_input_attributes ( ) const -> std::vector<::vk::VertexInputAttributeDescription >
nodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_vertex_input_bindings()

auto wren::vk::ShaderModule::get_vertex_input_bindings ( ) const -> std::vector<::vk::VertexInputBindingDescription >
nodiscard

◆ module()

auto wren::vk::ShaderModule::module ( ) const -> ::vk::ShaderModule
inlinenodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ module_

::vk::ShaderModule wren::vk::ShaderModule::module_
private

◆ reflection_

std::shared_ptr<spv_reflect::ShaderModule> wren::vk::ShaderModule::reflection_
private

◆ spirv_

reflect::spirv_t wren::vk::ShaderModule::spirv_
private

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