Changeset 57150 in vbox for trunk/src/VBox/Devices/Graphics
- Timestamp:
- Aug 1, 2015 8:25:09 PM (9 years ago)
- Location:
- trunk/src/VBox/Devices/Graphics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-info.cpp
r57149 r57150 38 38 #define VMSVGA3D_INCL_STRUCTURE_DESCRIPTORS 39 39 #include "DevVGA-SVGA3d-internal.h" 40 41 42 /********************************************************************************************************************************* 43 * Global Variables * 44 *********************************************************************************************************************************/ 45 /** Enum value to string mappings for SVGA3dSurfaceFormat, prefix "SVGA3D_". */ 46 static const VMSVGAINFOENUM g_aSVGA3dSurfaceFormats[] = 47 { 48 { SVGA3D_FORMAT_INVALID , "FORMAT_INVALID" }, 49 { SVGA3D_X8R8G8B8 , "X8R8G8B8" }, 50 { SVGA3D_A8R8G8B8 , "A8R8G8B8" }, 51 { SVGA3D_R5G6B5 , "R5G6B5" }, 52 { SVGA3D_X1R5G5B5 , "X1R5G5B5" }, 53 { SVGA3D_A1R5G5B5 , "A1R5G5B5" }, 54 { SVGA3D_A4R4G4B4 , "A4R4G4B4" }, 55 { SVGA3D_Z_D32 , "Z_D32" }, 56 { SVGA3D_Z_D16 , "Z_D16" }, 57 { SVGA3D_Z_D24S8 , "Z_D24S8" }, 58 { SVGA3D_Z_D15S1 , "Z_D15S1" }, 59 { SVGA3D_LUMINANCE8 , "LUMINANCE8" }, 60 { SVGA3D_LUMINANCE4_ALPHA4 , "LUMINANCE4_ALPHA4" }, 61 { SVGA3D_LUMINANCE16 , "LUMINANCE16" }, 62 { SVGA3D_LUMINANCE8_ALPHA8 , "LUMINANCE8_ALPHA8" }, 63 { SVGA3D_DXT1 , "DXT1" }, 64 { SVGA3D_DXT2 , "DXT2" }, 65 { SVGA3D_DXT3 , "DXT3" }, 66 { SVGA3D_DXT4 , "DXT4" }, 67 { SVGA3D_DXT5 , "DXT5" }, 68 { SVGA3D_BUMPU8V8 , "BUMPU8V8" }, 69 { SVGA3D_BUMPL6V5U5 , "BUMPL6V5U5" }, 70 { SVGA3D_BUMPX8L8V8U8 , "BUMPX8L8V8U8" }, 71 { SVGA3D_BUMPL8V8U8 , "BUMPL8V8U8" }, 72 { SVGA3D_ARGB_S10E5 , "ARGB_S10E5" }, 73 { SVGA3D_ARGB_S23E8 , "ARGB_S23E8" }, 74 { SVGA3D_A2R10G10B10 , "A2R10G10B10" }, 75 { SVGA3D_V8U8 , "V8U8" }, 76 { SVGA3D_Q8W8V8U8 , "Q8W8V8U8" }, 77 { SVGA3D_CxV8U8 , "CxV8U8" }, 78 { SVGA3D_X8L8V8U8 , "X8L8V8U8" }, 79 { SVGA3D_A2W10V10U10 , "A2W10V10U10" }, 80 { SVGA3D_ALPHA8 , "ALPHA8" }, 81 { SVGA3D_R_S10E5 , "R_S10E5" }, 82 { SVGA3D_R_S23E8 , "R_S23E8" }, 83 { SVGA3D_RG_S10E5 , "RG_S10E5" }, 84 { SVGA3D_RG_S23E8 , "RG_S23E8" }, 85 { SVGA3D_BUFFER , "BUFFER" }, 86 { SVGA3D_Z_D24X8 , "Z_D24X8" }, 87 { SVGA3D_V16U16 , "V16U16" }, 88 { SVGA3D_G16R16 , "G16R16" }, 89 { SVGA3D_A16B16G16R16 , "A16B16G16R16" }, 90 { SVGA3D_UYVY , "UYVY" }, 91 { SVGA3D_YUY2 , "YUY2" }, 92 { SVGA3D_NV12 , "NV12" }, 93 { SVGA3D_AYUV , "AYUV" }, 94 { SVGA3D_BC4_UNORM , "BC4_UNORM" }, 95 { SVGA3D_BC5_UNORM , "BC5_UNORM" }, 96 { SVGA3D_Z_DF16 , "Z_DF16" }, 97 { SVGA3D_Z_DF24 , "Z_DF24" }, 98 { SVGA3D_Z_D24S8_INT , "Z_D24S8_INT" }, 99 }; 100 VMSVGAINFOENUMMAP_MAKE(RT_NOTHING, g_SVGA3dSurfaceFormat2String, g_aSVGA3dSurfaceFormats, "SVGA3D_"); 40 101 41 102 -
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-shared.cpp
r57149 r57150 45 45 46 46 #ifdef RT_OS_WINDOWS 47 /*******************************************************************************48 * Structures and Typedefs *49 *******************************************************************************/50 47 # define VMSVGA3D_WNDCLASSNAME "VMSVGA3DWNDCLS" 51 48 52 49 static LONG WINAPI vmsvga3dWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam); 53 #endif 54 55 56 /********************************************************************************************************************************* 57 * Global Variables * 58 *********************************************************************************************************************************/ 59 /** Enum value to string mappings for SVGA3dSurfaceFormat, prefix "SVGA3D_". */ 60 static const VMSVGAINFOENUM g_aSVGA3dSurfaceFormats[] = 61 { 62 { SVGA3D_FORMAT_INVALID , "FORMAT_INVALID" }, 63 { SVGA3D_X8R8G8B8 , "X8R8G8B8" }, 64 { SVGA3D_A8R8G8B8 , "A8R8G8B8" }, 65 { SVGA3D_R5G6B5 , "R5G6B5" }, 66 { SVGA3D_X1R5G5B5 , "X1R5G5B5" }, 67 { SVGA3D_A1R5G5B5 , "A1R5G5B5" }, 68 { SVGA3D_A4R4G4B4 , "A4R4G4B4" }, 69 { SVGA3D_Z_D32 , "Z_D32" }, 70 { SVGA3D_Z_D16 , "Z_D16" }, 71 { SVGA3D_Z_D24S8 , "Z_D24S8" }, 72 { SVGA3D_Z_D15S1 , "Z_D15S1" }, 73 { SVGA3D_LUMINANCE8 , "LUMINANCE8" }, 74 { SVGA3D_LUMINANCE4_ALPHA4 , "LUMINANCE4_ALPHA4" }, 75 { SVGA3D_LUMINANCE16 , "LUMINANCE16" }, 76 { SVGA3D_LUMINANCE8_ALPHA8 , "LUMINANCE8_ALPHA8" }, 77 { SVGA3D_DXT1 , "DXT1" }, 78 { SVGA3D_DXT2 , "DXT2" }, 79 { SVGA3D_DXT3 , "DXT3" }, 80 { SVGA3D_DXT4 , "DXT4" }, 81 { SVGA3D_DXT5 , "DXT5" }, 82 { SVGA3D_BUMPU8V8 , "BUMPU8V8" }, 83 { SVGA3D_BUMPL6V5U5 , "BUMPL6V5U5" }, 84 { SVGA3D_BUMPX8L8V8U8 , "BUMPX8L8V8U8" }, 85 { SVGA3D_BUMPL8V8U8 , "BUMPL8V8U8" }, 86 { SVGA3D_ARGB_S10E5 , "ARGB_S10E5" }, 87 { SVGA3D_ARGB_S23E8 , "ARGB_S23E8" }, 88 { SVGA3D_A2R10G10B10 , "A2R10G10B10" }, 89 { SVGA3D_V8U8 , "V8U8" }, 90 { SVGA3D_Q8W8V8U8 , "Q8W8V8U8" }, 91 { SVGA3D_CxV8U8 , "CxV8U8" }, 92 { SVGA3D_X8L8V8U8 , "X8L8V8U8" }, 93 { SVGA3D_A2W10V10U10 , "A2W10V10U10" }, 94 { SVGA3D_ALPHA8 , "ALPHA8" }, 95 { SVGA3D_R_S10E5 , "R_S10E5" }, 96 { SVGA3D_R_S23E8 , "R_S23E8" }, 97 { SVGA3D_RG_S10E5 , "RG_S10E5" }, 98 { SVGA3D_RG_S23E8 , "RG_S23E8" }, 99 { SVGA3D_BUFFER , "BUFFER" }, 100 { SVGA3D_Z_D24X8 , "Z_D24X8" }, 101 { SVGA3D_V16U16 , "V16U16" }, 102 { SVGA3D_G16R16 , "G16R16" }, 103 { SVGA3D_A16B16G16R16 , "A16B16G16R16" }, 104 { SVGA3D_UYVY , "UYVY" }, 105 { SVGA3D_YUY2 , "YUY2" }, 106 { SVGA3D_NV12 , "NV12" }, 107 { SVGA3D_AYUV , "AYUV" }, 108 { SVGA3D_BC4_UNORM , "BC4_UNORM" }, 109 { SVGA3D_BC5_UNORM , "BC5_UNORM" }, 110 { SVGA3D_Z_DF16 , "Z_DF16" }, 111 { SVGA3D_Z_DF24 , "Z_DF24" }, 112 { SVGA3D_Z_D24S8_INT , "Z_D24S8_INT" }, 113 }; 114 VMSVGAINFOENUMMAP_MAKE(RT_NOTHING, g_SVGA3dSurfaceFormat2String, g_aSVGA3dSurfaceFormats, "SVGA3D_"); 115 116 117 118 #ifdef RT_OS_WINDOWS 50 119 51 120 52 /**
Note:
See TracChangeset
for help on using the changeset viewer.