mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:42:57 +00:00
[DXGI]
* Move some inclusions to the main header. * Set the default debugging channel globally through the main header. * Remove inclusions and definitions that already exist in the main header. * Improve header inclusions. * Improve the GUIDs situation. CORE-7716 svn path=/trunk/; revision=61723
This commit is contained in:
parent
f27d6ca001
commit
1c6e5a90d1
12 changed files with 35 additions and 54 deletions
|
@ -13,6 +13,7 @@ list(APPEND SOURCE
|
||||||
surface.c
|
surface.c
|
||||||
swapchain.c
|
swapchain.c
|
||||||
utils.c
|
utils.c
|
||||||
|
guid.c
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/dxgi.def)
|
${CMAKE_CURRENT_BINARY_DIR}/dxgi.def)
|
||||||
|
|
||||||
add_library(dxgi SHARED ${SOURCE} version.rc)
|
add_library(dxgi SHARED ${SOURCE} version.rc)
|
||||||
|
|
|
@ -17,13 +17,8 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
#include "wine/port.h"
|
|
||||||
|
|
||||||
#include "dxgi_private.h"
|
#include "dxgi_private.h"
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(dxgi);
|
|
||||||
|
|
||||||
static inline struct dxgi_adapter *impl_from_IWineDXGIAdapter(IWineDXGIAdapter *iface)
|
static inline struct dxgi_adapter *impl_from_IWineDXGIAdapter(IWineDXGIAdapter *iface)
|
||||||
{
|
{
|
||||||
return CONTAINING_RECORD(iface, struct dxgi_adapter, IWineDXGIAdapter_iface);
|
return CONTAINING_RECORD(iface, struct dxgi_adapter, IWineDXGIAdapter_iface);
|
||||||
|
|
|
@ -17,13 +17,8 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
#include "wine/port.h"
|
|
||||||
|
|
||||||
#include "dxgi_private.h"
|
#include "dxgi_private.h"
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(dxgi);
|
|
||||||
|
|
||||||
static inline struct dxgi_device *impl_from_IWineDXGIDevice(IWineDXGIDevice *iface)
|
static inline struct dxgi_device *impl_from_IWineDXGIDevice(IWineDXGIDevice *iface)
|
||||||
{
|
{
|
||||||
return CONTAINING_RECORD(iface, struct dxgi_device, IWineDXGIDevice_iface);
|
return CONTAINING_RECORD(iface, struct dxgi_device, IWineDXGIDevice_iface);
|
||||||
|
|
|
@ -17,14 +17,8 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
#include "wine/port.h"
|
|
||||||
|
|
||||||
#define DXGI_INIT_GUID
|
|
||||||
#include "dxgi_private.h"
|
#include "dxgi_private.h"
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(dxgi);
|
|
||||||
|
|
||||||
static CRITICAL_SECTION_DEBUG dxgi_cs_debug =
|
static CRITICAL_SECTION_DEBUG dxgi_cs_debug =
|
||||||
{
|
{
|
||||||
0, 0, &dxgi_cs,
|
0, 0, &dxgi_cs,
|
||||||
|
|
|
@ -19,26 +19,30 @@
|
||||||
#ifndef __WINE_DXGI_PRIVATE_H
|
#ifndef __WINE_DXGI_PRIVATE_H
|
||||||
#define __WINE_DXGI_PRIVATE_H
|
#define __WINE_DXGI_PRIVATE_H
|
||||||
|
|
||||||
|
#include <wine/config.h>
|
||||||
|
#include <wine/port.h>
|
||||||
|
|
||||||
|
#include <stdarg.h>
|
||||||
|
|
||||||
#define WIN32_NO_STATUS
|
#define WIN32_NO_STATUS
|
||||||
#define _INC_WINDOWS
|
#define _INC_WINDOWS
|
||||||
#define COM_NO_WINDOWS_H
|
#define COM_NO_WINDOWS_H
|
||||||
|
|
||||||
#include "wine/debug.h"
|
|
||||||
|
|
||||||
#define COBJMACROS
|
#define COBJMACROS
|
||||||
#include "winbase.h"
|
|
||||||
#include "wingdi.h"
|
|
||||||
#include "winuser.h"
|
|
||||||
#include "objbase.h"
|
|
||||||
#include "winnls.h"
|
|
||||||
|
|
||||||
#include "dxgi.h"
|
#include <windef.h>
|
||||||
#ifdef DXGI_INIT_GUID
|
#include <winbase.h>
|
||||||
#include "initguid.h"
|
#include <wingdi.h>
|
||||||
#endif
|
#include <winuser.h>
|
||||||
#include "wine/wined3d.h"
|
#include <objbase.h>
|
||||||
|
#include <winnls.h>
|
||||||
|
|
||||||
|
#include <wine/debug.h>
|
||||||
|
#include <wine/wined3d.h>
|
||||||
#include <wine/winedxgi.h>
|
#include <wine/winedxgi.h>
|
||||||
|
|
||||||
|
WINE_DEFAULT_DEBUG_CHANNEL(dxgi);
|
||||||
|
|
||||||
extern CRITICAL_SECTION dxgi_cs DECLSPEC_HIDDEN;
|
extern CRITICAL_SECTION dxgi_cs DECLSPEC_HIDDEN;
|
||||||
|
|
||||||
/* Layered device */
|
/* Layered device */
|
||||||
|
|
|
@ -17,13 +17,8 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
#include "wine/port.h"
|
|
||||||
|
|
||||||
#include "dxgi_private.h"
|
#include "dxgi_private.h"
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(dxgi);
|
|
||||||
|
|
||||||
static inline struct dxgi_factory *impl_from_IWineDXGIFactory(IWineDXGIFactory *iface)
|
static inline struct dxgi_factory *impl_from_IWineDXGIFactory(IWineDXGIFactory *iface)
|
||||||
{
|
{
|
||||||
return CONTAINING_RECORD(iface, struct dxgi_factory, IWineDXGIFactory_iface);
|
return CONTAINING_RECORD(iface, struct dxgi_factory, IWineDXGIFactory_iface);
|
||||||
|
|
17
reactos/dll/directx/wine/dxgi/guid.c
Normal file
17
reactos/dll/directx/wine/dxgi/guid.c
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
/* DO NOT USE THE PRECOMPILED HEADER FOR THIS FILE! */
|
||||||
|
|
||||||
|
#include <stdarg.h>
|
||||||
|
|
||||||
|
#define WIN32_NO_STATUS
|
||||||
|
#define _INC_WINDOWS
|
||||||
|
#define COM_NO_WINDOWS_H
|
||||||
|
|
||||||
|
#include <windef.h>
|
||||||
|
#include <winbase.h>
|
||||||
|
#include <wingdi.h>
|
||||||
|
#include <objbase.h>
|
||||||
|
#include <wine/wined3d.h>
|
||||||
|
#include <initguid.h>
|
||||||
|
#include <wine/winedxgi.h>
|
||||||
|
|
||||||
|
/* NO CODE HERE, THIS IS JUST REQUIRED FOR THE GUID DEFINITIONS */
|
|
@ -16,13 +16,8 @@
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
#include "wine/port.h"
|
|
||||||
|
|
||||||
#include "dxgi_private.h"
|
#include "dxgi_private.h"
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(dxgi);
|
|
||||||
|
|
||||||
static inline struct dxgi_output *impl_from_IDXGIOutput(IDXGIOutput *iface)
|
static inline struct dxgi_output *impl_from_IDXGIOutput(IDXGIOutput *iface)
|
||||||
{
|
{
|
||||||
return CONTAINING_RECORD(iface, struct dxgi_output, IDXGIOutput_iface);
|
return CONTAINING_RECORD(iface, struct dxgi_output, IDXGIOutput_iface);
|
||||||
|
|
|
@ -17,13 +17,8 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
#include "wine/port.h"
|
|
||||||
|
|
||||||
#include "dxgi_private.h"
|
#include "dxgi_private.h"
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(dxgi);
|
|
||||||
|
|
||||||
/* Inner IUnknown methods */
|
/* Inner IUnknown methods */
|
||||||
|
|
||||||
static inline struct dxgi_surface *impl_from_IUnknown(IUnknown *iface)
|
static inline struct dxgi_surface *impl_from_IUnknown(IUnknown *iface)
|
||||||
|
|
|
@ -17,13 +17,8 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
#include "wine/port.h"
|
|
||||||
|
|
||||||
#include "dxgi_private.h"
|
#include "dxgi_private.h"
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(dxgi);
|
|
||||||
|
|
||||||
static inline struct dxgi_swapchain *impl_from_IDXGISwapChain(IDXGISwapChain *iface)
|
static inline struct dxgi_swapchain *impl_from_IDXGISwapChain(IDXGISwapChain *iface)
|
||||||
{
|
{
|
||||||
return CONTAINING_RECORD(iface, struct dxgi_swapchain, IDXGISwapChain_iface);
|
return CONTAINING_RECORD(iface, struct dxgi_swapchain, IDXGISwapChain_iface);
|
||||||
|
|
|
@ -17,13 +17,8 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
#include "wine/port.h"
|
|
||||||
|
|
||||||
#include "dxgi_private.h"
|
#include "dxgi_private.h"
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(dxgi);
|
|
||||||
|
|
||||||
#define WINE_DXGI_TO_STR(x) case x: return #x
|
#define WINE_DXGI_TO_STR(x) case x: return #x
|
||||||
|
|
||||||
const char *debug_dxgi_format(DXGI_FORMAT format)
|
const char *debug_dxgi_format(DXGI_FORMAT format)
|
||||||
|
|
|
@ -23,4 +23,4 @@
|
||||||
#define WINE_PRODUCTVERSION 6,0,6000,16386
|
#define WINE_PRODUCTVERSION 6,0,6000,16386
|
||||||
#define WINE_PRODUCTVERSION_STR "6.0.6000.16386"
|
#define WINE_PRODUCTVERSION_STR "6.0.6000.16386"
|
||||||
|
|
||||||
#include "wine/wine_common_ver.rc"
|
#include <wine/wine_common_ver.rc>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue