Archive: Checking Pixel Shader version


Checking Pixel Shader version
Hello all,


I have created a small plugin to get the version of Pixel Shader of the graphic cards.
If someone find this useful...

usage:


; Ensure that the Pixel Shader fulfill requirement
Function CheckGraphicsCardCapabilities

PixelShader::GetPixelShaderVersion
Pop $R0
Pop $R1
${Unless} $0 >= 2
MessageBox MB_ICONEXCLAMATION|MB_OK "$(^Name) requires a graphics card that have at least Pixel Shader Version 2. Try updating your graphics card driver."
Quit
${EndUnless}
FunctionEnd

Oops, I failed to upload the attachment


you should create a wiki page if you have not already done so


well I'm sorry but I'm not very confident with wiki. How can I create a new page ? (sorry for this noob question)


Editing a WiKi is pretty easy and outside the scope of this forum (hit google), but the very basics of it as far as the NSIS wiki goes for your specific case:

Browse to e.g.
http://nsis.sourceforge.net/PixelShaderCheck

It will tell you the page does not exist and gives you a few options. Choose to 'edit this page'.
You'll then get a small web-based editing interface where you can write text, etc. Easiest for you may be to take an existing page, such as this one:
http://nsis.sourceforge.net/HelpButton_plug-in
And edit that (at the top there's an Edit link), then copy the text there to the new page you're editing.

Adjust the text you pasted to fit your own plugin.

Go to..
http://nsis.sourceforge.net/Special:Upload
..to upload your actual plugin file (preferably zipped up).

Remember the name of your file, and add..

<attach>yourFileName.zip</attach>

..somewhere in the page you're editing to create a link to it.

Finally, hit save - and voila, you've got a whole new wiki page of your own :) You may have to register with the wiki before you can do things like upload files, but that's pretty standard :)

Thank you Animaether !

Btw, confident is not the correct word in English, I meant "confortable"


no prob - it looks good :)