Improve setCanvas validation of volume texture layer + mipmap values.

This commit is contained in:
Alex Szpakowski
2022-01-16 13:00:12 -04:00
parent f78db47d0e
commit d96e1636b1
3 changed files with 20 additions and 16 deletions
+4 -1
View File
@@ -264,7 +264,10 @@ public:
bool isCompressed() const;
bool isFormatLinear() const;
bool isValidSlice(int slice) const;
bool isValidSlice(int slice, int mip) const;
// Number of array layers, cube faces, or volume layers for the given mip.
int getSliceCount(int mip) const;
int getWidth(int mip = 0) const;
int getHeight(int mip = 0) const;