Leaked source code of windows server 2003
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.

70 lines
2.6 KiB

  1. /******************************Module*Header**********************************\
  2. *
  3. * *******************
  4. * * D3D SAMPLE CODE *
  5. * *******************
  6. *
  7. * Module Name: d3dsoft.h
  8. *
  9. * Content: D3D hw register value tracking mechanism.
  10. *
  11. * Copyright (c) 1994-1998 3Dlabs Inc. Ltd. All rights reserved.
  12. * Copyright (c) 1995-1999 Microsoft Corporation. All rights reserved.
  13. \*****************************************************************************/
  14. #ifdef __SOFTCOPY
  15. #pragma message ("FILE : "__FILE__" : Multiple Inclusion");
  16. #endif
  17. #define __SOFTCOPY
  18. // For the Permedia 2 specific registers.
  19. #include "p2regs.h"
  20. //-----------------------------------------------------------------------------
  21. // Permedia 2 hardware registers software copy structure definition
  22. //-----------------------------------------------------------------------------
  23. typedef struct {
  24. // Common Local Buffer Registers
  25. __Permedia2LBReadModeFmat LBReadMode;
  26. __Permedia2LBReadFormatFmat LBReadFormat;
  27. __Permedia2LBWriteModeFmat LBWriteMode;
  28. // Common Frame Buffer Registers
  29. __Permedia2FBReadModeFmat FBReadMode;
  30. __Permedia2FBWriteModeFmat FBWriteMode;
  31. DWORD FBReadPixel;
  32. __Permedia2LogicalOpModeFmat LogicalOpMode;
  33. __Permedia2DitherModeFmat DitherMode;
  34. __Permedia2ColorDDAModeFmat ColorDDAMode;
  35. // Common Depth/Stencil/Window Registers
  36. __Permedia2DepthModeFmat DepthMode;
  37. __Permedia2StencilModeFmat StencilMode;
  38. __Permedia2StencilDataFmat StencilData;
  39. __Permedia2WindowFmat Window;
  40. // Alpha/Fog registers
  41. __Permedia2AlphaBlendModeFmat AlphaBlendMode;
  42. __Permedia2FogModeFmat FogMode;
  43. DWORD FogColor;
  44. // Delta Register
  45. __Permedia2DeltaModeFmat DeltaMode;
  46. // Chroma testing register
  47. __Permedia2YUVModeFmat YUVMode;
  48. // Texture Registers
  49. __Permedia2TextureColorModeFmat TextureColorMode;
  50. __Permedia2TextureAddrModeFmat TextureAddressMode;
  51. __Permedia2TextureReadModeFmat TextureReadMode;
  52. __Permedia2TextureDataFormatFmat TextureDataFormat;
  53. __Permedia2TextureMapFormatFmat TextureMapFormat;
  54. } __P2RegsSoftwareCopy;