( self )
| 62 | self.assertTrue( IECoreGL.ShaderLoader.defaultShaderLoader().isSame( IECoreGL.ShaderLoader.defaultShaderLoader() ) ) |
| 63 | |
| 64 | def testPreprocessing( self ) : |
| 65 | |
| 66 | sp = IECore.SearchPath( os.path.join( os.path.dirname( __file__ ), "shaders" ) ) |
| 67 | psp = IECore.SearchPath( os.path.join( os.path.dirname( __file__ ), "shaders", "include" ) ) |
| 68 | |
| 69 | # this should work |
| 70 | l = IECoreGL.ShaderLoader( sp, psp ) |
| 71 | s = l.load( "failWithoutPreprocessing" ) |
| 72 | |
| 73 | # but turning off preprocessing should cause a throw |
| 74 | l = IECoreGL.ShaderLoader( sp ) |
| 75 | self.assertRaises( RuntimeError, l.load, "failWithoutPreprocessing" ) |
| 76 | |
| 77 | def testPreprocessingAllowsVersionAndExtension( self ) : |
| 78 |
nothing calls this directly
no test coverage detected