file REDShaderString.h

Header of the RED::ShaderString class. ARC shaders program helpers.

Go to the source code of this file.

Namespaces:

namespaceRED

Classes:

classShaderString

Defines:

#defineREDCheckARBHeader (iString, iSize)
#defineREDCheckGeometryHeader (iString, iSize)
#defineREDCheckNVFPHeader (iString, iSize)
#defineREDCheckNVHeader (iString, iSize)
#defineREDCheckSoftHeader (iString, iSize)

Defines documentation

#define REDCheckARBHeader(iString,
iSize
)

Checks the startup string of a shader to look for an ARB shader.

Parameters:

iString:Program string to test.
iSize:Byte size of the provided iString.

Value:

\
  ( ( iSize) >= 5 &&\
    ( iString )[0] == '!' &&\
    ( iString )[1] == '!' &&\
    ( iString )[2] == 'A' &&\
    ( iString )[3] == 'R' &&\
    ( iString )[4] == 'B' )
#define REDCheckGeometryHeader(iString,
iSize
)

Checks the startup string of a shader to look for a geometry vertex shader

Parameters:

iString:Program string to test.
iSize:Byte size of the provided iString.

Value:

\
  ( (iSize) >= 20 &&\
    (iString)[0] == '!' &&\
    (iString)[1] == '!' &&\
    (iString)[2] == 'R' &&\
    (iString)[3] == 'E' &&\
    (iString)[4] == 'D' &&\
    (iString)[5] == 'S' &&\
    (iString)[6] == 'h' &&\
    (iString)[7] == 'a' &&\
    (iString)[8] == 'd' &&\
    (iString)[9] == 'e' &&\
    (iString)[10] == 'r' &&\
    (iString)[11] == 'G' &&\
    (iString)[12] == 'e' &&\
    (iString)[13] == 'o' &&\
    (iString)[14] == 'm' &&\
    (iString)[15] == 'e' &&\
    (iString)[16] == 't' &&\
    (iString)[17] == 'r' &&\
    (iString)[18] == 'y' &&\
    (iString)[19] == ':' )
#define REDCheckNVFPHeader(iString,
iSize
)

Checks the startup string of a shader to look for a NVIDIA fragment shader.

Parameters:

iString:Program string to test.
iSize:Byte size of the provided iString.

Value:

\
  ( ( iSize ) >= 4 &&\
    ( iString )[0] == '!' &&\
    ( iString )[1] == '!' &&\
    ( iString )[2] == 'F' &&\
    ( iString )[3] == 'P' )
#define REDCheckNVHeader(iString,
iSize
)

Checks the startup string of a shader to look for a NVIDIA shader.

Parameters:

iString:Program string to test.
iSize:Byte size of the provided iString.

Value:

\
  ( ( iSize ) >= 4 &&\
    ( iString )[0] == '!' &&\
    ( iString )[1] == '!' &&\
    ( iString )[2] == 'N' &&\
    ( iString )[3] == 'V' )
#define REDCheckSoftHeader(iString,
iSize
)

Checks the startup string of a shader to look for a software shader.

Parameters:

iString:Program string to test.
iSize:Byte size of the provided iString.

Value:

\
  ( (iSize) >= 12 &&\
    (iString)[0] == '!' &&\
    (iString)[1] == '!' &&\
    (iString)[2] == 'R' &&\
    (iString)[3] == 'E' &&\
    (iString)[4] == 'D' &&\
    (iString)[5] == 'S' &&\
    (iString)[6] == 'h' &&\
    (iString)[7] == 'a' &&\
    (iString)[8] == 'd' &&\
    (iString)[9] == 'e' &&\
    (iString)[10] == 'r' &&\
    (iString)[11] == ':' )