Specifies the binding flags to use when allocating Microsoft Direct3D 11 surfaces for media samples.
UINT32
DECLSPEC_SELECTANY GUID MF_SA_D3D11_BINDFLAGS = {0xeacf97ad,0x065c,0x4408,{0xbe,0xe3,0xfd,0xcb,0xfd,0x12,0x8b,0xe2} }
The value of this attribute is a bitwise OR of D3D11_BIND_FLAG flags.
In this context, the attribute applies only when the Microsoft Media Foundation transform (MFT) returns TRUE for the MF_SA_D3D11_AWARE attribute.
If an MFT supports Microsoft Direct3D 11, this attribute provides a hint to the MFT when allocating Microsoft Direct3D surfaces for output. Set the attribute as follows:
The Microsoft Media Foundation pipeline sets the attribute before streaming starts. The MFT should attempt to honor the setting when it allocates surfaces. If that is not possible, the MFT can ignore the attribute, rather than failing the allocation.
In addition, if the MFT requires Microsoft Direct3D surfaces for input, it can expose this attribute as a hint for how the input surfaces should be allocated. Query the attribute as follows:
This attribute can be set on the video sample allocator, in the IMFVideoSampleAllocatorEx::InitializeSampleAllocatorEx method.
Header: Declared in mftransform.h.