Hi everyone, I am new to Dx12 and working on a game project.
My game just crash at CreateShaderResourceView with no infomation output in debug log, just: 0xC0000005: Access violation reading location 0x000001F22EF2AFE8.
my code at current:
CreateShaderResourceView(m_texture, &desc, *cpuDescriptorHandle);
- m_texture address is: 0x000001ea3c68c8a0
- cpuDescriptorHandle address is 0x00000056d88fdd50
- desc.Format, desc.ViewDimension, Texture2D.MostDetailedMip, Texture2D.MipLevels is initalized.
The crash happens all times at that stage but not on same m_texture. As I noticed the violation reading location is always somewhere near m_texture address.
I just declare a temp variable to check how many times CreateShaderResourceView already called, at that moment it is 17879 (means that I created 17879 succesfully), and CreateDescriptorHeap for cpuDescriptorHandle was called 4190, do I reach any limit?
One more infomation, if I set miplevel of all texture when create to 1 it seem like there is no crash but game quality is bad. Do not sure if it relative or not.
Anyone could give me some advise ?
↧