MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / VmaWriteMagicValue

Function VmaWriteMagicValue

include/vk_mem_alloc.h:3810–3822  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3808}
3809
3810static void VmaWriteMagicValue(void* pData, VkDeviceSize offset)
3811{
3812#if VMA_DEBUG_MARGIN > 0 && VMA_DEBUG_DETECT_CORRUPTION
3813 uint32_t* pDst = (uint32_t*)((char*)pData + offset);
3814 const size_t numberCount = VMA_DEBUG_MARGIN / sizeof(uint32_t);
3815 for (size_t i = 0; i < numberCount; ++i, ++pDst)
3816 {
3817 *pDst = VMA_CORRUPTION_DETECTION_MAGIC_VALUE;
3818 }
3819#else
3820 // no-op
3821#endif
3822}
3823
3824static bool VmaValidateMagicValue(const void* pData, VkDeviceSize offset)
3825{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected