mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
add texture:getDebugName and buffer:getDebugName
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user