summaryrefslogtreecommitdiff
path: root/Runtime/Graphics/ImageData.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-10-25 23:29:21 +0800
committerchai <chaifix@163.com>2021-10-25 23:29:21 +0800
commit7ecf913256fb396e3027aac3318d996a716a52ef (patch)
tree4540835c881a63b665e2a692bf30115fd29e8bb0 /Runtime/Graphics/ImageData.h
parent0816cd70ca1a213b6ed872bcf3c0bf0912473722 (diff)
+ job system
Diffstat (limited to 'Runtime/Graphics/ImageData.h')
-rw-r--r--Runtime/Graphics/ImageData.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/Runtime/Graphics/ImageData.h b/Runtime/Graphics/ImageData.h
index a3162bc..af44f11 100644
--- a/Runtime/Graphics/ImageData.h
+++ b/Runtime/Graphics/ImageData.h
@@ -2,14 +2,15 @@
#define IMAGE_DATA_H
#include <vector>
+#include "Runtime/Threading/Job.h"
// ͼƬÏñËØÊý¾Ý
class ImageData
{
-public:
+public:
enum ImageFormat
{
- ImageFormat_Rgba_Int,
+ ImageFormat_Rgba_Int,
ImageFormat_Rgba_Float,
};
@@ -30,7 +31,7 @@ struct ImageDataRequest
bool isDone, hasError;
int error;
int progress, all;
- ImageData* result;
+ ImageData* result;
std::vector<ImageData*> results;
};
@@ -41,4 +42,14 @@ namespace ImageDataUtil
ImageDataRequest* LoadAsync(std::vector<const char*> paths);
}
+class ReadImageFilesJob : public Job
+{
+
+};
+
+class DecodeImageFilesJob : public Job
+{
+
+};
+
#endif \ No newline at end of file