add texture:getDebugName and buffer:getDebugName

This commit is contained in:
niki
2023-12-14 00:09:08 +01:00
parent 834398335d
commit 7a25dfa7fc
15 changed files with 47 additions and 25 deletions
+5 -1
View File
@@ -195,7 +195,7 @@ public:
bool renderTarget = false;
bool computeWrite = false;
OptionalBool readable;
std::string debugName;
Optional<std::string> debugName;
};
struct Slices
@@ -290,6 +290,8 @@ public:
Quad *getQuad() const;
const Optional<std::string>& getDebugName() const { return debugName; }
static int getTotalMipmapCount(int w, int h);
static int getTotalMipmapCount(int w, int h, int d);
@@ -345,6 +347,8 @@ protected:
int64 graphicsMemorySize;
Optional<std::string> debugName;
}; // Texture
} // graphics