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

#include <render_pass.hpp>

Public Member Functions

 PassResources (std::string target_prefix)
 
auto add_shader (const std::string &name, const std::shared_ptr< vk::Shader > &shader) -> PassResources &
 
auto add_colour_target () -> PassResources &
 
auto add_depth_target () -> PassResources &
 
auto has_colour_target () const
 
auto has_depth_target () const
 
auto target_prefix () const
 
auto shaders () const
 

Private Attributes

std::string target_prefix_
 
bool colour_target_ = false
 
bool depth_target_ = false
 
std::unordered_map< std::string, std::shared_ptr< vk::Shader > > shaders_
 

Constructor & Destructor Documentation

◆ PassResources()

wren::PassResources::PassResources ( std::string target_prefix)
inline

Member Function Documentation

◆ add_colour_target()

auto wren::PassResources::add_colour_target ( ) -> PassResources&
inline

◆ add_depth_target()

auto wren::PassResources::add_depth_target ( ) -> PassResources&
inline

◆ add_shader()

auto wren::PassResources::add_shader ( const std::string & name,
const std::shared_ptr< vk::Shader > & shader ) -> PassResources&
inline

◆ has_colour_target()

auto wren::PassResources::has_colour_target ( ) const
inline

◆ has_depth_target()

auto wren::PassResources::has_depth_target ( ) const
inline

◆ shaders()

auto wren::PassResources::shaders ( ) const
inline

◆ target_prefix()

auto wren::PassResources::target_prefix ( ) const
inline

Member Data Documentation

◆ colour_target_

bool wren::PassResources::colour_target_ = false
private

◆ depth_target_

bool wren::PassResources::depth_target_ = false
private

◆ shaders_

std::unordered_map<std::string, std::shared_ptr<vk::Shader> > wren::PassResources::shaders_
private

◆ target_prefix_

std::string wren::PassResources::target_prefix_
private

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