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 Minor Example
1 1 D3DPS_VERSION(1,1)
1 2 D3DPS_VERSION(1,2)
1 3 D3DPS_VERSION(1,3)
1 4 D3DPS_VERSION(1,4)
2 0 D3DPS_VERSION(2,0)
3 0 D3DPS_VERSION(3,0)

 

Requirements

Requirement Value
Header
D3d9types.h

See also

Macros

D3DCAPS9