mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-05 19:06:14 +02:00
Introducing the INput FOrmat gpu Object to optimize the changes
This commit is contained in:
parent
fb363180c8
commit
33835ba6a1
2 changed files with 10 additions and 0 deletions
|
@ -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 {
|
||||
|
|
|
@ -106,6 +106,7 @@ public:
|
|||
|
||||
bool hasAttribute(Slot slot) const { return (_attributes.find(slot) != _attributes.end()); }
|
||||
|
||||
const GPUObjectPointer gpuObject{};
|
||||
protected:
|
||||
AttributeMap _attributes;
|
||||
ChannelMap _channels;
|
||||
|
|
Loading…
Reference in a new issue