Gpu caps viewer directx test9/21/2023 ![]() This is bad news since we’ll need to create three separate “D3D12_FEATURE_DATA” structs. ![]() After looking up from the documentation, we found that they come from three different feature groups: D3D12_OPTIONS, D3D12_OPTIONS1, and D3D12_OPTIONS5. With the old API, we must figure out which features include these three caps. In the first example, we’d like to check three different caps: “ROVs Supported”, “Wave Ops”, and Raytracing Tier. Case 1: Multiple queries from different feature groups It’s hard to explain why this class is better the original API. Allow me to introduce the new “CD3DX12FeatureSupport” class, located in d3dx12.h and available from the DirectX-Headers repo on GitHub. Actually, it’s not a single API but an entire class. To improve your experience with feature checking, we have added a wrapper API with a simpler call routine and more friendly interface. Solution: The new “CD3DX12FeatureSupport” class The query process for some features, for example FEATURE_LEVELS is not intuitive.If two caps belong to two different feature groups, you’ll need to repeat the whole process again.Finally, you read the cap information from the feature data struct. You then call the API and check if the return code is S_OK. After determining the feature, you have to create an empty feature data struct and initialize its input fields and arrays (if any). It feels like using the value to find the key in a dictionary. Making things worse, the documentation is indexed by features, not caps. Unless you memorize the cap locations, you must first look up which feature group contains the caps.You may find this API hard to use for the following reasons: You must also provide a pointer to one of the D3D12_FEATURE_DATA_* data structures specific to that feature and its size. To make use of this API, you must provide a D3D12_FEATURE enum to identify the feature group you’re querying. Here’s the function signature: HRESULT CheckFeatureSupport( Direct3D 12 has a single API, ID3D12Device::CheckFeatureSupport, which tells us whether a cap is supported and its level of support in the runtime environment. We use “capability” or “cap” to describe what the library can do. Direct3D can perform a lot of different operations.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |