win-capture: Typeless game capture textures

Modify game capture shared textures to be typeless if they could
potentially need SRGB and non-SRGB views in the future.

These capture APIs have been updated: D3D 10/11/12, Vulkan.

D3D8 capture does not use shared textures.

D3D9 and GL interop do not support typeless textures.

The new game capture DLL should be compatible with old versions of OBS.

Also removed a lot of dead code around pointless SRV/RTV support.
This commit is contained in:
jpark37
2020-12-17 04:07:31 -08:00
committed by Jim
parent c72b5de23e
commit 535f6b0adc
9 changed files with 45 additions and 110 deletions

View File

@@ -108,6 +108,7 @@ struct hook_info {
bool UNUSED_use_scale;
bool force_shmem;
bool capture_overlay;
bool allow_srgb_alias;
/* hook addresses */
struct graphics_offsets offsets;