CGINFO(1)

πŸ’– CGINFO(1) β€” cginfo πŸ’–

okay bestie, welcome to the cginfo page β€” it lives in the Cg Commands section of the manual, and it's literally the cutest little tool for spilling the tea about your Cg library. 🫢


✨ NAME ✨

cginfo β€” print Cg library information πŸŽ€


🌸 SYNOPSIS 🌸

cginfo [-help] [-profiles] [/path/to/library]

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the vibe: cginfo prints a Cg library's version string to the standard output, and along with the path to the library from which the version was retrieved. Like, it doesn't just tell you what version β€” it tells you where it got that answer from. Iconic behaviour honestly. πŸ’…

It can also show you the list of supported profiles, if you ask nicely.

The source code for cginfo is found under examples/Tools/cginfo. And no cap, this example is a whole tutorial in disguise β€” it demonstrates how to load the Cg library and get the address of a symbol from the library for all of the platforms on which Cg is supported. So it's giving "learn by reading" energy, and we love that for you. ✨


πŸ’… OPTIONS πŸ’…

  • -help β€” prints a description of the command line options understood by cginfo on the standard output. Your little "what do I even type" rescue button. πŸ™ˆ
  • -profiles β€” also prints a list of profiles supported by this library on the standard output. ⚠️ but listen: the APIs to enumerate supported profiles were introduced in Cg 2.2. If the library being queried is 2.1 or earlier, then this option will have no effect. Like, none. Zero. The silence is the feature. 😭
  • /path/to/library β€” platform specific path the library to be queried. If no explicit library path is given, the platform specific rules for finding shared libraries will be used to locate a copy of the Cg library to query. So you can point right at it, or just let the system do its lil detective work. πŸ”

πŸ‘‘ SEE ALSO πŸ‘‘

  • Cg_language

k that's the whole page, you ate it, go forth and query libraries πŸ’–

this page came to you courtesy of perl v5.10.0 and the Cg Toolkit 3.0 β€” mwah, thanks for reading bestie, ily, bye!! πŸŽ€βœ¨πŸ¦‹