VirtualBox

Changeset 94586 in vbox for trunk


Ignore:
Timestamp:
Apr 13, 2022 11:57:18 AM (3 years ago)
Author:
vboxsync
Message:

WDDM: allocation description structure in VBoxMPIf.h. bugref:9845

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/common/wddm/VBoxMPIf.h

    r94584 r94586  
    7070#endif
    7171
     72
     73#ifdef VBOX_WITH_VMSVGA3D_DX
     74/*
     75 * Structures for the new D3D user mode driver.
     76 */
     77#pragma pack(1) /* VMSVGA structures are '__packed'. */
     78#include <svga3d_reg.h>
     79#pragma pack()
     80
     81/* D3DDDI_ALLOCATIONINFO::pPrivateDriverData */
     82typedef enum VBOXDXALLOCATIONTYPE
     83{
     84    VBOXDXALLOCATIONTYPE_UNKNOWN = 0,
     85    VBOXDXALLOCATIONTYPE_SURFACE = 1,
     86    VBOXDXALLOCATIONTYPE_SHADERS = 2,
     87    VBOXDXALLOCATIONTYPE_MAX,
     88    VBOXDXALLOCATIONTYPE_32BIT = 0xFFFFFFFF
     89} VBOXDXALLOCATIONTYPE;
     90
     91/* Information for DxgkDdiCreateAllocation and for SVGA3dCmdDefine[GB]Surface. */
     92typedef struct VBOXDXALLOCATIONDESC
     93{
     94    VBOXDXALLOCATIONTYPE   enmAllocationType;
     95    uint32_t               cbAllocation;
     96    struct
     97    {
     98        SVGA3dSurfaceAllFlags surfaceFlags;
     99        SVGA3dSurfaceFormat format;
     100        uint32 numMipLevels;
     101        uint32 multisampleCount;
     102        SVGA3dMSPattern multisamplePattern;
     103        SVGA3dMSQualityLevel qualityLevel;
     104        SVGA3dTextureFilter autogenFilter;
     105        SVGA3dSize size;
     106        uint32 arraySize;
     107        uint32 bufferByteStride;
     108    } surfaceInfo;
     109} VBOXDXALLOCATIONDESC;
     110#endif /* VBOX_WITH_VMSVGA3D_DX */
    72111
    73112/* create allocation func */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette