You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

dx9types.d 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. import core.sys.windows.windows;
  2. struct D3DPRESENT_PARAMETERS {
  3. UINT BackBufferWidth;
  4. UINT BackBufferHeight;
  5. uint BackBufferFormat;
  6. UINT BackBufferCount;
  7. uint MultiSampleType;
  8. DWORD MultiSampleQuality;
  9. uint SwapEffect;
  10. HWND hDeviceWindow;
  11. BOOL Windowed;
  12. BOOL EnableAutoDepthStencil;
  13. uint AutoDepthStencilFormat;
  14. DWORD Flags;
  15. UINT FullScreen_RefreshRateInHz;
  16. UINT PresentationInterval;
  17. };
  18. struct D3DRASTER_STATUS {
  19. BOOL InVBlank;
  20. UINT ScanLine;
  21. };
  22. struct D3DGAMMARAMP {
  23. WORD[256] red;
  24. WORD[256] green;
  25. WORD[256] blue;
  26. };
  27. struct D3DCLIPSTATUS9 {
  28. DWORD ClipUnion;
  29. DWORD ClipIntersection;
  30. };
  31. struct D3DVERTEXELEMENT9 {
  32. WORD Stream;
  33. WORD Offset;
  34. BYTE Type;
  35. BYTE Method;
  36. BYTE Usage;
  37. BYTE UsageIndex;
  38. };
  39. struct D3DRECTPATCH_INFO {
  40. UINT StartVertexOffsetWidth;
  41. UINT StartVertexOffsetHeight;
  42. UINT Width;
  43. UINT Height;
  44. UINT Stride;
  45. uint Basis;
  46. uint Degree;
  47. };
  48. struct D3DTRIPATCH_INFO {
  49. UINT StartVertexOffset;
  50. UINT NumVertices;
  51. uint Basis;
  52. uint Degree;
  53. };