My laptop have two card: intel hd graphics 4600 and nvidia geforce gtx 950M
My code just convert nv12 to rgba, and it work well on intel hd graphics 4600 .
But when i change to nvidia card on graphic setting.
D3D11_MAPPED_SUBRESOURCE ms;
hr = this->_d3d11_deviceCtx->Map(this->_texture_rgba_copy.Get(), 0, D3D11_MAP_READ, 0, &ms);
it crash at Map to subresource
Exception thrown at 0x00007FF8B1E4AAFB (nvwgf2umx.dll) in TestConsole.exe: 0xC0000005: Access violation reading location 0x0000000000000068.
Can someone look for something wrong in my code? Thank.
NV12ToRgbShader · GitHub (sorry, i’m new on directx and code just copy and edit. )
My system infomations:
-Window 10 21H2
-Nvidia driver version 512.77 (lasted)
-dxdiag Nvidia feature level: 11_0, 10_1, …
-dxdiag DirectX version 12
Shader compile with Shader model Shader Model 4 Level 9_3 (/4_0_level_9_3) (i was try Shader Model 5 but same error)