30 lines
405 B
C++
30 lines
405 B
C++
#ifndef RenderJob_h__
|
|
#define RenderJob_h__
|
|
|
|
#include <cstdint>
|
|
|
|
#include "../Common.h"
|
|
#include "../GLM.h"
|
|
#include "../Core/ComponentWrapper.h"
|
|
#include "RenderQueue.h"
|
|
|
|
|
|
struct RenderJob
|
|
{
|
|
friend class RenderQueue;
|
|
|
|
public:
|
|
float Depth;
|
|
|
|
bool operator<(const RenderJob& rhs)
|
|
{
|
|
return this->Hash < rhs.Hash;
|
|
}
|
|
|
|
protected:
|
|
uint64_t Hash;
|
|
|
|
virtual void CalculateHash() = 0;
|
|
};
|
|
|
|
#endif |