Panda3D
 All Classes Functions Variables Enumerations
dxShaderContext9.I
00001 // Filename: dxShaderContext9.i
00002 // Created by: aignacio (Jan06)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 ////////////////////////////////////////////////////////////////////
00016 //     Function: DXShaderContext9::valid
00017 //       Access: Public
00018 //  Description: Returns true if the shader is "valid", ie, if the
00019 //               compilation was successful.  The compilation could
00020 //               fail if there is a syntax error in the shader, or
00021 //               if the current video card isn't shader-capable,
00022 //               or if no shader languages are compiled into panda.
00023 ////////////////////////////////////////////////////////////////////
00024 INLINE bool CLP(ShaderContext)::
00025 valid (GSG *gsg) {
00026 #ifdef HAVE_CG
00027   if (_cg_context) {
00028     return true;
00029   }
00030 #endif
00031   return false;
00032 }
00033 
 All Classes Functions Variables Enumerations