2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-09-05 16:27:27 +00:00

refactor: streamline techset dumper

This commit is contained in:
Jan Laupetin
2025-07-30 23:22:18 +01:00
parent e26c66ed60
commit ea1c232164
13 changed files with 216 additions and 180 deletions

View File

@@ -0,0 +1,16 @@
#include "ShaderCommon.h"
#include <format>
namespace shader
{
std::string GetFileNameForPixelShaderAssetName(const std::string& assetName)
{
return std::format("shader_bin/ps_{}.cso", assetName);
}
std::string GetFileNameForVertexShaderAssetName(const std::string& assetName)
{
return std::format("shader_bin/vs_{}.cso", assetName);
}
} // namespace phys_constraints

View File

@@ -0,0 +1,9 @@
#pragma once
#include <string>
namespace shader
{
std::string GetFileNameForPixelShaderAssetName(const std::string& assetName);
std::string GetFileNameForVertexShaderAssetName(const std::string& assetName);
} // namespace shader

View File

@@ -0,0 +1,16 @@
#include "TechsetCommon.h"
#include <format>
namespace techset
{
std::string GetFileNameForTechniqueName(const std::string& assetName)
{
return std::format("techniques/{}.tech", assetName);
}
std::string GetFileNameForTechsetName(const std::string& assetName)
{
return std::format("techsets/{}.techset", assetName);
}
} // namespace phys_constraints

View File

@@ -0,0 +1,9 @@
#pragma once
#include <string>
namespace techset
{
std::string GetFileNameForTechniqueName(const std::string& assetName);
std::string GetFileNameForTechsetName(const std::string& assetName);
}