1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-14 04:29:15 +01:00

[dxvk] Add method to access a specific CS chunk data element

This commit is contained in:
Philip Rebohle 2025-03-11 00:34:38 +01:00
parent f8eeb052e0
commit fed3b7cce4

View File

@ -114,6 +114,16 @@ namespace dxvk {
return reinterpret_cast<char*>(this) + m_dataOffset;
}
/**
* \brief Retrieves pointer to given structure
*
* \param [in] idx Structure index
* \returns Untyped pointer to given structure
*/
void* at(uint32_t idx) {
return reinterpret_cast<char*>(this) + m_dataOffset + idx * uint32_t(m_structSize);
}
private:
uint32_t m_dataOffset = 0u;