24 #ifndef PXR_IMAGING_HD_RENDER_BUFFER_H
25 #define PXR_IMAGING_HD_RENDER_BUFFER_H
95 bool multiSampled) = 0;
98 virtual unsigned int GetWidth()
const = 0;
100 virtual unsigned int GetHeight()
const = 0;
102 virtual unsigned int GetDepth()
const = 0;
109 virtual void*
Map() = 0;
111 virtual void Unmap() = 0;
139 #endif // PXR_IMAGING_HD_RENDER_BUFFER_H
virtual bool IsMapped() const =0
Return whether the buffer is currently mapped by anybody.
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.
HD_API void Sync(HdSceneDelegate *sceneDelegate, HdRenderParam *renderParam, HdDirtyBits *dirtyBits) override
Get allocation information from the scene delegate.
HD_API HdDirtyBits GetInitialDirtyBitsMask() const override
Get initial invalidation state.
HD_API void Finalize(HdRenderParam *renderParam) override
Deallocate before deletion.
virtual void _Deallocate()=0
Deallocate the buffer, freeing any owned resources.
virtual bool Allocate(GfVec3i const &dimensions, HdFormat format, bool multiSampled)=0
GLint GLint GLsizei GLint GLenum format
HD_API HdRenderBuffer(SdfPath const &id)
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
HD_API ~HdRenderBuffer() override
#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.