LiteFX 0.3.1.2022
Computer Graphics Engine
LiteFX::Rendering::Backends::IDirectX12IndexBuffer Class Referenceabstract

Represents a DirectX 12 index buffer. More...

#include <dx12.hpp>

Inherits LiteFX::Rendering::IndexBuffer< DirectX12IndexBufferLayout >, and LiteFX::Rendering::Backends::IDirectX12Buffer.

Inherited by LiteFX::Rendering::Backends::DirectX12IndexBuffer [virtual].

Public Member Functions

virtual ~IDirectX12IndexBuffer () noexcept=default
 
virtual const D3D12_INDEX_BUFFER_VIEW & view () const noexcept=0
 
- Public Member Functions inherited from LiteFX::Rendering::IndexBuffer< DirectX12IndexBufferLayout >
virtual ~IndexBuffer () noexcept=default
 
virtual const index_buffer_layout_typelayout () const noexcept=0
 Gets the layout of the index buffer. More...
 
- Public Member Functions inherited from LiteFX::Rendering::IIndexBuffer
virtual ~IIndexBuffer () noexcept=default
 
virtual const IIndexBufferLayoutlayout () const noexcept=0
 Gets the layout of the index buffer. More...
 
- Public Member Functions inherited from LiteFX::Rendering::IBuffer
virtual ~IBuffer () noexcept=default
 
virtual const BufferType & type () const noexcept=0
 Returns the type of the buffer. More...
 
- Public Member Functions inherited from LiteFX::Rendering::IDeviceMemory
virtual ~IDeviceMemory () noexcept=default
 
virtual const UInt32elements () const noexcept=0
 Gets the number of sub-resources inside the memory chunk. More...
 
virtual size_t size () const noexcept=0
 Gets the size (in bytes) of the aligned memory chunk. More...
 
virtual size_t elementSize () const noexcept=0
 Returns the size of a single element within the buffer. If there is only one element, this is equal to size. More...
 
virtual size_t elementAlignment () const noexcept=0
 Returns the alignment of a single element. More...
 
virtual size_t alignedElementSize () const noexcept=0
 Returns the actual size of the element in device memory. More...
 
virtual const bool & writable () const noexcept=0
 Returns true, if the resource can be bound to a read/write descriptor. More...
 
virtual const ResourceState & state (const UInt32 &subresource=0) const =0
 Returns the current state of the resource. More...
 
virtual ResourceState & state (const UInt32 &subresource=0)=0
 Returns a reference of the current state of the resource. More...
 
- Public Member Functions inherited from LiteFX::Rendering::IMappable
virtual ~IMappable () noexcept=default
 
virtual void map (const void *const data, const size_t &size, const UInt32 &element=0)=0
 Maps the memory at data to the internal memory of this object. More...
 
virtual void map (Span< const void *const > data, const size_t &elementSize, const UInt32 &firstElement=0)=0
 Maps the memory blocks within data to the internal memory of an array. More...
 
- Public Member Functions inherited from LiteFX::Rendering::IStateResource
virtual ~IStateResource () noexcept=default
 
virtual const Stringname () const noexcept=0
 Returns the name of the resource. More...
 
- Public Member Functions inherited from LiteFX::Rendering::Backends::IDirectX12Buffer
virtual ~IDirectX12Buffer () noexcept=default
 
- Public Member Functions inherited from LiteFX::IResource< ComPtr< ID3D12Resource > >
virtual ~IResource () noexcept=default
 
virtual const ComPtr< ID3D12Resource > & handle () const noexcept=0
 Returns the resource managed by the class. More...
 

Additional Inherited Members

- Public Types inherited from LiteFX::Rendering::IndexBuffer< DirectX12IndexBufferLayout >
using index_buffer_layout_type = DirectX12IndexBufferLayout
 
- Protected Member Functions inherited from LiteFX::IResource< ComPtr< ID3D12Resource > >
virtual ComPtr< ID3D12Resource > & handle () noexcept=0
 Returns the resource managed by the class. More...
 

Detailed Description

Represents a DirectX 12 index buffer.

See also
DirectX12IndexBufferLayout, IDirectX12Buffer

Constructor & Destructor Documentation

◆ ~IDirectX12IndexBuffer()

virtual LiteFX::Rendering::Backends::IDirectX12IndexBuffer::~IDirectX12IndexBuffer ( )
virtualdefaultnoexcept

Member Function Documentation

◆ view()

virtual const D3D12_INDEX_BUFFER_VIEW & LiteFX::Rendering::Backends::IDirectX12IndexBuffer::view ( ) const
pure virtualnoexcept