On 22 September 2010 17:29, misha680 misha680@gmail.com wrote:
Right now I am thinking of a simple mask based approach, e.g., extending: d3d9types.h:#define D3DFVF_POSITION_MASK 0x400E d3d9types.h:#define D3DFVF_TEXCOUNT_MASK 0x0f00 as well as other masks, and then doing a simple validation for flags that may be outside this mask, such as:
That basically comes down to testing for "fvf & (D3DFVF_RESERVED0 | D3DFVF_RESERVED2)". In fact, that would also explain the results for D3DFVF_XYZW, and make the explicit check for that redundant.