https://learn.microsoft.com/en-us/windows/win32/api/d3d11/nf-d3d11-id3d11classinstance-getclasslinkage
ID3D11ClassInstance::GetClassLinkage (d3d11.h) - Win32 apps | Microsoft Learn
Gets the ID3D11ClassLinkage object associated with the current HLSL class.
happsmicrosoftlearn