Introducing the INput FOrmat gpu Object to optimize the changes

This commit is contained in:
samcake 2016-04-19 12:04:42 -07:00
parent fb363180c8
commit 33835ba6a1
2 changed files with 10 additions and 0 deletions

View file

@ -151,6 +151,15 @@ public:
// very specific for now
static void syncSampler(const Sampler& sampler, Texture::Type type, const GLTexture* object);
class GLInputFormat : public GPUObject {
public:
GLInputFormat();
~GLInputFormat();
};
GLInputFormat* syncGPUObject(const Stream::Format& inputFormat);
class GLShader : public GPUObject {
public:
enum Version {

View file

@ -106,6 +106,7 @@ public:
bool hasAttribute(Slot slot) const { return (_attributes.find(slot) != _attributes.end()); }
const GPUObjectPointer gpuObject{};
protected:
AttributeMap _attributes;
ChannelMap _channels;