Panda3D
dxShaderContext9.I
1 // Filename: dxShaderContext9.i
2 // Created by: aignacio (Jan06)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 
16 ////////////////////////////////////////////////////////////////////
17 // Function: DXShaderContext9::valid
18 // Access: Public
19 // Description: Returns true if the shader is "valid", ie, if the
20 // compilation was successful. The compilation could
21 // fail if there is a syntax error in the shader, or
22 // if the current video card isn't shader-capable,
23 // or if no shader languages are compiled into panda.
24 ////////////////////////////////////////////////////////////////////
25 INLINE bool CLP(ShaderContext)::
26 valid(GSG *gsg) {
27 #ifdef HAVE_CG
28  return (_cg_program != 0);
29 #else
30  return false;
31 #endif
32 }
The ShaderContext is meant to contain the compiled version of a shader string.
Definition: shaderContext.h:35