RenderCapability.MaxPixelShaderInstructionSlots(Int16, Int16) 方法

定义

获取指定像素着色器版本支持的最大指令槽数。

public:
 static int MaxPixelShaderInstructionSlots(short majorVersionRequested, short minorVersionRequested);
public static int MaxPixelShaderInstructionSlots(short majorVersionRequested, short minorVersionRequested);
static member MaxPixelShaderInstructionSlots : int16 * int16 -> int
Public Shared Function MaxPixelShaderInstructionSlots (majorVersionRequested As Short, minorVersionRequested As Short) As Integer

参数

majorVersionRequested
Int16

像素着色器的主要版本。

minorVersionRequested
Int16

像素着色器的次要版本。

返回

对于像素着色器 2.0、512 或更高版本,对于像素着色器 3.0,对于任何其他版本的像素着色器,为 96。

注解

像素着色器 3.0 支持的指令槽数各不相同,但始终为 512 或更高版本。

仅支持像素着色器 2.0 和 3.0。

适用于

另请参阅