import brl.blitz
import pub.win32
import brl.system
DXGI_CPU_ACCESS_NONE%=0
DXGI_CPU_ACCESS_DYNAMIC%=1
DXGI_CPU_ACCESS_READ_WRITE%=2
DXGI_CPU_ACCESS_SCRATCH%=3
DXGI_CPU_ACCESS_FIELD%=15
DXGI_USAGE_SHADER_INPUT%%=16:Long
DXGI_USAGE_RENDER_TARGET_OUTPUT%%=32:Long
DXGI_USAGE_BACK_BUFFER%%=64:Long
DXGI_USAGE_SHARED%%=128:Long
DXGI_USAGE_READ_ONLY%%=256:Long
DXGI_USAGE_DISCARD_ON_PRESENT%%=512:Long
DXGI_USAGE_UNORDERED_ACCESS%%=1024:Long
DXGI_MWA_NO_WINDOW_CHANGES%=1
DXGI_MWA_NO_ALT_ENTER%=2
DXGI_MWA_NO_PRINT_SCREEN%=4
DXGI_MWA_VALID%=7
DXGI_SWAP_EFFECT_DISCARD%=0
DXGI_SWAP_EFFECT_SEQUENTIAL%=1
DXGI_MODE_SCALING_UNSPECIFIED%=0
DXGI_MODE_SCALING_CENTERED%=1
DXGI_MODE_SCALING_STRETCHED%=2
DXGI_MODE_SCANLINE_ORDER_UNSPECIFIED%=0
DXGI_MODE_SCANLINE_ORDER_PROGRESSIVE%=1
DXGI_MODE_SCANLINE_ORDER_UPPER_FIELD_FIRST%=2
DXGI_MODE_SCANLINE_ORDER_LOWER_FIELD_FIRST%=3
DXGI_FORMAT_UNKNOWN%=0
DXGI_FORMAT_R32G32B32A32_TYPELESS%=1
DXGI_FORMAT_R32G32B32A32_FLOAT%=2
DXGI_FORMAT_R32G32B32A32_UINT%=3
DXGI_FORMAT_R32G32B32A32_SINT%=4
DXGI_FORMAT_R32G32B32_TYPELESS%=5
DXGI_FORMAT_R32G32B32_FLOAT%=6
DXGI_FORMAT_R32G32B32_UINT%=7
DXGI_FORMAT_R32G32B32_SINT%=8
DXGI_FORMAT_R16G16B16A16_TYPELESS%=9
DXGI_FORMAT_R16G16B16A16_FLOAT%=10
DXGI_FORMAT_R16G16B16A16_UNORM%=11
DXGI_FORMAT_R16G16B16A16_UINT%=12
DXGI_FORMAT_R16G16B16A16_SNORM%=13
DXGI_FORMAT_R16G16B16A16_SINT%=14
DXGI_FORMAT_R32G32_TYPELESS%=15
DXGI_FORMAT_R32G32_FLOAT%=16
DXGI_FORMAT_R32G32_UINT%=17
DXGI_FORMAT_R32G32_SINT%=18
DXGI_FORMAT_R32G8X24_TYPELESS%=19
DXGI_FORMAT_D32_FLOAT_S8X24_UINT%=20
DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS%=21
DXGI_FORMAT_X32_TYPELESS_G8X24_UINT%=22
DXGI_FORMAT_R10G10B10A2_TYPELESS%=23
DXGI_FORMAT_R10G10B10A2_UNORM%=24
DXGI_FORMAT_R10G10B10A2_UINT%=25
DXGI_FORMAT_R11G11B10_FLOAT%=26
DXGI_FORMAT_R8G8B8A8_TYPELESS%=27
DXGI_FORMAT_R8G8B8A8_UNORM%=28
DXGI_FORMAT_R8G8B8A8_UNORM_SRGB%=29
DXGI_FORMAT_R8G8B8A8_UINT%=30
DXGI_FORMAT_R8G8B8A8_SNORM%=31
DXGI_FORMAT_R8G8B8A8_SINT%=32
DXGI_FORMAT_R16G16_TYPELESS%=33
DXGI_FORMAT_R16G16_FLOAT%=34
DXGI_FORMAT_R16G16_UNORM%=35
DXGI_FORMAT_R16G16_UINT%=36
DXGI_FORMAT_R16G16_SNORM%=37
DXGI_FORMAT_R16G16_SINT%=38
DXGI_FORMAT_R32_TYPELESS%=39
DXGI_FORMAT_D32_FLOAT%=40
DXGI_FORMAT_R32_FLOAT%=41
DXGI_FORMAT_R32_UINT%=42
DXGI_FORMAT_R32_SINT%=43
DXGI_FORMAT_R24G8_TYPELESS%=44
DXGI_FORMAT_D24_UNORM_S8_UINT%=45
DXGI_FORMAT_R24_UNORM_X8_TYPELESS%=46
DXGI_FORMAT_X24_TYPELESS_G8_UINT%=47
DXGI_FORMAT_R8G8_TYPELESS%=48
DXGI_FORMAT_R8G8_UNORM%=49
DXGI_FORMAT_R8G8_UINT%=50
DXGI_FORMAT_R8G8_SNORM%=51
DXGI_FORMAT_R8G8_SINT%=52
DXGI_FORMAT_R16_TYPELESS%=53
DXGI_FORMAT_R16_FLOAT%=54
DXGI_FORMAT_D16_UNORM%=55
DXGI_FORMAT_R16_UNORM%=56
DXGI_FORMAT_R16_UINT%=57
DXGI_FORMAT_R16_SNORM%=58
DXGI_FORMAT_R16_SINT%=59
DXGI_FORMAT_R8_TYPELESS%=60
DXGI_FORMAT_R8_UNORM%=61
DXGI_FORMAT_R8_UINT%=62
DXGI_FORMAT_R8_SNORM%=63
DXGI_FORMAT_R8_SINT%=64
DXGI_FORMAT_A8_UNORM%=65
DXGI_FORMAT_R1_UNORM%=66
DXGI_FORMAT_R9G9B9E5_SHAREDEXP%=67
DXGI_FORMAT_R8G8_B8G8_UNORM%=68
DXGI_FORMAT_G8R8_G8B8_UNORM%=69
DXGI_FORMAT_BC1_TYPELESS%=70
DXGI_FORMAT_BC1_UNORM%=71
DXGI_FORMAT_BC1_UNORM_SRGB%=72
DXGI_FORMAT_BC2_TYPELESS%=73
DXGI_FORMAT_BC2_UNORM%=74
DXGI_FORMAT_BC2_UNORM_SRGB%=75
DXGI_FORMAT_BC3_TYPELESS%=76
DXGI_FORMAT_BC3_UNORM%=77
DXGI_FORMAT_BC3_UNORM_SRGB%=78
DXGI_FORMAT_BC4_TYPELESS%=79
DXGI_FORMAT_BC4_UNORM%=80
DXGI_FORMAT_BC4_SNORM%=81
DXGI_FORMAT_BC5_TYPELESS%=82
DXGI_FORMAT_BC5_UNORM%=83
DXGI_FORMAT_BC5_SNORM%=84
DXGI_FORMAT_B5G6R5_UNORM%=85
DXGI_FORMAT_B5G5R5A1_UNORM%=86
DXGI_FORMAT_B8G8R8A8_UNORM%=87
DXGI_FORMAT_B8G8R8X8_UNORM%=88
DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM%=89
DXGI_FORMAT_B8G8R8A8_TYPELESS%=90
DXGI_FORMAT_B8G8R8A8_UNORM_SRGB%=91
DXGI_FORMAT_B8G8R8X8_TYPELESS%=92
DXGI_FORMAT_B8G8R8X8_UNORM_SRGB%=93
DXGI_FORMAT_BC6H_TYPELESS%=94
DXGI_FORMAT_BC6H_UF16%=95
DXGI_FORMAT_BC6H_SF16%=96
DXGI_FORMAT_BC7_TYPELESS%=97
DXGI_FORMAT_BC7_UNORM%=98
DXGI_FORMAT_BC7_UNORM_SRGB%=99
DXGI_FORMAT_FORCE_UINT%=-1
DXGI_SWAP_CHAIN_FLAG_NONPREROTATED%=1
DXGI_SWAP_CHAIN_FLAG_ALLOW_MODE_SWITCH%=2
DXGI_SWAP_CHAIN_FLAG_GDI_COMPATIBLE%=4
DXGI_MAX_SWAP_CHAIN_BUFFERS%=16
DXGI_PRESENT_TEST%=1
DXGI_PRESENT_DO_NOT_SEQUENCE%=2
DXGI_PRESENT_RESTART%=4
DXGI_ENUM_MODES_INTERLACED%=1
DXGI_ENUM_MODES_SCALING%=2
DXGI_MODE_DESC^Object{
.Width%&
.Height%&
.RefreshRate_Numerator%&
.RefreshRate_Denominator%&
.Format%&
.ScanlineOrdering%&
.Scaling%&
-New%()="_srs_directx11_DXGI_MODE_DESC_New"
-Delete%()="_srs_directx11_DXGI_MODE_DESC_Delete"
}="srs_directx11_DXGI_MODE_DESC"
DXGI_FRAME_STATISTICS^Object{
.PresentCount%&
.PresentRefreshCount%&
.SyncRefreshCount%&
.SyncQPCTime%%&
.SyncGPUTime%%&
-New%()="_srs_directx11_DXGI_FRAME_STATISTICS_New"
-Delete%()="_srs_directx11_DXGI_FRAME_STATISTICS_Delete"
}="srs_directx11_DXGI_FRAME_STATISTICS"
DXGI_ADAPTER_DESC^Object{
.Desc0@@&
.Desc1%&
.Desc2%&
.Desc3%&
.Desc4%&
.Desc5%&
.Desc6%&
.Desc7%&
.Desc8%&
.Desc9%&
.Desc10%&
.Desc11%&
.Desc12%&
.Desc13%&
.Desc14%&
.Desc15%&
.Desc16%&
.Desc17%&
.Desc18%&
.Desc19%&
.Desc20%&
.Desc21%&
.Desc22%&
.Desc23%&
.Desc24%&
.Desc25%&
.Desc26%&
.Desc27%&
.Desc28%&
.Desc29%&
.Desc30%&
.Desc31%&
.Desc32%&
.Desc33%&
.Desc34%&
.Desc35%&
.Desc36%&
.Desc37%&
.Desc38%&
.Desc39%&
.Desc40%&
.Desc41%&
.Desc42%&
.Desc43%&
.Desc44%&
.Desc45%&
.Desc46%&
.Desc47%&
.Desc48%&
.Desc49%&
.Desc50%&
.Desc51%&
.Desc52%&
.Desc53%&
.Desc54%&
.Desc55%&
.Desc56%&
.Desc57%&
.Desc58%&
.Desc59%&
.Desc60%&
.Desc61%&
.Desc62%&
.Desc63%&
.VendorID%&
.DeviceID%&
.SubSysID%&
.Revision%&
.DedicatedVideoMemory%&
.DedicatedSystemMemory%&
.SharedSystemMemory%&
.AdapterLuidLow%&
.AdapterLuidHigh%%&
-New%()="_srs_directx11_DXGI_ADAPTER_DESC_New"
-Delete%()="_srs_directx11_DXGI_ADAPTER_DESC_Delete"
-Description$()="_srs_directx11_DXGI_ADAPTER_DESC_Description"
}="srs_directx11_DXGI_ADAPTER_DESC"
DXGI_OUTPUT_DESC^Object{
.DeviceName0@@&
.DeviceName1%&
.DeviceName2%&
.DeviceName3%&
.DeviceName4%&
.DeviceName5%&
.DeviceName6%&
.DeviceName7%&
.DeviceName8@@&
.DeviceName9@@&
.DeviceName10@@&
.DeviceName11@@&
.DeviceName12@@&
.DeviceName13@@&
.DeviceName14@@&
.DeviceName15@@&
.DeviceName16@@&
.DeviceName17@@&
.DeviceName18@@&
.DeviceName19@@&
.DeviceName20@@&
.DeviceName21@@&
.DeviceName22@@&
.DeviceName23@@&
.DeviceName24@@&
.DeviceName25@@&
.DeviceName26@@&
.DeviceName27@@&
.DeviceName28@@&
.DeviceName29@@&
.DeviceName30@@&
.DeviceName31@@&
.DesktopCoordinates_Left%&
.DesktopCoordinates_Top%&
.DesktopCoordinates_Right%&
.DesktopCoordinates_Bottom%&
.AttachedToDesktop%&
.Rotation%&
.HMonitor%&
-New%()="_srs_directx11_DXGI_OUTPUT_DESC_New"
-Delete%()="_srs_directx11_DXGI_OUTPUT_DESC_Delete"
-DeviceName$()="_srs_directx11_DXGI_OUTPUT_DESC_DeviceName"
}="srs_directx11_DXGI_OUTPUT_DESC"
DXGI_SHARED_RESOURCE^Object{
-New%()="_srs_directx11_DXGI_SHARED_RESOURCE_New"
-Delete%()="_srs_directx11_DXGI_SHARED_RESOURCE_Delete"
}="srs_directx11_DXGI_SHARED_RESOURCE"
DXGI_RESIDENCY^Object{
-New%()="_srs_directx11_DXGI_RESIDENCY_New"
-Delete%()="_srs_directx11_DXGI_RESIDENCY_Delete"
}="srs_directx11_DXGI_RESIDENCY"
DXGI_SURFACE_DESC^Object{
-New%()="_srs_directx11_DXGI_SURFACE_DESC_New"
-Delete%()="_srs_directx11_DXGI_SURFACE_DESC_Delete"
}="srs_directx11_DXGI_SURFACE_DESC"
DXGI_SWAP_EFFECT^Object{
-New%()="_srs_directx11_DXGI_SWAP_EFFECT_New"
-Delete%()="_srs_directx11_DXGI_SWAP_EFFECT_Delete"
}="srs_directx11_DXGI_SWAP_EFFECT"
DXGI_SWAP_CHAIN_FLAG^Object{
-New%()="_srs_directx11_DXGI_SWAP_CHAIN_FLAG_New"
-Delete%()="_srs_directx11_DXGI_SWAP_CHAIN_FLAG_Delete"
}="srs_directx11_DXGI_SWAP_CHAIN_FLAG"
DXGI_SWAP_CHAIN_DESC^Object{
.BufferDesc_Width%&
.BufferDesc_Height%&
.BufferDesc_RefreshRate_Numerator%&
.BufferDesc_RefreshRate_Denominator%&
.BufferDesc_Format%&
.BufferDesc_ScanlineOrdering%&
.BufferDesc_Scaling%&
.SampleDesc_Count%&
.SampleDesc_Quality%&
.BufferUsage%&
.BufferCount%&
.OutputWindow%&
.Windowed%&
.SwapEffect%&
.Flags%&
-New%()="_srs_directx11_DXGI_SWAP_CHAIN_DESC_New"
-Delete%()="_srs_directx11_DXGI_SWAP_CHAIN_DESC_Delete"
}="srs_directx11_DXGI_SWAP_CHAIN_DESC"
IDXGIObject^IUnknown{
-SetPrivateData%(Name@*,DataSize%,pData@*)S="SetPrivateData@12"
-SetPrivateDataInterface%(Name@*,pUnknown@*)S="SetPrivateDataInterface@8"
-GetPrivateData%(Name@*,pDataSize% Var,pData@*)S="GetPrivateData@12"
-GetParent%(riid@*,ppParent:IUnknown Var)S="GetParent@8"
}E=0
IDXGIDeviceSubObject^IDXGIObject{
-GetDevice%()S="GetDevice@0"
}E=0
IDXGIResource^IDXGIDeviceSubObject{
-GetSharedHandle%()S="GetSharedHandle@0"
-GetUsage%()S="GetUsage@0"
-SetEvictionPriority%()S="SetEvictionPriority@0"
-GetEvictionPriority%()S="GetEvictionPriority@0"
}E=0
IDXGIKeyedMutex^IDXGIDeviceSubObject{
-AcquireSync%()S="AcquireSync@0"
-ReleaseSync%()S="ReleaseSync@0"
}E=0
IDXGISurface^IDXGIDeviceSubObject{
-GetDesc%()S="GetDesc@0"
-Map%()S="Map@0"
-UnMap%()S="UnMap@0"
}E=0
IDXGISurface1^IDXGISurface{
-GetDC%()S="GetDC@0"
-ReleaseDC%()S="ReleaseDC@0"
}E=0
IDXGIAdapter^IDXGIObject{
-EnumOutputs%(Output%,ppOutput:IDXGIOutput Var)S="EnumOutputs@8"
-GetDesc%(pDesc@*)S="GetDesc@4"
-CheckInterfaceSupport%(InterfaceName@*,pUMDVersion@*)S="CheckInterfaceSupport@8"
}E=0
IDXGIOutput^IDXGIObject{
-GetDesc%(pDesc@*)S="GetDesc@4"
-GetDisplayModeList%(EnumFormat%,Flags%,pNumModes% Var,pDesc@*)S="GetDisplayModeList@16"
-FindClosestMatchMode%(pModeToMatch@*,pClosestMatch@*,pConcernedDevice@*)S="FindClosestMatchMode@12"
-WaitForVBlank%()S="WaitForVBlank@0"
-TakeOwnership%(pDevice@*,Exclusive%)S="TakeOwnership@8"
-ReleaseOwnership%()S="ReleaseOwnership@0"
-GetGammaControlCapabilities%(pGammaCaps@*)S="GetGammaControlCapabilities@4"
-SetGammaControl%(pArray@*)S="SetGammaControl@4"
-GetGammaControl%(pArray@*)S="GetGammaControl@4"
-SetDisplaySurface%(pScanoutSurface@*)S="SetDisplaySurface@4"
-GetDisplaySurfaceData%(pDestination@*)S="GetDisplaySurfaceData@4"
-GetFrameStatistics%(pStats@*)S="GetFrameStatistics@4"
}E=0
IDXGISwapChain^IDXGIDeviceSubObject{
-Present%(SyncInterval%,Flags%)S="Present@8"
-GetBuffer%(Buffer%,riid@*,ppSurface:IUnknown Var)S="GetBuffer@12"
-SetFullscreenState%(FullScreen%,pTarget@*)S="SetFullscreenState@8"
-GetFullscreenState%(pFullScreen% Var,ppTarget:IDXGIOutput Var)S="GetFullscreenState@8"
-GetDesc%(pDesc@*)S="GetDesc@4"
-ResizeBuffers%(BufferCount%,Width%,Hieght%,NewFormat%,SwapChainFlags%)S="ResizeBuffers@20"
-ResizeTarget%(pNewTargetParameters@*)S="ResizeTarget@4"
-GetContainingOutput%(ppOutput:IDXGIOutput Var)S="GetContainingOutput@4"
-GetFrameStatistics%(pStats@*)S="GetFrameStatistics@4"
-GetLastPresentCount%(pLastPresentCount% Var)S="GetLastPresentCount@4"
}E=0
IDXGIFactory^IDXGIObject{
-EnumAdapters%(Adapter%,ppAdapter:IDXGIAdapter Var)S="EnumAdapters@8"
-MakeWindowAssociation%(WindowHandle%,Flags%)S="MakeWindowAssociation@8"
-GetWindowAssociation%(pWindowHandle% Var)S="GetWindowAssociation@4"
-CreateSwapChain%(pDevice@*,pDesc@*,ppSwapChain:IDXGISwapChain Var)S="CreateSwapChain@12"
-CreateSoftwareAdapter%(Module_%,ppAdapter:IDXGIAdapter Var)S="CreateSoftwareAdapter@8"
}E=0
IDXGIDevice^IDXGIObject{
-GetAdapter%()S="GetAdapter@0"
-CreateSurface%()S="CreateSurface@0"
-QueryResourceResidency%()S="QueryResourceResidency@0"
-SetGPUThreadPriority%()S="SetGPUThreadPriority@0"
-GetGPUThreadPriority%()S="GetGPUThreadPriority@0"
}E=0
IDXGIFactory1^IDXGIFactory{
-EnumAdapters1%()S="EnumAdapters1@0"
-IsCurrent%()S="IsCurrent@0"
}E=0
IDXGIAdapter1^IDXGIAdapter{
-GetDesc1%()S="GetDesc1@0"
}E=0
IDXGIDevice1^IDXGIDevice{
-SetMaximumFrameLatency%()S="SetMaximumFrameLatency@0"
-GetMaximumFrameLatency%()S="GetMaximumFrameLatency@0"
}E=0
_DXGI%&=mem("srs_directx11__DXGI")
IID_IDXGIFactory%&[]&=mem:p("srs_directx11_IID_IDXGIFactory")
IID_IDXGIAdapter%&[]&=mem:p("srs_directx11_IID_IDXGIAdapter")
IID_IDXGIDevice%&[]&=mem:p("srs_directx11_IID_IDXGIDevice")
CreateDXGIFactory%(riid@*,ppFactory:IDXGIFactory Var)S&=mem:p("srs_directx11_CreateDXGIFactory")
