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

Buffer view interface. More...

Inheritance diagram for Diligent::IBufferView:
Diligent::IDeviceObject Diligent::IObject Diligent::IBufferViewD3D11 Diligent::IBufferViewD3D12 Diligent::IBufferViewGL Diligent::RefCountedObject< IBufferViewD3D11, FixedBlockMemoryAllocator > Diligent::RefCountedObject< IBufferViewD3D12, FixedBlockMemoryAllocator > Diligent::RefCountedObject< IBufferViewGL, FixedBlockMemoryAllocator > Diligent::ObjectBase< IBufferViewD3D11, FixedBlockMemoryAllocator > Diligent::ObjectBase< IBufferViewD3D12, FixedBlockMemoryAllocator > Diligent::ObjectBase< IBufferViewGL, FixedBlockMemoryAllocator > Diligent::DeviceObjectBase< IBufferViewD3D11, BufferViewDesc, FixedBlockMemoryAllocator > Diligent::DeviceObjectBase< IBufferViewD3D12, BufferViewDesc, FixedBlockMemoryAllocator > Diligent::DeviceObjectBase< IBufferViewGL, BufferViewDesc, FixedBlockMemoryAllocator > Diligent::BufferViewBase< IBufferViewD3D11, FixedBlockMemoryAllocator > Diligent::BufferViewBase< IBufferViewD3D12, FixedBlockMemoryAllocator > Diligent::BufferViewBase< IBufferViewGL, FixedBlockMemoryAllocator > Diligent::BufferViewD3D11Impl Diligent::BufferViewD3D12Impl Diligent::BufferViewGLImpl

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 BufferViewDescGetDesc () const =0
 Returns the buffer view description used to create the object.
 
virtual IBufferGetBuffer ()=0
 Returns pointer to the referenced buffer object. More...
 
- Public Member Functions inherited from Diligent::IObject
virtual Atomics::Long AddRef ()=0
 Increments the number of strong references by 1. More...
 
virtual Atomics::Long Release ()=0
 Decrements the number of strong references by 1 and destroys the object when the counter reaches zero. More...
 
virtual IReferenceCountersGetReferenceCounters () const =0
 Returns the pointer to IReferenceCounters interface of the associated reference counters object. The metod does NOT increment the number of strong references to the returned object.
 

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

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< IBufferViewD3D11, FixedBlockMemoryAllocator >, Diligent::BufferViewBase< IBufferViewGL, FixedBlockMemoryAllocator >, and Diligent::BufferViewBase< IBufferViewD3D12, FixedBlockMemoryAllocator >.