D3DPS_VERSION macro

Create a pixel shader version token.

Syntax


DWORD D3DPS_VERSION(
   int _Major,
   int _Minor
);

Parameters

_Major

The major pixel shader version.

_Minor

The minor pixel shader version.

Return value

Returns a DWORD value that is a pixel shader version.

Remarks

Version Numbers

The version number is a combination of the major version and the minor vertex shader version numbers. Valid numbers are shown in the table.

Major MinorExample
11D3DPS_VERSION(1,1)
12D3DPS_VERSION(1,2)
13D3DPS_VERSION(1,3)
14D3DPS_VERSION(1,4)
20D3DPS_VERSION(2,0)
30D3DPS_VERSION(3,0)

 

Requirements

Header

D3d9types.h

See also

Macros
D3DCAPS9

 

 

Show: