GPU: Make ShaderInterface.debug_print const #108190
|
@ -62,7 +62,7 @@ void ShaderInterface::sort_inputs()
|
||||||
MutableSpan<ShaderInput>(inputs_ + attr_len_ + ubo_len_ + uniform_len_, ssbo_len_));
|
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> attrs = Span<ShaderInput>(inputs_, attr_len_);
|
||||||
Span<ShaderInput> ubos = Span<ShaderInput>(inputs_ + attr_len_, ubo_len_);
|
Span<ShaderInput> ubos = Span<ShaderInput>(inputs_ + attr_len_, ubo_len_);
|
||||||
|
|
|
@ -77,7 +77,7 @@ class ShaderInterface {
|
||||||
ShaderInterface();
|
ShaderInterface();
|
||||||
virtual ~ShaderInterface();
|
virtual ~ShaderInterface();
|
||||||
|
|
||||||
void debug_print();
|
void debug_print() const;
|
||||||
|
|
||||||
inline const ShaderInput *attr_get(const char *name) const
|
inline const ShaderInput *attr_get(const char *name) const
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue