Added new shader cache uids for pixel shader gen.

This commit is contained in:
NeoBrainX
2012-08-07 01:02:04 +02:00
parent 3c8df842bb
commit dc0f470215
11 changed files with 318 additions and 1171 deletions

View File

@ -44,7 +44,7 @@ public:
// TODO: Store last frame used and order by that? makes much more sense anyway...
bool operator < (const ShaderUid& obj) const
{
for (int i = 0; i < sizeof(uid_data) / sizeof(u32); ++i)
for (unsigned int i = 0; i < sizeof(uid_data) / sizeof(u32); ++i)
{
if (this->values[i] < obj.values[i])
return true;
@ -91,4 +91,10 @@ private:
char* write_ptr;
};
enum GenOutput
{
GO_ShaderCode,
GO_ShaderUid,
};
#endif // _SHADERGENCOMMON_H