dxgicommon.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. //
  2. // Copyright (C) Microsoft Corporation.
  3. // Licensed under the MIT license
  4. //
  5. #ifndef __dxgicommon_h__
  6. #define __dxgicommon_h__
  7. typedef struct DXGI_RATIONAL
  8. {
  9. UINT Numerator;
  10. UINT Denominator;
  11. } DXGI_RATIONAL;
  12. // The following values are used with DXGI_SAMPLE_DESC::Quality:
  13. #define DXGI_STANDARD_MULTISAMPLE_QUALITY_PATTERN 0xffffffff
  14. #define DXGI_CENTER_MULTISAMPLE_QUALITY_PATTERN 0xfffffffe
  15. typedef struct DXGI_SAMPLE_DESC
  16. {
  17. UINT Count;
  18. UINT Quality;
  19. } DXGI_SAMPLE_DESC;
  20. typedef enum DXGI_COLOR_SPACE_TYPE
  21. {
  22. DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709 = 0,
  23. DXGI_COLOR_SPACE_RGB_FULL_G10_NONE_P709 = 1,
  24. DXGI_COLOR_SPACE_RGB_STUDIO_G22_NONE_P709 = 2,
  25. DXGI_COLOR_SPACE_RGB_STUDIO_G22_NONE_P2020 = 3,
  26. DXGI_COLOR_SPACE_RESERVED = 4,
  27. DXGI_COLOR_SPACE_YCBCR_FULL_G22_NONE_P709_X601 = 5,
  28. DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P601 = 6,
  29. DXGI_COLOR_SPACE_YCBCR_FULL_G22_LEFT_P601 = 7,
  30. DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P709 = 8,
  31. DXGI_COLOR_SPACE_YCBCR_FULL_G22_LEFT_P709 = 9,
  32. DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_LEFT_P2020 = 10,
  33. DXGI_COLOR_SPACE_YCBCR_FULL_G22_LEFT_P2020 = 11,
  34. DXGI_COLOR_SPACE_RGB_FULL_G2084_NONE_P2020 = 12,
  35. DXGI_COLOR_SPACE_YCBCR_STUDIO_G2084_LEFT_P2020 = 13,
  36. DXGI_COLOR_SPACE_RGB_STUDIO_G2084_NONE_P2020 = 14,
  37. DXGI_COLOR_SPACE_YCBCR_STUDIO_G22_TOPLEFT_P2020 = 15,
  38. DXGI_COLOR_SPACE_YCBCR_STUDIO_G2084_TOPLEFT_P2020 = 16,
  39. DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P2020 = 17,
  40. DXGI_COLOR_SPACE_YCBCR_STUDIO_GHLG_TOPLEFT_P2020 = 18,
  41. DXGI_COLOR_SPACE_YCBCR_FULL_GHLG_TOPLEFT_P2020 = 19,
  42. DXGI_COLOR_SPACE_RGB_STUDIO_G24_NONE_P709 = 20,
  43. DXGI_COLOR_SPACE_RGB_STUDIO_G24_NONE_P2020 = 21,
  44. DXGI_COLOR_SPACE_YCBCR_STUDIO_G24_LEFT_P709 = 22,
  45. DXGI_COLOR_SPACE_YCBCR_STUDIO_G24_LEFT_P2020 = 23,
  46. DXGI_COLOR_SPACE_YCBCR_STUDIO_G24_TOPLEFT_P2020 = 24,
  47. DXGI_COLOR_SPACE_CUSTOM = 0xFFFFFFFF
  48. } DXGI_COLOR_SPACE_TYPE;
  49. #endif // __dxgicommon_h__