View Single Post
  #2  
Old 09-12-2013, 07:23
altef_4's Avatar
altef_4 altef_4 is offline
Registered User
 
Join Date: Mar 2012
Location: Ukraine
Posts: 361
Thanks: 248
Thanked 1,022 Times in 239 Posts
altef_4 is on a distinguished road
Quote:
Originally Posted by Smurf Stomper View Post
Altef, one question: I'm using the code from your 'link ver. 2' in your post, and noticed how your listed out all the different directX versions (except for 11.1) that are out so far.

If a new version of directX is released in the future, say v12.0, and future gpus are at that version, will this code still work? It seems the code looks at specific directX versions, not doing a general GPU ability check, like this pseudocode idea:



Obviously this is just my idea - I like the idea of having a check after each line in the [icons] section - I'm just giving you an idea in case the code you graciously wrote up won't work for future directX versions.

Let me know.. thanks for your help!
this code will work, all what you need it's add new check like this
Code:
function DX12:boolean;
begin
  Case GetDXV of
    '9':    Result:=False;
    '9.0c': Result:=False;
    '10':   Result:=False;
    '10.1': Result:=False;
    '11':   Result:=False;
    '11.1': Result:=False;
    '11.2': Result:=False;
    '12': Result:=True;
  else
  Result:=False;
  end;
end;
Reply With Quote
The Following User Says Thank You to altef_4 For This Useful Post:
pakrat2k2 (09-12-2013)