mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2025-04-28 13:27:58 +03:00

* Specialization constant implementation for Vulkan. * Implement DXIL library linking. * Implement proper reverse Z & fix motion blur flicker. * Mirage API mapping. * Initial work for async PSO. * Further async PSO work. * Set pipeline names. * Handle special layers writing depth. * Handle bones in shadow pipeline. * Fix additive mode setting wrong pipeline field. * Pass models to compilation threads through shared pointers. * Safety improvements. * Allow DXIL linking to happen in parallel. * Display more debug information. * Queue unique models for compilation immediately. * Put async PSO debug printing behind a macro. * Kick off terrain models to pipeline compilation thread the moment they are made. * Hook a different function to do waiting in. * Fix pipelines getting dropped. * Account for ConstTexCoord. * Fix async PSO accounting for alpha to coverage even when MSAA is off. * Remove "has bone" specialization constant. * Sky shader compilation & more debugging helpers. * Assign names to shaders during loading. * Fix string symbol definitions. * Print description of recently compiled render thread pipelines. * Switch to an enum library that doesn't murder IntelliSense. * Precompile pipelines for object icons. * Skip fur pipelines. * Skip printing info for pipelines compiled during loading. * Precompile pipelines for Sonic's mouth, motion blur, and forced transparent objects. * Precompile planar reflection shaders. * Precompile sparkle shaders in loading screens. * Precompile fur shader. * Refactor model traversing to enqueue every single compilation to worker threads. * Dynamically create pipeline threads depending on hardware concurrency. * Fix MSAA depth resolve not accounting for reverse Z. * Integrate smol-v. * Implement PSO caching. * Update ShaderRecomp & remove unused function.
39 lines
1.4 KiB
C++
39 lines
1.4 KiB
C++
#pragma once
|
|
|
|
#include <boost/smart_ptr/shared_ptr.h>
|
|
|
|
#include <Hedgehog/Base/Container/hhVector.h>
|
|
#include <Hedgehog/Database/System/hhDatabaseData.h>
|
|
|
|
namespace Hedgehog::Mirage
|
|
{
|
|
class CMaterialData;
|
|
class CTexsetData;
|
|
class CShaderListData;
|
|
class CParameterFloat4Element;
|
|
class CParameterInt4Element;
|
|
class CParameterBoolElement;
|
|
|
|
class CMaterialData : public Database::CDatabaseData
|
|
{
|
|
public:
|
|
boost::shared_ptr<CShaderListData> m_spShaderListData;
|
|
boost::shared_ptr<CTexsetData> m_spTexsetData;
|
|
hh::vector<boost::shared_ptr<CParameterFloat4Element>> m_Float4Params;
|
|
hh::vector<boost::shared_ptr<CParameterInt4Element>> m_Int4Params;
|
|
hh::vector<boost::shared_ptr<CParameterBoolElement>> m_Bool4Params;
|
|
uint8_t m_AlphaThreshold;
|
|
bool m_DoubleSided;
|
|
bool m_Additive;
|
|
};
|
|
|
|
SWA_ASSERT_OFFSETOF(CMaterialData, m_spShaderListData, 0xC);
|
|
SWA_ASSERT_OFFSETOF(CMaterialData, m_spTexsetData, 0x14);
|
|
SWA_ASSERT_OFFSETOF(CMaterialData, m_Float4Params, 0x1C);
|
|
SWA_ASSERT_OFFSETOF(CMaterialData, m_Int4Params, 0x2C);
|
|
SWA_ASSERT_OFFSETOF(CMaterialData, m_Bool4Params, 0x3C);
|
|
SWA_ASSERT_OFFSETOF(CMaterialData, m_AlphaThreshold, 0x4C);
|
|
SWA_ASSERT_OFFSETOF(CMaterialData, m_DoubleSided, 0x4D);
|
|
SWA_ASSERT_OFFSETOF(CMaterialData, m_Additive, 0x4E);
|
|
SWA_ASSERT_SIZEOF(CMaterialData, 0x50);
|
|
}
|