GPU: Make ShaderInterface.debug_print const #108190

Merged
Jeroen Bakker merged 1 commits from Jeroen-Bakker/blender:gpu-make-debug-print-const into main 2023-05-23 15:55:53 +02:00
2 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ void ShaderInterface::sort_inputs()
MutableSpan<ShaderInput>(inputs_ + attr_len_ + ubo_len_ + uniform_len_, ssbo_len_));
}
void ShaderInterface::debug_print()
void ShaderInterface::debug_print() const
{
Span<ShaderInput> attrs = Span<ShaderInput>(inputs_, attr_len_);
Span<ShaderInput> ubos = Span<ShaderInput>(inputs_ + attr_len_, ubo_len_);

View File

@ -77,7 +77,7 @@ class ShaderInterface {
ShaderInterface();
virtual ~ShaderInterface();
void debug_print();
void debug_print() const;
inline const ShaderInput *attr_get(const char *name) const
{