ShaderProfile Enumeration
Defines vertex and pixel shader versions.
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public enum ShaderProfile
Members
Member name | Description | |
---|---|---|
PS_1_1 | Pixel shader version ps_1_1. | |
PS_1_2 | Pixel shader version ps_1_2. | |
PS_1_3 | Pixel shader version ps_1_3. | |
PS_1_4 | Pixel shader version ps_1_4. | |
PS_2_0 | Pixel shader version ps_2_0. | |
PS_2_A | Pixel shader version ps_2_a. | |
PS_2_B | Pixel shader version ps_2_b. | |
PS_2_SW | Pixel software shader version ps_2_sw. | |
PS_3_0 | Pixel shader version ps_3_0. | |
Unknown | Unknown pixel shader version. | |
VS_1_1 | Vertex shader version v_1_1. | |
VS_2_0 | Vertex shader version v_2_0. | |
VS_2_A | Vertex shader version v_2_a. | |
VS_2_SW | Vertex software shader version v_2_sw. | |
VS_3_0 | Vertex shader version vs_3_0. | |
XPS_3_0 | Xbox 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_0 | Xbox 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. |
Remarks
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.
See Also
Tasks
How to: Check for Shader Model 2.0 Support
Reference
GraphicsDeviceCapabilities.MaxPixelShaderProfile Property
GraphicsDeviceCapabilities.MaxVertexShaderProfile Property
ShaderCompiler.CompileFromFile Method
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista