Renderer: Implement and use debug names

This commit is contained in:
SirLynix
2022-12-02 22:46:43 +01:00
parent 54aafe05a1
commit 77642cf431
74 changed files with 290 additions and 38 deletions

View File

@@ -15,6 +15,7 @@
#include <Nazara/Renderer/ShaderModule.hpp>
#include <NZSL/GlslWriter.hpp>
#include <NZSL/Ast/Module.hpp>
#include <string>
#include <vector>
namespace Nz
@@ -31,6 +32,8 @@ namespace Nz
inline const std::vector<ExplicitBinding>& GetExplicitBindings() const;
void UpdateDebugName(std::string_view name) override;
struct ExplicitBinding
{
std::string name;
@@ -61,6 +64,7 @@ namespace Nz
OpenGLDevice& m_device;
nzsl::ShaderWriter::States m_states;
std::string m_debugName;
std::vector<ExplicitBinding> m_explicitBindings;
std::vector<Shader> m_shaders;
};