From 7ecf913256fb396e3027aac3318d996a716a52ef Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Oct 2021 23:29:21 +0800 Subject: + job system --- Runtime/Graphics/ImageData.h | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'Runtime/Graphics') 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 +#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 results; }; @@ -41,4 +42,14 @@ namespace ImageDataUtil ImageDataRequest* LoadAsync(std::vector paths); } +class ReadImageFilesJob : public Job +{ + +}; + +class DecodeImageFilesJob : public Job +{ + +}; + #endif \ No newline at end of file -- cgit v1.1-26-g67d0