performance: return const ref instead of struct copy from getBindlessInfo

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski 2024-09-02 15:41:42 +00:00 committed by Compute-Runtime-Automation
parent bd5ce52ef5
commit b6eb4792dc
1 changed files with 1 additions and 1 deletions

View File

@ -311,7 +311,7 @@ class GraphicsAllocation : public IDNode<GraphicsAllocation> {
bindlessInfo = info;
}
SurfaceStateInHeapInfo getBindlessInfo() {
const SurfaceStateInHeapInfo &getBindlessInfo() const {
return bindlessInfo;
}
bool canBeReadOnly() {