|
Nameless Engine
|
#include <DynamicCpuWriteShaderResourceArray.h>
Public Member Functions | |
| DynamicCpuWriteShaderResourceArraySlot (const DynamicCpuWriteShaderResourceArraySlot &)=delete | |
| DynamicCpuWriteShaderResourceArraySlot & | operator= (const DynamicCpuWriteShaderResourceArraySlot &)=delete |
| void | updateDataBecauseGpuUnused (void *pData) |
| unsigned int | getIndexIntoArray () const |
Private Member Functions | |
| DynamicCpuWriteShaderResourceArraySlot (DynamicCpuWriteShaderResourceArray *pArray, size_t iIndexInArray, ShaderCpuWriteResourceBinding *pShaderResource) | |
| void | updateIndex (size_t iNewIndex) |
Private Attributes | |
| DynamicCpuWriteShaderResourceArray *const | pArray = nullptr |
| ShaderCpuWriteResourceBinding *const | pShaderResource = nullptr |
| unsigned int | iIndexInArray = 0 |
Friends | |
| class | DynamicCpuWriteShaderResourceArray |
Represents a used slot (place) in a shader resource array.
|
private |
Initializes the slot.
| pArray | Array in which the slot resides. |
| iIndexInArray | Into into the array to access the slot's data. |
| pShaderResource | Shader resource that uses this slot. |
|
inline |
Returns index into the array (that owns this slot) to access the slot's data.
| void ne::DynamicCpuWriteShaderResourceArraySlot::updateDataBecauseGpuUnused | ( | void * | pData | ) |
Copies the specified data to slot's memory.
| pData | Data to copy. |
|
inlineprivate |
Should be called by array to update the index.
| iNewIndex | New index. |
|
private |
Index into pArray to access the slot's data.
unsigned int because it will be copied to root/push constants which store uints.
|
private |
Array in which the slot resides.
|
private |
Shader resource that uses this slot.