//D3D9 Constants for declaring GInst custom elements.


//Constants used for checking device support for vertex declaration data types
#Constant D3DDTCAPS_UBYTE4		0x00000001
#Constant D3DDTCAPS_UBYTE4N		0x00000002
#Constant D3DDTCAPS_SHORT2N		0x00000004
#Constant D3DDTCAPS_SHORT4N		0x00000008
#Constant D3DDTCAPS_USHORT2N	0x00000010
#Constant D3DDTCAPS_USHORT4N	0x00000020
#Constant D3DDTCAPS_UDEC3		0x00000040
#Constant D3DDTCAPS_DEC3N		0x00000080
#Constant D3DDTCAPS_FLOAT16_2	0x00000100
#Constant D3DDTCAPS_FLOAT16_4	0x00000200


//Vertex declaration data type constants for custom element declaration
#Constant D3DDECLTYPE_FLOAT1	0	`One-component 32bit float expanded to (float, 0.0, 0.0, 1.0)
#Constant D3DDECLTYPE_FLOAT2	1  	`Two-component 32bit float expanded to (float, float, 0.0, 1.0)
#Constant D3DDECLTYPE_FLOAT3	2	`Three-component 32bit float expanded to (float, float, float, 1.0)
#Constant D3DDECLTYPE_FLOAT4	3	`Four-component 32bit float expanded to (float, float, float, float)
#Constant D3DDECLTYPE_D3DCOLOR	4	`Four-component unsigned byte D3DCOLOR (BGRA) expanded to (R/255.0, G/255.0, B/255.0, A/255.0). Component values range from 0 to 255.
`Note: The D3DDECLTYPE_ constants below this line are not guarateed to be supported by all hardware.
#Constant D3DDECLTYPE_UBYTE4	5	`Four-component, unsigned byte expanded to (byte, byte, byte, byte). Component values range from 0 to 255.
#Constant D3DDECLTYPE_SHORT2	6	`Two-component 16bit signed integers expanded to (short, short, 0.0, 1.0). Component values range from –32768 to 32767.
#Constant D3DDECLTYPE_SHORT4	7	`Four-component 16bit signed integers expanded to (short, short, short, short). Component values range from –32768 to 32767.
#Constant D3DDECLTYPE_UBYTE4N	8	`Four-component unsigned byte expanded to (byte/255.0, byte/255.0, byte/255.0, byte/255.0). Component values range from 0 to 255.
#Constant D3DDECLTYPE_SHORT2N	9	`Two-component 16bit signed integers expanded to (short/32767.0, short/32767.0, 0.0, 1.0). Component values range from –32768 to 32767.
#Constant D3DDECLTYPE_SHORT4N	10	`Four-component 16bit signed integers expanded to (short/32767.0, short/32767.0, short/32767.0, short/32767.0). Component values range from –32768 to 32767.
#Constant D3DDECLTYPE_USHORT2N	11	`Two-component 16bit unsigned integers expanded to (short/65535.0, short/65535.0, 0.0, 1.0). Component values range from 0 to 65535.
#Constant D3DDECLTYPE_USHORT4N	12	`Four-component 16bit unsigned integers expanded to (short/65535.0, short/65535.0, short/65535.0, short/65535.0). Component values range from 0 to 65535.
#Constant D3DDECLTYPE_UDEC3		13	`Three-component 10bit unsigned integers expanded to (value, value, value, 1). Component values range from 0 to 1023.
#Constant D3DDECLTYPE_DEC3N		14	`Three-component 10bit signed integers expanded to (value/511.0, value/511.0, value/511.0, 1.0). Component values range from -512 to 511.
#Constant D3DDECLTYPE_FLOAT16_2	15	`Two-component 16bit float expanded to (float, float, 0.0, 1.0)
#Constant D3DDECLTYPE_FLOAT16_4	16	`Four-component 16bit float expanded to (float, float, float, float)


//Custom Element Usage
#Constant D3DDECLUSAGE_POSITION	0	`POSITION semantic
#Constant D3DDECLUSAGE_TEXCOORD	5	`TEXCOORD semantic




