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