Diligent Engine API Reference: Diligent::IBufferView Class Reference

Diligent Engine API Reference

Public Member Functions | List of all members
Diligent::IBufferView Class Referenceabstract

Buffer view interface. More...

Inheritance diagram for Diligent::IBufferView:

## Public Member Functions
virtual void | QueryInterface (const Diligent::INTERFACE_ID &IID, IObject **ppInterface)=0
| Queries the specific interface, see IObject::QueryInterface() for details.
virtual const BufferViewDesc & | GetDesc () const =0
| Returns the buffer view description used to create the object.
virtual IBuffer * | GetBuffer ()=0
| Returns pointer to the referenced buffer object. More...
Public Member Functions inherited from Diligent::IDeviceObject
virtual void | QueryInterface (const INTERFACE_ID &IID, IObject **ppInterface)=0
| Queries the specific interface, see IObject::QueryInterface() for details.

## Detailed Description

Buffer view interface.

To create a buffer view, call IBuffer::CreateView().

Remarks
  Buffer view holds strong references to the buffer. The buffer will not be destroyed until all views are released.

## Member Function Documentation

## ◆ GetBuffer()

virtual IBuffer* Diligent::IBufferView::GetBuffer | ( |  | ) |
| pure virtual

Returns pointer to the referenced buffer object.

The method does NOT call AddRef() on the returned interface, so Release() must not be called.

Implemented in Diligent::BufferViewBase< IBufferViewGL >, Diligent::BufferViewBase< IBufferViewD3D11 >, and Diligent::BufferViewBase< IBufferViewD3D12 >.