mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-15 07:29:17 +01:00
[dxvk] Add method to access a specific CS chunk data element
This commit is contained in:
parent
f8eeb052e0
commit
fed3b7cce4
@ -114,6 +114,16 @@ namespace dxvk {
|
|||||||
return reinterpret_cast<char*>(this) + m_dataOffset;
|
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:
|
private:
|
||||||
|
|
||||||
uint32_t m_dataOffset = 0u;
|
uint32_t m_dataOffset = 0u;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user