From 33835ba6a10c47f7f475004c6af8b7cd7798fe3e Mon Sep 17 00:00:00 2001 From: samcake Date: Tue, 19 Apr 2016 12:04:42 -0700 Subject: [PATCH] Introducing the INput FOrmat gpu Object to optimize the changes --- libraries/gpu/src/gpu/GLBackend.h | 9 +++++++++ libraries/gpu/src/gpu/Stream.h | 1 + 2 files changed, 10 insertions(+) diff --git a/libraries/gpu/src/gpu/GLBackend.h b/libraries/gpu/src/gpu/GLBackend.h index 05afb28bf1..6d7a5f2545 100644 --- a/libraries/gpu/src/gpu/GLBackend.h +++ b/libraries/gpu/src/gpu/GLBackend.h @@ -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 { diff --git a/libraries/gpu/src/gpu/Stream.h b/libraries/gpu/src/gpu/Stream.h index c8d9335bf7..950a713cf0 100644 --- a/libraries/gpu/src/gpu/Stream.h +++ b/libraries/gpu/src/gpu/Stream.h @@ -106,6 +106,7 @@ public: bool hasAttribute(Slot slot) const { return (_attributes.find(slot) != _attributes.end()); } + const GPUObjectPointer gpuObject{}; protected: AttributeMap _attributes; ChannelMap _channels;