don't use optional for debugName

This commit is contained in:
niki
2023-12-14 00:42:19 +01:00
parent 364b5c3b7b
commit c8da517759
9 changed files with 24 additions and 24 deletions
+3 -3
View File
@@ -195,7 +195,7 @@ public:
bool renderTarget = false;
bool computeWrite = false;
OptionalBool readable;
Optional<std::string> debugName;
std::string debugName;
};
struct Slices
@@ -290,7 +290,7 @@ public:
Quad *getQuad() const;
const Optional<std::string> &getDebugName() const { return debugName; }
const std::string &getDebugName() const { return debugName; }
static int getTotalMipmapCount(int w, int h);
static int getTotalMipmapCount(int w, int h, int d);
@@ -347,7 +347,7 @@ protected:
int64 graphicsMemorySize;
Optional<std::string> debugName;
std::string debugName;
}; // Texture