Temp function to retrieve all textures

This commit is contained in:
Xiao Qi 2022-09-27 14:09:44 +08:00
parent a7badba8b9
commit 60540b1adc
4 changed files with 6 additions and 4 deletions

View File

@ -54,6 +54,9 @@ namespace Sandbox
}
graphicsSystem->BuildMeshBuffers();
//Test Textures
auto textures{ SHADE::SHAssetManager::GetAllTextures() };
// Create Materials
auto matInst = graphicsSystem->AddOrGetBaseMaterialInstance();

View File

@ -8,9 +8,8 @@
namespace SHADE
{
class SHTextureAsset
struct SHTextureAsset
{
public:
uint32_t numBytes;
uint32_t width;
uint32_t height;

View File

@ -236,7 +236,7 @@ namespace SHADE
return result;
}
std::vector<SHTextureAsset> SHAssetManager::GetAllDDS() noexcept
std::vector<SHTextureAsset> SHAssetManager::GetAllTextures() noexcept
{
std::vector<SHTextureAsset> result;
for (auto const& dds : textureCollection)

View File

@ -73,7 +73,7 @@ namespace SHADE
//TODO: TEMPORARY FOR TESTING GLTF & DDS
static void LoadDataTemp(std::string path) noexcept;
static std::vector<SHMeshAsset> GetAllMeshes() noexcept;
static std::vector<SHTextureAsset> GetAllDDS() noexcept;
static std::vector<SHTextureAsset> GetAllTextures() noexcept;
private:
/****************************************************************************