![]() ![]() You can use this code to examine the value of the D3D_FEATURE_LEVEL enumerated type that D3D11CreateDevice returns. D3D11CreateDevice stores the highest supported feature level in the FeatureLevel variable. ![]() The following code example demonstrates how to determine the highest supported feature level by calling the D3D11CreateDevice function. You can do this before device creation.Ĭall ID3D11Device::GetFeatureLevel after device creation.Įxamine the value of the returned D3D_FEATURE_LEVEL enumeration from the last step to determine the supported feature level. When you know the highest feature level supported by a device, you can run code paths that are appropriate for that device.Ĭall either the D3D11CreateDevice function or the D3D11CreateDeviceAndSwapChain functions while specifying NULL for the ppDevice parameter. Direct3D 11 devices support a fixed set of feature levels that are defined in the D3D_FEATURE_LEVEL enumeration. This topics shows how to get the highest feature level supported by a device.
0 Comments
Leave a Reply. |