Skip to content

Commit

Permalink
[dxvk] Add important assert to object tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
doitsujin committed Oct 23, 2024
1 parent 24e0440 commit 565af8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/dxvk/dxvk_access.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ namespace dxvk {

template<typename T, typename... Args>
force_inline void track(Args&&... args) {
static_assert(sizeof(T) <= sizeof(DxvkTrackingRefStorage));
new (m_next->storage[(m_size++) & ListMask].data) T(std::forward<Args>(args)...);

if (unlikely(!(m_size & ListMask)))
Expand Down

0 comments on commit 565af8c

Please sign in to comment.