CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!
Path: blob/master/libretro/libretro_d3d.h
Views: 1401
/* Copyright (C) 2010-2016 The RetroArch team1*2* ---------------------------------------------------------------------------------------------3* The following license statement only applies to this libretro API header (libretro_vulkan.h)4* ---------------------------------------------------------------------------------------------5*6* Permission is hereby granted, free of charge,7* to any person obtaining a copy of this software and associated documentation files (the8* "Software"),9* to deal in the Software without restriction, including without limitation the rights to10* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,11* and to permit persons to whom the Software is furnished to do so, subject to the following12* conditions:13*14* The above copyright notice and this permission notice shall be included in all copies or15* substantial portions of the Software.16*17* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,18* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,19* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.20* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER21* LIABILITY,22* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,23* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.24*/2526#ifndef LIBRETRO_DIRECT3D_H__27#define LIBRETRO_DIRECT3D_H__2829#include "libretro.h"3031#ifdef HAVE_D3D113233#include <d3d11.h>34#include <D3Dcompiler.h>3536#define RETRO_HW_RENDER_INTERFACE_D3D11_VERSION 13738struct retro_hw_render_interface_d3d1139{40/* Must be set to RETRO_HW_RENDER_INTERFACE_D3D11. */41enum retro_hw_render_interface_type interface_type;42/* Must be set to RETRO_HW_RENDER_INTERFACE_D3D11_VERSION. */43unsigned interface_version;4445/* Opaque handle to the d3d11 backend in the frontend46* which must be passed along to all function pointers47* in this interface.48*/49void* handle;50ID3D11Device *device;51ID3D11DeviceContext *context;52D3D_FEATURE_LEVEL featureLevel;53pD3DCompile D3DCompile;54};555657#endif5859#endif /* LIBRETRO_DIRECT3D_H__ */606162