libsdl-org / SDL

Simple Directmedia Layer
https://libsdl.org
zlib License
8.69k stars 1.63k forks source link

Request: Add D3D12 support to testffmpeg.. #9463

Open oscarbg opened 2 months ago

oscarbg commented 2 months ago

Hi, would be nice as FFMPEG 7.0 added d3d12va decoders..

in fact I tried and getting problems in my GetTextureForD3D12Frame function.. how is the D3D12 equivalent way of?

ID3D11DeviceContext_CopySubresourceRegion(d3d11_context, dx11_resource, 0, 0, 0, 0, (ID3D11Resource *)pTexture, iSliceIndex, NULL);

in GetTextureForD3D11Frame..

thanks..

slouken commented 1 month ago

Please feel free to submit a PR that adds this. I believe SDL already provides everything you need via D3D12 properties on the renderer and texture. Please let me know if that's not the case.