A profile specifies the output language of the cg compiler (either a shader assembly dialect, or a
shading language). Each profile has its own set of profileoptions that can be set for it, though many
related profiles have similar or identical options. Profiles can be grouped by program type, API, or GPU
generation.
DirectX profiles
ds_5_0, gs_4_0, gs_5_0, hlslf, hlslv, hs_5_0, ps_1_1, ps_1_2, ps_1_3, ps_2_0, ps_2_x, ps_3_0, ps_4_0,
ps_5_0, vs_1_1, vs_2_0, vs_2_x, vs_3_0, vs_4_0, vs_5_0
OpenGL profiles
arbfp1, arbvp1, fp20, fp30, "fp30unlimited", fp40, "fp40unlimited", glslf, glslg, glslv, gp4fp,
gp4gp, gp4vp, gp5fp, gp5gp, gp5tcp, gp5tep, gp5vp, vp20, vp30, vp40
Fragment profiles
arbfp1, fp20, fp30, "fp30unlimited", fp40, "fp40unlimited", glslf, gp4fp, gp5fp, hlslf, ps_1_1,
ps_1_2, ps_1_3, ps_2_0, ps_2_x, ps_3_0, ps_4_0, ps_5_0
Geometry profiles
glslg, gp4gp, gp5gp, gs_4_0, gs_5_0
Vertex profiles
arbvp1, glslv, gp4vp, gp5vp, hlslv, vp20, vp30, vp40, vs_1_1, vs_2_0, vs_2_x, vs_3_0, vs_4_0, vs_5_0
GeForce 3/4 Series profiles
fp20, vp20
GeForce 5 Series profiles
fp30, vp30
GeForce 6/7 Series profiles
fp40, vp40
GeForce 8/9/100/200/300 Series, OpenGL 3.x Quadro profiles
gp4fp, gp4gp, gp4vp
GeForce 400 Series, OpenGL 4.x Quadro profiles
gp5fp, gp5gp, gp5tcp, gp5tep, gp5vp
Profileoptions
Here is a complete list of all profiles and their corresponding profile options
arbfp1
Targets the ARB_fragment_program OpenGL extension
"-po" "ARB_draw_buffers"
Use the ARB_draw_buffers option for multiple renderbuffer targets (MRT). This is the default
"-po" "ATI_draw_buffers"
Use the ATI_draw_buffers option for multiple renderbuffer targets (MRT).
"-po" "MaxDrawBuffers="N
Set the maximum number of renderbuffer targets. Default is 1
"-po" "MaxLocalParams="N
Set the maximum number of uniform parameter slots available. Default is 32
"-po" "MaxTexIndirections="N
Sets the maximum number of texture indirections allowed in the output program. Default is 1024
"-po" "NumInstructionSlots="N
Sets the maximum number of instructions in the output program. Default is 1024
"-po" "NumMathInstructionSlots="N
Sets the maximum number of non-texture instructions in the output program. Default is 1024
"-po" "NumTemps="N
Sets the maximum number of TEMP registers in the output program. Default is 32
"-po" "NumTexInstructionSlots="N
Sets the maximum number of texture instructions in the output program. Default is 1024
arbvp1
Targets the ARB_vertex_program OpenGL extension
"-po" "MaxAddressRegs="N
Sets the maximum number of ADDRESS registers in the output program. Default is 1
"-po" "MaxInstructions="N
Sets the maximum number of instructions in the output program. Default is 1024
"-po" "MaxLocalParams="N
Set the maximum number of uniform parameter slots available. Default is 96
"-po" "NumTemps="N
Sets the maximum number of TEMP registers in the output program. Default is 32
"-po" "PosInv"
Generate position invariant code (same as fixed-function) for POSITION output
fp20
Targets the NV_register_combiners2 and NV_texture_shader OpenGL extensions
fp30
Targets the NV_fragment_program OpenGL extension
"-po" "NumInstructionSlots="N
Sets the maximum number of instructions in the output program. Default is 256
"-po" "NumTemps="N
Sets the maximum number of temporaries in the output program. Default is 32
"fp30unlimited"
Same as fp30 with various hardware limits on registers and instructions lifted
"-po" "NumInstructionSlots="N
Sets the maximum number of instructions in the output program. Default is 4194304
"-po" "NumTemps="N
Sets the maximum number of temporaries in the output program. Default is 512
fp40
Targets the NV_fragment_program2 OpenGL extension
"-po" "appleKilWAR"
Work around various bugs with KIL instructions in the OSX-tiger implementation of
NV_fragment_program2
"-po" "ARB_draw_buffers"
Use the ARB_draw_buffers option for multiple renderbuffer targets (MRT). This is the default
"-po" "ATI_draw_buffers"
Use the ATI_draw_buffers option for multiple renderbuffer targets (MRT).
"-po" "MaxLocalParams="N
Set the maximum number of uniform parameter slots available. Default is infinite
"-po" "NumInstructionSlots="N
Sets the maximum number of instructions in the output program. Default is infinite
"-po" "NumTemps="N
Sets the maximum number of TEMP registers in the output program. Default is infinite
"-po" "OutColorPrec="N
If N is 3 or 4, force output to fp16 precision. If N is 2, force output to fp32 precision.
"fp40unlimited"
Same as fp40 with various hardware limits on registers and instructions lifted
"-po" "appleKilWAR"
Work around various bugs with KIL instructions in the OSX-tiger implementation of
NV_fragment_program2
"-po" "ARB_draw_buffers"
Use the ARB_draw_buffers option for multiple renderbuffer targets (MRT). This is the default
"-po" "ATI_draw_buffers"
Use the ATI_draw_buffers option for multiple renderbuffer targets (MRT).
"-po" "MaxLocalParams="N
Set the maximum number of uniform parameter slots available. Default is 1024
"-po" "NumInstructionSlots="N
Sets the maximum number of instructions in the output program. Default is 4194304
"-po" "NumTemps="N
Sets the maximum number of TEMP registers in the output program. Default is 512
"-po" "OutColorPrec="N
If N is 3 or 4, force output to fp16 precision. If N is 2, force output to fp32 precision.
"generic"
Produces a dump of the program in a non-executable format
glslf, glslg and glslv
Targets the OpenGL Shading language (GLSL) v1.10. glslf targets fragment programs while glslv
targets vertex programs
version=val
GLSL version to target. Supported versions are 100, 110, 120, 130, 140 and 150.
userTexCoord
Use user-defined varying instead of gl_TexCoord.
ATI_draw_buffers
Use ATI_draw_buffers extension for MRT.
EXT_gpu_shader4
Use EXT_gpu_shader4 extension where useful.
gp4fp
Targets the NV_gpu_program4 and NV_fragment_program4 OpenGL extensions.
"-po" "fastimul"
Assume integer multiply inputs have at most 24 significant bits.
"-po" "NV_shader_buffer_load"
Use the NV_shader_buffer_load OpenGL extension.
"-po" "NV_parameter_buffer_object2"
Use the NV_parameter_buffer_object2 OpenGL extension.
"-po" "PaBO2"
Use the NV_parameter_buffer_object2 OpenGL extension.
"-po" "ARB_draw_buffers"
Use the ARB_draw_buffers option for multiple renderbuffer targets (MRT). This is the default
"-po" "ATI_draw_buffers"
Use the ATI_draw_buffers option for multiple renderbuffer targets (MRT).
"-po" "pixel_center_integer"
Use integer pixel centers.
"-po" "origin_upper_left"
Use upper left pixel origin.
gp4gp
Targets the NV_gpu_program4 and NV_geometry_program4 OpenGL extensions.
"-po" "POINT"
"-po" "LINE"
"-po" "LINE_ADJ"
"-po" "TRIANGLE"
"-po" "TRIANGLE_ADJ"
Set the input primitive type for the geometry program
"-po" "POINT_OUT"
"-po" "LINE_OUT"
"-po" "TRIANGLE_OUT"
Set the output primitive type for the geometry program
"-po" "Vertices="N
Set the number of vertices output by the geometry program
gp4vp
Targets the NV_gpu_program4 and NV_vertex_program4 OpenGL extensions.
"-po" "PosInv"
Generate position invariant code (same as fixed-function) for POSITION output
gp5fp
Targets the NV_gpu_program5 OpenGL extension.
"-po" "fastimul"
Assume integer multiply inputs have at most 24 significant bits.
"-po" "NV_shader_buffer_load"
Use the NV_shader_buffer_load OpenGL extension.
"-po" "NV_parameter_buffer_object2"
Use the NV_parameter_buffer_object2 OpenGL extension.
"-po" "PaBO2"
Use the NV_parameter_buffer_object2 OpenGL extension.
"-po" "ARB_draw_buffers"
Use the ARB_draw_buffers option for multiple renderbuffer targets (MRT). This is the default
"-po" "ATI_draw_buffers"
Use the ATI_draw_buffers option for multiple renderbuffer targets (MRT).
"-po" "pixel_center_integer"
Use the ARB_fragment_coord_conventions OpenGL extension to specify integer pixel centers.
"-po" "origin_upper_left"
Use the ARB_fragment_coord_conventions OpenGL extension to specify upper left pixel origin.
"-po" "NV_early_fragment_tests"
Perform depth and stencil tests prior to fragment program invocation.
gp5gp
Targets the NV_gpu_program5 OpenGL extension.
"-po" "POINT"
"-po" "LINE"
"-po" "LINE_ADJ"
"-po" "TRIANGLE"
"-po" "TRIANGLE_ADJ"
Set the input primitive type for the geometry program
"-po" "POINT_OUT"
"-po" "LINE_OUT"
"-po" "TRIANGLE_OUT"
Set the output primitive type for the geometry program
"-po" "Vertices="N
Set the number of vertices output by the geometry program
gp5tcp
Targets the NV_tessellation_program and NV_gpu_program5 OpenGL extensions.
gp5tep
Targets the NV_tessellation_program and NV_gpu_program5 OpenGL extensions.
gp5vp
Targets the NV_gpu_program5 OpenGL extension.
"-po" "PosInv"
Generate position invariant code (same as fixed-function) for POSITION output
hlslf hlslv
Targets Microsoft High-Level Shading Language (HLSL). hlslf targets pixel programs while hlslv
targets vertex programs
ps_1_1 ps_1_2 ps_1_3
Targets DirectX pixel programs
"-po" "MaxPixelShaderValue="N
Maximum absolute value representable in a pixel shader. Default is 1.
ps_2_0 ps_2_x
Targets DirectX pixel programs
"-po" "MaxDrawBuffers="N
Set the maximum number of renderbuffer targets. Default is 1
"-po" "NumInstructionSlots="N
Sets the maximum number of instructions in the output program. Default is 96 or 512
"-po" "NumTemps="N
Sets the maximum number of temporaries in the output program. Default is 12 or 32
ps_3_0
Targets DirectX pixel programs
"-po" "MaxDrawBuffers="N
Set the maximum number of renderbuffer targets. Default is 1
"-po" "MaxLocalParams="N
Set the maximum number of uniform parameter slots available. Default is 224
"-po" "NumInstructionSlots="N
Sets the maximum number of instructions in the output program. Default is 32768
"-po" "NumTemps="N
Sets the maximum number of temporaries in the output program. Default is 32
"-po" "OutColorPrec="N
If N is 3 or 4, force output to fp16 precision. If N is 2, force output to fp32 precision.
vp20
Targets the NV_vertex_program OpenGL extension
"-po" "MaxLocalParams="N
Set the maximum number of uniform parameter slots available. Default is 96
"-po" "PosInv"
Generate position invariant code (same as fixed-function) for POSITION output
vp30
Targets the NV_vertex_program2 OpenGL extension
"-po" "MaxLocalParams="N
Set the maximum number of uniform parameter slots available. Default is 256
"-po" "PosInv"
Generate position invariant code (same as fixed-function) for POSITION output
vp40
Targets the NV_vertex_program3 OpenGL extension
"-po" "MaxAddressRegs="N
Sets the maximum number of ADDRESS registers in the output program. Default is 2
"-po" "MaxInstructions="N
Sets the maximum number of instructions in the output program. Default is 2048
"-po" "MaxLocalParams="N
Set the maximum number of uniform parameter slots available. Default is 544
"-po" "NumTemps="N
Sets the maximum number of TEMP registers in the output program. Default is 32
"-po" "PosInv"
Generate position invariant code (same as fixed-function) for POSITION output
vs_1_1
Targets DirectX vertex programs
"-po" "dcls"
Output dx9-style dcls statements
"-po" "MaxLocalParams="N
Set the maximum number of uniform parameter slots available. Default is 96
"-po" "NumInstructionSlots="N
Sets the maximum number of instructions in the output program. Default is 128
"-po" "NumTemps="N
Sets the maximum number of temporaries in the output program. Default is 12
vs_2_0 vs_2_x
Targets DirectX vertex programs
"-po" "dcls"
Output dx9-style dcls statements
"-po" "MaxLocalParams="N
Set the maximum number of uniform parameter slots available. Default is 256
"-po" "NumInstructionSlots="N
Sets the maximum number of instructions in the output program. Default is 256
"-po" "NumTemps="N
Sets the maximum number of temporaries in the output program. Default is 12
vs_3_0
Targets DirectX vertex programs
"-po" "dcls"
Output dx9-style dcls statements
"-po" "MaxLocalParams="N
Set the maximum number of uniform parameter slots available. Default is 256
"-po" "NumInstructionSlots="N
Sets the maximum number of instructions in the output program. Default is 32768
"-po" "NumTemps="N
Sets the maximum number of temporaries in the output program. Default is 32