RenderHeads / UnityPlugin-AVProVideo

AVPro Video is a multi-platform Unity plugin for advanced video playback
https://www.renderheads.com/products/avpro-video/
224 stars 27 forks source link

[Bug] Demo scenes don't work in Unity6 and D3D12 - use D3D11 instead #1896

Open agalloch21 opened 2 weeks ago

agalloch21 commented 2 weeks ago

Describe the issue When running demo scenes in Unity6, there are no textures being shown but there are sounds. The log says: 1) d3d12 error: Creating a default shader resource view with non compatible format (dxgi-fmt=87 for a resource that uses dxgi-fmt=91) 2) d3d12: Attempting to bind a NULL or empty texture. Perhaps the texture contains no image data or has an invalid size.

Demo scenes work fine in Unity2023.2.20

Your Setup (please complete the following information):

To Reproduce Just import package and run the demo scene in Unity6

Workarounds Reordering "Graphics APIs for Windows" in Player Settings to make sure D3D11 is above of D3D12 can temporarily solve the issue. Is there a way that I can specify which API to use in AVPro settings?

Chris-RH commented 2 weeks ago

Unity 6 is still in preview. It could be a small temporary bug on their part, or an overhaul of the way they handle things. We'll keep an eye on it, thanks. Just stick to changing it in Player Settings :)