Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

CheckFeatureSupport returns E_INVALIDARG on several arguments, is this a cause for concern?

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
No replies to this topic

#1 mrheisenberg   Members   

360
Like
0Likes
Like

Posted 14 April 2013 - 10:03 AM

when calling ID3D11Device::CheckFeatureSupport for all the possible features, most return E_INVALIDARG.Does this simply mean "feature not supported" or is it an actual error?For instance:


 

D3D11_FEATURE_DATA_D3D10_X_HARDWARE_OPTIONS hardwareOptions;


device->CheckFeatureSupport(D3D11_FEATURE_D3D10_X_HARDWARE_OPTIONS, &hardwareOptions, sizeof(hardwareOptions));
 

does just fine, however

 

D3D11_FEATURE_DATA_FORMAT_SUPPORT format;
D3D11_FEATURE_DATA_FORMAT_SUPPORT2 format2;


device->CheckFeatureSupport(D3D11_FEATURE_FORMAT_SUPPORT, &format, sizeof(format));
device->CheckFeatureSupport(D3D11_FEATURE_FORMAT_SUPPORT2, &format2, sizeof(format2));

 

 

both return E_INVALIDARG, which is weird, am I not passing the correct arguments?
I also get E_INVALIDARG on D3D11_FEATURE_D3D11_OPTIONS, D3D11_FEATURE_ARCHITECTURE_INFO, D3D11_FEATURE_D3D9_OPTIONS, D3D11_FEATURE_D3D9_SHADOW_SUPPORT and D3D11_FEATURE_SHADER_MIN_PRECISION_SUPPORT.

The device is created with feature level 11 and model 5 shaders run fine otherwise.

 






Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.