Cg
Keywords: Cg, NVIDIA, NVIDIA Cg Toolkit, Cg Toolkit, Shader, Shader Programming, GPU Shader Programming, GPU Program

> ## Name

> Cg - A multi-platform, multi-API C-based programming language for GPUs

> ## Description

> Cg is a high-level programming language designed to compile to the instruction sets of the programmable portions of GPUs. While Cg programs have great flexibility in the way that they express the computations they perform, the inputs, outputs, and basic resources available to those programs are dictated by where they execute in the graphics pipeline. Other documents describe how to write Cg programs. This document describes the library that application programs use to interact with Cg programs. This library and its associated API is referred to as the Cg runtime.

> ## Documentation Organization

> Cg Topics
> Cg Language Specification
> Cg Commands
> Cg Core Runtime API
> Cg OpenGL Runtime API
> Cg Direct3D11 Runtime API
> Cg Direct3D10 Runtime API
> Cg Direct3D9 Runtime API
> Cg Direct3D8 Runtime API
> Cg Profiles
> Cg Standard Libary Routines
> CgFX States
> CgFX Sampler States

> ## See Also

> Cg_language, cgc, cgCreateContext, cgDestroyContext