Game/MMD
ModelViewer(2) Async texture loading
newpolaris
2017. 7. 8. 19:25
context를 사용하기 전까진 행복했음
다만,
Exception thrown at 0x00007FFA171E3C58 in MikuViewer.exe: Microsoft C++ exception: GRFXTool::ToolException at memory location 0x000000666E5FE910.
ucrtbase.dll!00007ffa1742650a() Unknown
DXCaptureReplay.dll!00007ff9dd74bcac() Unknown
DXCaptureReplay.dll!00007ff9dd74edf1() Unknown
DXCaptureReplay.dll!00007ff9dd897eba() Unknown
DXCaptureReplay.dll!00007ff9dda3207b() Unknown
MikuViewer.exe!CommandContext::Finish(bool WaitForCompletion) Line 128 C++
MikuViewer.exe!Texture::CreateWICFromMemory(const void * memBuffer, unsigned __int64 bufferSize, bool sRGB) Line 240 C++
MikuViewer.exe!TextureManager::LoadFromMemory::__l2::<lambda>() Line 544 C++
[External Code]
[Async Call]
[External Code]
MikuViewer.exe!Async<void <lambda>(void) >(TextureManager::LoadFromMemory::__l2::void <lambda>(void) && <_Args_0>) Line 412 C++
MikuViewer.exe!TextureManager::LoadFromMemory(const std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> > & key, std::shared_ptr<std::vector<char,std::allocator<char> > > ba, bool sRGB) Line 542 C++
위 코드와 같이 Async를 같이 쓴다면, Graphics debuger에서 exception 이 발생한다.
다만 thread 를 쓴다면 문제가 없어 진다. 행복해요