# Class: gpuprog

It contains code to be executed on the graphics card. Depending on whether your hardware is capable or not shaders will load gpuprogs automatically. There is als a set of standard gpuprograms in the base/gpuprogs folder of the application which are used internally to speed rendering up.

## Hierarchy

    o-+ resource
      o-+ gpuprog

## Interfaces:

- hashid

## Methods:

### Method overview:

- defaultpath
- find
- getrestype
- source

defaultpath ([string])
  returns: ([string])
  returns or sets the default resource path. Luxinia will search in those when resources are not found.
find (string file,string entryname)
  returns: ([gpuprog])
  finds a loaded gpuprog
getrestype ()
  returns: (int restype)
  returns the resource type as int value, useful for resdata or reschunk functions
source (gpuprog)
  returns: (string)
  returns the source

## Inherited Methods:

### From resource

condition, getresname, getresshortname, resuserstring