Skip to content

RenderStateCache: Use XX128Hasher to compute DeviceHash#692

Closed
WangHoi wants to merge 2 commits intoDiligentGraphics:masterfrom
WangHoi:pr-render_state_hash
Closed

RenderStateCache: Use XX128Hasher to compute DeviceHash#692
WangHoi wants to merge 2 commits intoDiligentGraphics:masterfrom
WangHoi:pr-render_state_hash

Conversation

@WangHoi
Copy link
Copy Markdown
Contributor

@WangHoi WangHoi commented Aug 4, 2025

Which makes hash consistent between 32 and 64 bits. (#688 related)

Which makes hash consistent between 32 and 64 bits. (DiligentGraphics#688 related)
@TheMostDiligent
Copy link
Copy Markdown
Contributor

I suggest removing the m_DeviceHash member - caching it does not give much benefit.
ComputeDeviceAttribsHash then will take the XXH128State and m_pDevice:

ComputeDeviceAttribsHash(Hasher, m_pDevice);
Hasher.Update(ShaderCI);

@TheMostDiligent
Copy link
Copy Markdown
Contributor

Implemented in f132e0e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants