Renderer: Implement and use debug names
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user