Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
* * * * * 1 votes

Gpu Software


2 replies to this topic

#1 osknockout

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 399 posts
  • Location:Elysium
  • Interests:quantum mechanics, war, history, epidemiology, virology,mathematics, programming, D&amp;D/NetHack<br />...old skool :)

Posted 31 January 2007 - 10:27 PM

Ok, I know that there is a Brook language, Cg shader language, and even an OpenGL implementation of shaders but where's the actual stuff that directly programs GPUs? (Graphical Processing Units, basically the main processors of graphics cards) I've been looking around the net and I can't find software that directly interacts with GPUs -even if it is just ONE single video card- without using some sort of proprietary driver. So I'm asking the cliche question. "Is there anything out there?" - preferably something that is open source?

#2 fffanatics

    Privileged Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 936 posts
  • Location:West Chester, PA

Posted 01 February 2007 - 05:58 PM

In order to program on the GPU you have to use Shaders. It is the only way to gain access to the GPU since the GPU is only used in certain phases of the Graphics Pipeline (soon to be extinct in DX10). To utilize the shaders, you will want to learn a higher level shading language like CG, HLSL, or GLSL depending on the language you are programming with aka HLSL works with DX, GLSL with OpenGL, and CG with either of them. Since the GPU performs all operations in parallel you have to make sure your code is parallelized. Then you have to make sure your data is stored in a texture so that the GPU can access it and store it in the video memory. These are very advanced topics so before you even try to do something like this, learn how to use shaders in a simple graphical way like adding a glow to a mesh or something like that just so you know how they work.

#3 osknockout

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 399 posts
  • Location:Elysium
  • Interests:quantum mechanics, war, history, epidemiology, virology,mathematics, programming, D&amp;D/NetHack<br />...old skool :)

Posted 04 February 2007 - 04:51 PM

Ok, that makes sense. But is there no low-level shader language?
- I know nVidia has this 'nvasm' program to compile some sort of assembly but it only goes into DirectX -I believe- and that only by
means of VC++.

I'm looking for some way to program the GPU by direct manipulation instead of having to go through some high-level programming language or such.

But in case there is none ... which is probably very likely, how would I even start to program shaders in say GLSL?




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users