Nameless Engine
|
#include <DirectXDescriptor.h>
Public Member Functions | |
~DirectXDescriptor () | |
DirectXDescriptor (const DirectXDescriptor &other)=delete | |
DirectXDescriptor & | operator= (const DirectXDescriptor &other)=delete |
DirectXDescriptor (DirectXDescriptor &&other) noexcept=delete | |
DirectXDescriptor & | operator= (DirectXDescriptor &&other) noexcept=delete |
int | getDescriptorOffsetInDescriptors () const |
DirectXDescriptorHeap * | getDescriptorHeap () const |
DirectXResource * | getOwnerResource () const |
Protected Member Functions | |
DirectXDescriptor (DirectXDescriptorHeap *pHeap, DirectXDescriptorType descriptorType, DirectXResource *pResource, int iDescriptorOffsetInDescriptors, std::optional< size_t > referencedCubemapFaceIndex, ContinuousDirectXDescriptorRange *pRange=nullptr) | |
Private Attributes | |
int | iDescriptorOffsetInDescriptors |
DirectXResource * | pResource = nullptr |
DirectXDescriptorHeap *const | pHeap = nullptr |
ContinuousDirectXDescriptorRange *const | pRange = nullptr |
const std::optional< size_t > | referencedCubemapFaceIndex |
const DirectXDescriptorType | descriptorType |
Friends | |
class | DirectXDescriptorHeap |
Represents a descriptor (to a resource) that is stored in a descriptor heap. Automatically marked as unused in destructor.
ne::DirectXDescriptor::~DirectXDescriptor | ( | ) |
Notifies the heap.
|
protected |
Constructor.
pHeap | Heap of this descriptor. |
descriptorType | Type of this descriptor. |
pResource | Owner resource of this descriptor. |
iDescriptorOffsetInDescriptors | Offset of this descriptor from the heap start (offset is specified in descriptors, not an actual index). |
referencedCubemapFaceIndex | Specify empty if this descriptor does not reference a cubemap, otherwise index of cubemap's face that it references. |
pRange | Range that this descriptor was allocated from. nullptr if allocated as a single descriptor (not part of some range). |
|
inline |
Returns heap that this descriptor uses.
|
inline |
Returns offset of this descriptor from the heap start (offset is specified in descriptors, not an actual index).
DirectXResource * ne::DirectXDescriptor::getOwnerResource | ( | ) | const |
Returns resource that owns this descriptor.
|
private |
Type of this descriptor.
|
private |
Offset of this descriptor from the heap start (offset is specified in descriptors, not an actual index).
|
private |
Do not delete. Heap of this descriptor.
|
private |
Do not delete. Range that allocated this descriptor (nullptr
if allocated as a single descriptor).
|
private |
Do not delete. Owner resource of this descriptor.
|
private |
Not empty if this descriptor references a cubemap's face.