mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Change the 'viewformats' texture setting field to be a list of pixel formats.
Replace Texture:hasViewFormats with Texture:getViewFormats.
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
|
||||
// C
|
||||
#include <stddef.h>
|
||||
#include <vector>
|
||||
|
||||
namespace love
|
||||
{
|
||||
@@ -195,7 +196,7 @@ public:
|
||||
int msaa = 1;
|
||||
bool renderTarget = false;
|
||||
bool computeWrite = false;
|
||||
bool viewFormats = false;
|
||||
std::vector<PixelFormat> viewFormats;
|
||||
OptionalBool readable;
|
||||
std::string debugName;
|
||||
};
|
||||
@@ -279,7 +280,8 @@ public:
|
||||
bool isRenderTarget() const { return renderTarget; }
|
||||
bool isComputeWritable() const { return computeWrite; }
|
||||
bool isReadable() const { return readable; }
|
||||
bool hasViewFormats() const { return viewFormats; }
|
||||
|
||||
const std::vector<PixelFormat> &getViewFormats() const { return viewFormats; }
|
||||
|
||||
bool isCompressed() const;
|
||||
bool isFormatLinear() const;
|
||||
@@ -353,9 +355,10 @@ protected:
|
||||
PixelFormat format;
|
||||
bool renderTarget;
|
||||
bool computeWrite;
|
||||
bool viewFormats;
|
||||
bool readable;
|
||||
|
||||
std::vector<PixelFormat> viewFormats;
|
||||
|
||||
MipmapsMode mipmapsMode;
|
||||
|
||||
int width;
|
||||
|
||||
Reference in New Issue
Block a user