Export (0) Print
Expand All
Expand Minimize
2 out of 4 rated this helpful - Rate this topic

ShaderProfile Enumeration

Defines vertex and pixel shader versions.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public enum ShaderProfile
 Member nameDescription
PS_1_1Pixel shader version ps_1_1.
PS_1_2Pixel shader version ps_1_2.
PS_1_3Pixel shader version ps_1_3.
PS_1_4Pixel shader version ps_1_4.
PS_2_0Pixel shader version ps_2_0.
PS_2_APixel shader version ps_2_a.
PS_2_BPixel shader version ps_2_b.
PS_2_SWPixel software shader version ps_2_sw.
PS_3_0Pixel shader version ps_3_0.
UnknownUnknown pixel shader version.
VS_1_1Vertex shader version v_1_1.
VS_2_0Vertex shader version v_2_0.
VS_2_AVertex shader version v_2_a.
VS_2_SWVertex software shader version v_2_sw.
VS_3_0Vertex shader version vs_3_0.
XPS_3_0Xbox microcode assembly pixel shader version xps_3_0. Microcode assembly language supports a superset of the ps_3_0 and vs_3_0 specifications defined by Direct3D 9.0 for Windows. It does not support earlier Direct3D vertex and pixel shader specifications.
XVS_3_0Xbox microcode assembly vertex shader version xvs_3_0. Microcode assembly language supports a superset of the ps_3_0 and vs_3_0 specifications defined by Direct3D 9.0 for Windows. It does not support earlier Direct3D vertex and pixel shader specifications.

These pixel shader versions identify the assembly-level shader model compilation target the HLSL compiler should use to express the final shader code. When shader compilation is completed at runtime, an application might query the using MaxVertexShaderProfile or MaxPixelShaderProfile to select a compilation target to match the capabilities of the graphics device.

Xbox 360, Windows XP SP2, Windows Vista

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.