Class for shaders. More...
#include <Shaders.hpp>
 Collaboration diagram for ven::Shaders:Public Member Functions | |
| Shaders (Device &device, const std::string &vertFilepath, const std::string &fragFilepath, const PipelineConfigInfo &configInfo) | |
| ~Shaders () | |
| Shaders (const Shaders &)=delete | |
| Shaders & | operator= (const Shaders &)=delete | 
| Shaders (Shaders &&)=delete | |
| Shaders & | operator= (Shaders &&)=delete | 
| void | bind (const VkCommandBuffer commandBuffer) const | 
Static Public Member Functions | |
| static void | defaultPipelineConfigInfo (PipelineConfigInfo &configInfo) | 
Private Member Functions | |
| void | createGraphicsPipeline (const std::string &vertFilepath, const std::string &fragFilepath, const PipelineConfigInfo &configInfo) | 
| void | createShaderModule (const std::vector< char > &code, VkShaderModule *shaderModule) const | 
Static Private Member Functions | |
| static std::vector< char > | readFile (const std::string &filename) | 
Private Attributes | |
| Device & | m_device | 
| VkPipeline | m_graphicsPipeline {nullptr} | 
| VkShaderModule | m_vertShaderModule {nullptr} | 
| VkShaderModule | m_fragShaderModule {nullptr} | 
Class for shaders.
Definition at line 40 of file Shaders.hpp.
      
  | 
  inline | 
Definition at line 44 of file Shaders.hpp.
References createGraphicsPipeline().
 Here is the call graph for this function:| ven::Shaders::~Shaders | ( | ) | 
Definition at line 7 of file shaders.cpp.
References ven::Device::device(), m_device, m_fragShaderModule, m_graphicsPipeline, and m_vertShaderModule.
 Here is the call graph for this function:
      
  | 
  delete | 
      
  | 
  delete | 
      
  | 
  inline | 
Definition at line 53 of file Shaders.hpp.
References m_graphicsPipeline.
      
  | 
  private | 
Definition at line 27 of file shaders.cpp.
References ven::PipelineConfigInfo::attributeDescriptions, ven::PipelineConfigInfo::bindingDescriptions, ven::PipelineConfigInfo::colorBlendInfo, ven::PipelineConfigInfo::depthStencilInfo, ven::PipelineConfigInfo::dynamicStateInfo, ven::PipelineConfigInfo::inputAssemblyInfo, ven::PipelineConfigInfo::multisampleInfo, ven::PipelineConfigInfo::pipelineLayout, ven::PipelineConfigInfo::rasterizationInfo, ven::PipelineConfigInfo::renderPass, and ven::PipelineConfigInfo::subpass.
Referenced by Shaders().
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 96 of file shaders.cpp.
      
  | 
  static | 
Definition at line 108 of file shaders.cpp.
References ven::PipelineConfigInfo::attributeDescriptions, ven::PipelineConfigInfo::bindingDescriptions, ven::PipelineConfigInfo::colorBlendAttachment, ven::PipelineConfigInfo::colorBlendInfo, ven::PipelineConfigInfo::depthStencilInfo, ven::PipelineConfigInfo::dynamicStateEnables, ven::PipelineConfigInfo::dynamicStateInfo, ven::Model::Vertex::getAttributeDescriptions(), ven::Model::Vertex::getBindingDescriptions(), ven::PipelineConfigInfo::inputAssemblyInfo, ven::PipelineConfigInfo::multisampleInfo, and ven::PipelineConfigInfo::rasterizationInfo.
Referenced by ven::ARenderSystemBase::createPipeline().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  staticprivate | 
Definition at line 14 of file shaders.cpp.
      
  | 
  private | 
Definition at line 61 of file Shaders.hpp.
Referenced by ~Shaders().
      
  | 
  private | 
Definition at line 64 of file Shaders.hpp.
Referenced by ~Shaders().
      
  | 
  private | 
Definition at line 62 of file Shaders.hpp.
Referenced by bind(), and ~Shaders().
      
  | 
  private | 
Definition at line 63 of file Shaders.hpp.
Referenced by ~Shaders().