Magpie/Runtime/EffectCache.h
2021-10-20 11:59:28 +08:00

19 lines
502 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
#include "pch.h"
#include "StrUtils.h"
#include "Utils.h"
#include "EffectDesc.h"
class EffectCache {
public:
static bool Load(const wchar_t* fileName, std::string_view hash, EffectDesc& desc);
static void Save(const wchar_t* fileName, std::string_view hash, const EffectDesc& desc);
private:
static std::wstring _GetCacheFileName(const wchar_t* fileName, std::string_view hash);
// 缓存文件后缀名Compiled MagpieFX
static constexpr const wchar_t* _SUFFIX = L"cmfx";
};