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

像素著色器的次要版本。

傳回

96 表示像素著色器 2.0,512 (含) 以上表示像素著色器 3.0,0 則表示像素著色器的任何其他版本。

備註

圖元著色器 3.0 支援的指令位置數目會有所不同,但一律為 512 或更新版本。

僅支援圖元著色器 2.0 和 3.0。

適用於

另請參閱