GLenum GetGeometryShaderInputPrimitiveType(const ShHandle handle) { ASSERT(handle); TShHandleBase *base = static_cast<TShHandleBase *>(handle); TCompiler *compiler = base->getAsCompiler(); ASSERT(compiler); return GetGeometryShaderPrimitiveTypeEnum(compiler->getGeometryShaderInputPrimitiveType()); }
bool HasValidGeometryShaderInputPrimitiveType(const ShHandle handle) { ASSERT(handle); TShHandleBase *base = static_cast<TShHandleBase *>(handle); TCompiler *compiler = base->getAsCompiler(); ASSERT(compiler); return compiler->getGeometryShaderInputPrimitiveType() != EptUndefined; }