24 #ifndef HDST_BUFFER_RESOURCE_GL_H
25 #define HDST_BUFFER_RESOURCE_GL_H
27 #include "pxr/imaging/glf/glew.h"
30 #include "pxr/imaging/hdSt/api.h"
31 #include "pxr/imaging/hd/version.h"
32 #include "pxr/imaging/hd/bufferResource.h"
34 #include "pxr/base/tf/token.h"
36 #include <boost/shared_ptr.hpp>
41 PXR_NAMESPACE_OPEN_SCOPE
43 typedef boost::shared_ptr<class HdStBufferResourceGL>
44 HdStBufferResourceGLSharedPtr;
46 typedef std::pair<TfToken, HdStBufferResourceGLSharedPtr>
47 HdStBufferResourceGLNamedPair;
48 typedef std::vector<HdStBufferResourceGLNamedPair>
49 HdStBufferResourceGLNamedList;
64 ~HdStBufferResourceGL();
72 GLuint
GetId()
const {
return _id; }
88 PXR_NAMESPACE_CLOSE_SCOPE
90 #endif // HDST_BUFFER_RESOURCE_GL_H
HdTupleType represents zero, one, or more values of the same HdType.
HDST_API GLuint GetTextureBuffer()
Returns the texture buffer view.
uint64_t GetGPUAddress() const
Returns the gpu address (if available. otherwise returns 0).
A specific type of HdResource (GPU resource) representing a buffer object.
Token for efficient comparison, assignment, and hashing of known strings.
HDST_API void SetAllocation(GLuint id, size_t size)
Sets the OpenGL name/identifier for this resource and its size.
GLuint GetId() const
Returns the OpenGL id for this GPU resource.
A specific type of HdBufferResource (GPU resource) representing an OpenGL buffer object.