MCPcopy Create free account
hub / github.com/DragonJoker/RenderGraph / ~ResourceHandler

Method ~ResourceHandler

source/RenderGraph/ResourceHandler.cpp:93–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91 //*********************************************************************************************
92
93 ResourceHandler::~ResourceHandler()noexcept
94 {
95 for ( auto const & [data, _] : m_bufferViews )
96 {
97 std::stringstream stream;
98 stream << "Leaked [VkBufferView](" << data.data->name << ")";
99 Logger::logError( stream.str() );
100 }
101
102 for ( auto const & [data, _] : m_buffers )
103 {
104 std::stringstream stream;
105 stream << "Leaked [VkBuffer](" << data.data->name << ")";
106 Logger::logError( stream.str() );
107 }
108
109 for ( auto const & [data, _] : m_imageViews )
110 {
111 std::stringstream stream;
112 stream << "Leaked [VkImageView](" << data.data->name << ")";
113 Logger::logError( stream.str() );
114 }
115
116 for ( auto const & [data, _] : m_images )
117 {
118 std::stringstream stream;
119 stream << "Leaked [VkImage](" << data.data->name << ")";
120 Logger::logError( stream.str() );
121 }
122
123 for ( auto const & [_, data] : m_samplers )
124 {
125 std::stringstream stream;
126 stream << "Leaked [VkSampler](" << data.name << ")";
127 Logger::logError( stream.str() );
128 }
129 }
130
131 BufferId ResourceHandler::createBufferId( BufferData const & img )
132 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected