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:
parent
f8eeb052e0
commit
fed3b7cce4
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user