mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-12-13 00:17:21 +00:00
61 lines
2.1 KiB
C
61 lines
2.1 KiB
C
/* Copyright (C) 2010-2016 The RetroArch team
|
|
*
|
|
* ---------------------------------------------------------------------------------------------
|
|
* The following license statement only applies to this libretro API header (libretro_vulkan.h)
|
|
* ---------------------------------------------------------------------------------------------
|
|
*
|
|
* Permission is hereby granted, free of charge,
|
|
* to any person obtaining a copy of this software and associated documentation files (the
|
|
* "Software"),
|
|
* to deal in the Software without restriction, including without limitation the rights to
|
|
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
|
|
* and to permit persons to whom the Software is furnished to do so, subject to the following
|
|
* conditions:
|
|
*
|
|
* The above copyright notice and this permission notice shall be included in all copies or
|
|
* substantial portions of the Software.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
|
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
* LIABILITY,
|
|
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
*/
|
|
|
|
#ifndef LIBRETRO_DIRECT3D_H__
|
|
#define LIBRETRO_DIRECT3D_H__
|
|
|
|
#include "libretro.h"
|
|
|
|
#ifdef HAVE_D3D11
|
|
|
|
#include <d3d11.h>
|
|
#include <D3Dcompiler.h>
|
|
|
|
#define RETRO_HW_RENDER_INTERFACE_D3D11_VERSION 1
|
|
|
|
struct retro_hw_render_interface_d3d11
|
|
{
|
|
/* Must be set to RETRO_HW_RENDER_INTERFACE_D3D11. */
|
|
enum retro_hw_render_interface_type interface_type;
|
|
/* Must be set to RETRO_HW_RENDER_INTERFACE_D3D11_VERSION. */
|
|
unsigned interface_version;
|
|
|
|
/* Opaque handle to the d3d11 backend in the frontend
|
|
* which must be passed along to all function pointers
|
|
* in this interface.
|
|
*/
|
|
void* handle;
|
|
ID3D11Device *device;
|
|
ID3D11DeviceContext *context;
|
|
D3D_FEATURE_LEVEL featureLevel;
|
|
pD3DCompile D3DCompile;
|
|
};
|
|
|
|
|
|
#endif
|
|
|
|
#endif /* LIBRETRO_DIRECT3D_H__ */
|