mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-22 18:03:19 +02:00
Remove BakedTypeInfo
This commit is contained in:
parent
6f3155db32
commit
8a89e8f9fb
1 changed files with 0 additions and 35 deletions
|
@ -110,41 +110,6 @@ BakeVersion currentBakeVersionForAssetType(BakedAssetType type) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct BakedTypeInfo {
|
|
||||||
BakedAssetType type;
|
|
||||||
const char* slug;
|
|
||||||
BakeVersion currentVersion;
|
|
||||||
const char* bakedName;
|
|
||||||
};
|
|
||||||
|
|
||||||
constexpr std::array<BakedTypeInfo, BakedAssetType::NUM_ASSET_TYPES> BAKED_TYPE_INFO { {
|
|
||||||
{
|
|
||||||
Model,
|
|
||||||
"model",
|
|
||||||
(BakeVersion)ModelBakeVersion::Initial,
|
|
||||||
"asset.fbx",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
Texture,
|
|
||||||
"texture",
|
|
||||||
(BakeVersion)TextureBakeVersion::Initial,
|
|
||||||
"texture.ktx",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
Script,
|
|
||||||
"script",
|
|
||||||
(BakeVersion)ScriptBakeVersion::FixEmptyScripts,
|
|
||||||
"asset.js",
|
|
||||||
}
|
|
||||||
}};
|
|
||||||
|
|
||||||
static_assert(BAKED_TYPE_INFO[BakedAssetType::Model].type == BakedAssetType::Model,
|
|
||||||
"Model should be in correct index");
|
|
||||||
static_assert(BAKED_TYPE_INFO[BakedAssetType::Texture].type == BakedAssetType::Texture,
|
|
||||||
"Texture should be in correct index");
|
|
||||||
static_assert(BAKED_TYPE_INFO[BakedAssetType::Script].type == BakedAssetType::Script,
|
|
||||||
"Script should be in correct index");
|
|
||||||
|
|
||||||
const QString ASSET_SERVER_LOGGING_TARGET_NAME = "asset-server";
|
const QString ASSET_SERVER_LOGGING_TARGET_NAME = "asset-server";
|
||||||
|
|
||||||
void AssetServer::bakeAsset(const AssetUtils::AssetHash& assetHash, const AssetUtils::AssetPath& assetPath, const QString& filePath) {
|
void AssetServer::bakeAsset(const AssetUtils::AssetHash& assetHash, const AssetUtils::AssetPath& assetPath, const QString& filePath) {
|
||||||
|
|
Loading…
Reference in a new issue