24 #ifndef PXR_IMAGING_HD_RENDER_BUFFER_H
25 #define PXR_IMAGING_HD_RENDER_BUFFER_H
96 bool multiSampled) = 0;
99 virtual unsigned int GetWidth()
const = 0;
101 virtual unsigned int GetHeight()
const = 0;
103 virtual unsigned int GetDepth()
const = 0;
110 virtual void*
Map() = 0;
112 virtual void Unmap() = 0;
140 #endif // PXR_IMAGING_HD_RENDER_BUFFER_H
virtual bool IsMapped() const =0
Return whether the buffer is currently mapped by anybody.
virtual HD_API HdDirtyBits GetInitialDirtyBitsMask() const override
Get initial invalidation state.
virtual void Unmap()=0
Unmap the buffer. It is no longer safe to read from the buffer.
virtual unsigned int GetDepth() const =0
Get the buffer's depth.
virtual HD_API void Sync(HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, HdDirtyBits *dirtyBits) override
Get allocation information from the scene delegate.
virtual void _Deallocate()=0
Deallocate the buffer, freeing any owned resources.
virtual bool Allocate(GfVec3i const &dimensions, HdFormat format, bool multiSampled)=0
HD_API HdRenderBuffer(SdfPath const &id)
virtual HD_API void Finalize(HdRenderParam *renderParam) override
Deallocate before deletion.
virtual HD_API ~HdRenderBuffer()
GLint GLint GLsizei GLint GLenum format
virtual unsigned int GetHeight() const =0
Get the buffer's height.
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
virtual VtValue GetResource(bool multiSampled) const
#define PXR_NAMESPACE_CLOSE_SCOPE
virtual bool IsConverged() const =0
virtual unsigned int GetWidth() const =0
Get the buffer's width.
virtual HdFormat GetFormat() const =0
Get the buffer's per-pixel format.
virtual bool IsMultiSampled() const =0
Get whether the buffer is multisampled.
virtual void * Map()=0
Map the buffer for reading.