bool HasValidGeometryShaderMaxVertices(const ShHandle handle) { ASSERT(handle); TShHandleBase *base = static_cast<TShHandleBase *>(handle); TCompiler *compiler = base->getAsCompiler(); ASSERT(compiler); return compiler->getGeometryShaderMaxVertices() >= 0; }
int GetGeometryShaderMaxVertices(const ShHandle handle) { ASSERT(handle); TShHandleBase *base = static_cast<TShHandleBase *>(handle); TCompiler *compiler = base->getAsCompiler(); ASSERT(compiler); int maxVertices = compiler->getGeometryShaderMaxVertices(); ASSERT(maxVertices >= 0); return maxVertices; }