Commit bb96aefa by Jamie Madill Committed by Commit Bot

GN: Componentize D3D back-ends.

This also isolates headers for D3D9 / D3D11 from each other. Bug: angleproject:3943 Change-Id: I04edbe7db68461ae4fc78ac7f9c22451debcb768 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2405807 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarJonah Ryan-Davis <jonahr@google.com> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent c99c22bb
......@@ -522,18 +522,20 @@ angle_source_set("angle_version") {
config("angle_backend_config") {
defines = []
if (angle_enable_d3d9) {
defines += [ "ANGLE_ENABLE_D3D9" ]
}
if (angle_enable_d3d11) {
defines += [ "ANGLE_ENABLE_D3D11" ]
}
if (angle_delegate_workers) {
defines += [ "ANGLE_DELEGATE_WORKERS" ]
}
configs = []
if (angle_enable_d3d11) {
configs += [ "src/libANGLE/renderer/d3d:angle_d3d11_backend_config" ]
}
if (angle_enable_d3d9) {
configs += [ "src/libANGLE/renderer/d3d:angle_d3d9_backend_config" ]
}
if (angle_enable_gl) {
configs += [ "src/libANGLE/renderer/gl:angle_gl_backend_config" ]
}
......@@ -556,9 +558,6 @@ config("libANGLE_config") {
defines = []
libs = []
ldflags = []
if (angle_enable_d3d9) {
ldflags += [ "/DELAYLOAD:d3d9.dll" ]
}
defines += [ "LIBANGLE_IMPLEMENTATION" ]
if (is_win) {
......@@ -656,15 +655,20 @@ angle_source_set("libANGLE_base") {
]
if (is_win) {
if (angle_enable_d3d9) {
libs += [ "delayimp.lib" ]
}
libs += [
"gdi32.lib",
"user32.lib",
]
}
if (angle_enable_d3d11) {
public_deps += [ "src/libANGLE/renderer/d3d:angle_d3d11_backend" ]
}
if (angle_enable_d3d9) {
public_deps += [ "src/libANGLE/renderer/d3d:angle_d3d9_backend" ]
}
if (angle_enable_gl) {
public_deps += [ "src/libANGLE/renderer/gl:angle_gl_backend" ]
}
......@@ -686,38 +690,6 @@ angle_source_set("libANGLE_base") {
suppressed_configs -= [ "//build/config/clang:find_bad_constructs" ]
}
# Shared D3D sources.
if (angle_enable_d3d9 || angle_enable_d3d11) {
sources += libangle_d3d_shared_sources
defines += [ "ANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES={ " + "\"d3dcompiler_47.dll\", \"d3dcompiler_46.dll\", \"d3dcompiler_43.dll\" }" ]
}
if (angle_enable_d3d9) {
sources += libangle_d3d9_sources
libs += [ "d3d9.lib" ]
}
if (angle_enable_d3d11) {
sources += libangle_d3d11_sources
if (angle_is_winuwp) {
sources += libangle_d3d11_winuwp_sources
} else {
sources += libangle_d3d11_win32_sources
}
libs += [ "dxguid.lib" ]
import("src/libANGLE/renderer/d3d/d3d11/d3d11_blit_shaders_autogen.gni")
sources += libangle_d3d11_blit_shaders
public_deps += [ ":angle_d3d_format_tables" ]
}
if (!angle_is_winuwp && (angle_enable_d3d11 || angle_enable_d3d9)) {
sources += libangle_d3d_win32_sources
}
if (is_mac) {
sources += libangle_mac_sources
}
......
{
"src/libANGLE/renderer/d3d/d3d11/Blit11Helper_autogen.inc":
"f69cf03a3d868a977fad9e9c0eb0652a",
"f0e02210fb6b4d83d8a8e9e15287aa15",
"src/libANGLE/renderer/d3d/d3d11/d3d11_blit_shaders_autogen.gni":
"329dbafc64b0cb578348819198abcfea",
"8b45b3db86b36ccf9ea0a29c1030c55f",
"src/libANGLE/renderer/d3d/d3d11/gen_blit11helper.py":
"704a82846928d3e21fc0794dff3a08f8"
"d751f6a9e7da62ad02344300df12eed4"
}
\ No newline at end of file
# Copyright 2020 The ANGLE Project Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# This file houses the build configuration for the ANGLE D3D back-ends.
import("../../../../gni/angle.gni")
assert(angle_enable_d3d11 || angle_enable_d3d9)
_d3d_shared_sources = [
"BufferD3D.cpp",
"BufferD3D.h",
"CompilerD3D.cpp",
"CompilerD3D.h",
"ContextD3D.h",
"DeviceD3D.cpp",
"DeviceD3D.h",
"DisplayD3D.cpp",
"DisplayD3D.h",
"DynamicHLSL.cpp",
"DynamicHLSL.h",
"DynamicImage2DHLSL.cpp",
"DynamicImage2DHLSL.h",
"EGLImageD3D.cpp",
"EGLImageD3D.h",
"FramebufferD3D.cpp",
"FramebufferD3D.h",
"HLSLCompiler.cpp",
"HLSLCompiler.h",
"ImageD3D.cpp",
"ImageD3D.h",
"IndexBuffer.cpp",
"IndexBuffer.h",
"IndexDataManager.cpp",
"IndexDataManager.h",
"NativeWindowD3D.cpp",
"NativeWindowD3D.h",
"ProgramD3D.cpp",
"ProgramD3D.h",
"RenderTargetD3D.cpp",
"RenderTargetD3D.h",
"RenderbufferD3D.cpp",
"RenderbufferD3D.h",
"RendererD3D.cpp",
"RendererD3D.h",
"SamplerD3D.h",
"ShaderD3D.cpp",
"ShaderD3D.h",
"ShaderExecutableD3D.cpp",
"ShaderExecutableD3D.h",
"SurfaceD3D.cpp",
"SurfaceD3D.h",
"SwapChainD3D.cpp",
"SwapChainD3D.h",
"TextureD3D.cpp",
"TextureD3D.h",
"TextureStorage.h",
"VertexBuffer.cpp",
"VertexBuffer.h",
"VertexDataManager.cpp",
"VertexDataManager.h",
"formatutilsD3D.h",
]
if (!angle_is_winuwp) {
_d3d_shared_sources += [
"../../../third_party/systeminfo/SystemInfo.cpp",
"../../../third_party/systeminfo/SystemInfo.h",
]
}
if (angle_enable_d3d9) {
_d3d9_backend_sources = [
"d3d9/Blit9.cpp",
"d3d9/Blit9.h",
"d3d9/Buffer9.cpp",
"d3d9/Buffer9.h",
"d3d9/Context9.cpp",
"d3d9/Context9.h",
"d3d9/DebugAnnotator9.cpp",
"d3d9/DebugAnnotator9.h",
"d3d9/Fence9.cpp",
"d3d9/Fence9.h",
"d3d9/Framebuffer9.cpp",
"d3d9/Framebuffer9.h",
"d3d9/Image9.cpp",
"d3d9/Image9.h",
"d3d9/IndexBuffer9.cpp",
"d3d9/IndexBuffer9.h",
"d3d9/NativeWindow9.cpp",
"d3d9/NativeWindow9.h",
"d3d9/Query9.cpp",
"d3d9/Query9.h",
"d3d9/RenderTarget9.cpp",
"d3d9/RenderTarget9.h",
"d3d9/Renderer9.cpp",
"d3d9/Renderer9.h",
"d3d9/ShaderCache.h",
"d3d9/ShaderExecutable9.cpp",
"d3d9/ShaderExecutable9.h",
"d3d9/StateManager9.cpp",
"d3d9/StateManager9.h",
"d3d9/SwapChain9.cpp",
"d3d9/SwapChain9.h",
"d3d9/TextureStorage9.cpp",
"d3d9/TextureStorage9.h",
"d3d9/VertexArray9.h",
"d3d9/VertexBuffer9.cpp",
"d3d9/VertexBuffer9.h",
"d3d9/VertexDeclarationCache.cpp",
"d3d9/VertexDeclarationCache.h",
"d3d9/formatutils9.cpp",
"d3d9/formatutils9.h",
"d3d9/renderer9_utils.cpp",
"d3d9/renderer9_utils.h",
"d3d9/shaders/compiled/componentmaskpremultps.h",
"d3d9/shaders/compiled/componentmaskps.h",
"d3d9/shaders/compiled/componentmaskunmultps.h",
"d3d9/shaders/compiled/luminancepremultps.h",
"d3d9/shaders/compiled/luminanceps.h",
"d3d9/shaders/compiled/luminanceunmultps.h",
"d3d9/shaders/compiled/passthroughps.h",
"d3d9/shaders/compiled/standardvs.h",
"d3d9/vertexconversion.h",
]
}
if (angle_enable_d3d11) {
_d3d11_backend_sources = [
"d3d11/Blit11.cpp",
"d3d11/Blit11.h",
"d3d11/Blit11Helper_autogen.inc",
"d3d11/Buffer11.cpp",
"d3d11/Buffer11.h",
"d3d11/Clear11.cpp",
"d3d11/Clear11.h",
"d3d11/Context11.cpp",
"d3d11/Context11.h",
"d3d11/DebugAnnotator11.cpp",
"d3d11/DebugAnnotator11.h",
"d3d11/ExternalImageSiblingImpl11.cpp",
"d3d11/ExternalImageSiblingImpl11.h",
"d3d11/Fence11.cpp",
"d3d11/Fence11.h",
"d3d11/Framebuffer11.cpp",
"d3d11/Framebuffer11.h",
"d3d11/Image11.cpp",
"d3d11/Image11.h",
"d3d11/IndexBuffer11.cpp",
"d3d11/IndexBuffer11.h",
"d3d11/InputLayoutCache.cpp",
"d3d11/InputLayoutCache.h",
"d3d11/MappedSubresourceVerifier11.cpp",
"d3d11/MappedSubresourceVerifier11.h",
"d3d11/NativeWindow11.h",
"d3d11/PixelTransfer11.cpp",
"d3d11/PixelTransfer11.h",
"d3d11/Program11.cpp",
"d3d11/Program11.h",
"d3d11/ProgramPipeline11.cpp",
"d3d11/ProgramPipeline11.h",
"d3d11/Query11.cpp",
"d3d11/Query11.h",
"d3d11/RenderStateCache.cpp",
"d3d11/RenderStateCache.h",
"d3d11/RenderTarget11.cpp",
"d3d11/RenderTarget11.h",
"d3d11/Renderer11.cpp",
"d3d11/Renderer11.h",
"d3d11/ResourceManager11.cpp",
"d3d11/ResourceManager11.h",
"d3d11/ShaderExecutable11.cpp",
"d3d11/ShaderExecutable11.h",
"d3d11/StateManager11.cpp",
"d3d11/StateManager11.h",
"d3d11/StreamProducerD3DTexture.cpp",
"d3d11/StreamProducerD3DTexture.h",
"d3d11/SwapChain11.cpp",
"d3d11/SwapChain11.h",
"d3d11/TextureStorage11.cpp",
"d3d11/TextureStorage11.h",
"d3d11/TransformFeedback11.cpp",
"d3d11/TransformFeedback11.h",
"d3d11/Trim11.cpp",
"d3d11/Trim11.h",
"d3d11/VertexArray11.cpp",
"d3d11/VertexArray11.h",
"d3d11/VertexBuffer11.cpp",
"d3d11/VertexBuffer11.h",
"d3d11/formatutils11.cpp",
"d3d11/formatutils11.h",
"d3d11/renderer11_utils.cpp",
"d3d11/renderer11_utils.h",
"d3d11/shaders/compiled/buffertotexture11_gs.h",
"d3d11/shaders/compiled/buffertotexture11_ps_4f.h",
"d3d11/shaders/compiled/buffertotexture11_ps_4i.h",
"d3d11/shaders/compiled/buffertotexture11_ps_4ui.h",
"d3d11/shaders/compiled/buffertotexture11_vs.h",
"d3d11/shaders/compiled/clear11_fl9vs.h",
"d3d11/shaders/compiled/clear11multiviewgs.h",
"d3d11/shaders/compiled/clear11multiviewvs.h",
"d3d11/shaders/compiled/clear11vs.h",
"d3d11/shaders/compiled/cleardepth11ps.h",
"d3d11/shaders/compiled/clearfloat11_fl9ps.h",
"d3d11/shaders/compiled/clearfloat11ps1.h",
"d3d11/shaders/compiled/clearfloat11ps2.h",
"d3d11/shaders/compiled/clearfloat11ps3.h",
"d3d11/shaders/compiled/clearfloat11ps4.h",
"d3d11/shaders/compiled/clearfloat11ps5.h",
"d3d11/shaders/compiled/clearfloat11ps6.h",
"d3d11/shaders/compiled/clearfloat11ps7.h",
"d3d11/shaders/compiled/clearfloat11ps8.h",
"d3d11/shaders/compiled/clearsint11ps1.h",
"d3d11/shaders/compiled/clearsint11ps2.h",
"d3d11/shaders/compiled/clearsint11ps3.h",
"d3d11/shaders/compiled/clearsint11ps4.h",
"d3d11/shaders/compiled/clearsint11ps5.h",
"d3d11/shaders/compiled/clearsint11ps6.h",
"d3d11/shaders/compiled/clearsint11ps7.h",
"d3d11/shaders/compiled/clearsint11ps8.h",
"d3d11/shaders/compiled/clearuint11ps1.h",
"d3d11/shaders/compiled/clearuint11ps2.h",
"d3d11/shaders/compiled/clearuint11ps3.h",
"d3d11/shaders/compiled/clearuint11ps4.h",
"d3d11/shaders/compiled/clearuint11ps5.h",
"d3d11/shaders/compiled/clearuint11ps6.h",
"d3d11/shaders/compiled/clearuint11ps7.h",
"d3d11/shaders/compiled/clearuint11ps8.h",
"d3d11/shaders/compiled/passthrough2d11vs.h",
"d3d11/shaders/compiled/passthrough3d11gs.h",
"d3d11/shaders/compiled/passthrough3d11vs.h",
"d3d11/shaders/compiled/passthroughdepth2d11ps.h",
"d3d11/shaders/compiled/passthroughrgba2dms11ps.h",
"d3d11/shaders/compiled/resolvecolor2dps.h",
"d3d11/shaders/compiled/resolvedepth11_ps.h",
"d3d11/shaders/compiled/resolvedepthstencil11_ps.h",
"d3d11/shaders/compiled/resolvedepthstencil11_vs.h",
"d3d11/shaders/compiled/resolvestencil11_ps.h",
"d3d11/shaders/compiled/swizzlef2darrayps.h",
"d3d11/shaders/compiled/swizzlef2dps.h",
"d3d11/shaders/compiled/swizzlef3dps.h",
"d3d11/shaders/compiled/swizzlei2darrayps.h",
"d3d11/shaders/compiled/swizzlei2dps.h",
"d3d11/shaders/compiled/swizzlei3dps.h",
"d3d11/shaders/compiled/swizzleui2darrayps.h",
"d3d11/shaders/compiled/swizzleui2dps.h",
"d3d11/shaders/compiled/swizzleui3dps.h",
"d3d11/texture_format_table.cpp",
"d3d11/texture_format_table.h",
"d3d11/texture_format_table_autogen.cpp",
"d3d11/texture_format_table_utils.h",
]
if (angle_is_winuwp) {
_d3d11_backend_sources += [
"d3d11/winrt/CoreWindowNativeWindow.cpp",
"d3d11/winrt/CoreWindowNativeWindow.h",
"d3d11/winrt/InspectableNativeWindow.cpp",
"d3d11/winrt/InspectableNativeWindow.h",
"d3d11/winrt/NativeWindow11WinRT.cpp",
"d3d11/winrt/NativeWindow11WinRT.h",
"d3d11/winrt/SwapChainPanelNativeWindow.cpp",
"d3d11/winrt/SwapChainPanelNativeWindow.h",
]
} else {
_d3d11_backend_sources += [
"d3d11/converged/CompositorNativeWindow11.cpp",
"d3d11/converged/CompositorNativeWindow11.h",
"d3d11/win32/NativeWindow11Win32.cpp",
"d3d11/win32/NativeWindow11Win32.h",
]
}
import("d3d11/d3d11_blit_shaders_autogen.gni")
_d3d11_backend_sources += libangle_d3d11_blit_shaders
}
config("angle_d3d_shared_config") {
defines = [ "ANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES={ " + "\"d3dcompiler_47.dll\", \"d3dcompiler_46.dll\", \"d3dcompiler_43.dll\" }" ]
}
angle_source_set("angle_d3d_shared") {
sources = _d3d_shared_sources
public_deps = [
"$angle_root:angle_d3d_format_tables",
"$angle_root:angle_gpu_info_util",
"$angle_root:angle_image_util",
"$angle_root:libANGLE_headers",
]
public_configs = [ ":angle_d3d_shared_config" ]
}
if (angle_enable_d3d9) {
config("angle_d3d9_backend_config") {
defines = [ "ANGLE_ENABLE_D3D9" ]
ldflags = [ "/DELAYLOAD:d3d9.dll" ]
}
angle_source_set("angle_d3d9_backend") {
sources = _d3d9_backend_sources
libs = [
"d3d9.lib",
"delayimp.lib",
]
public_deps = [ ":angle_d3d_shared" ]
public_configs = [ ":angle_d3d9_backend_config" ]
}
}
if (angle_enable_d3d11) {
config("angle_d3d11_backend_config") {
defines = [ "ANGLE_ENABLE_D3D11" ]
}
angle_source_set("angle_d3d11_backend") {
sources = _d3d11_backend_sources
libs = [ "dxguid.lib" ]
public_deps = [ ":angle_d3d_shared" ]
public_configs = [ ":angle_d3d11_backend_config" ]
}
}
......@@ -22,14 +22,6 @@
#include "libANGLE/renderer/d3d/SurfaceD3D.h"
#include "libANGLE/renderer/d3d/SwapChainD3D.h"
#if defined(ANGLE_ENABLE_D3D9)
# include "libANGLE/renderer/d3d/d3d9/Renderer9.h"
#endif // ANGLE_ENABLE_D3D9
#if defined(ANGLE_ENABLE_D3D11)
# include "libANGLE/renderer/d3d/d3d11/Renderer11.h"
#endif // ANGLE_ENABLE_D3D11
#if !defined(ANGLE_DEFAULT_D3D11)
// Enables use of the Direct3D 11 API for a default display, when available
# define ANGLE_DEFAULT_D3D11 1
......@@ -38,13 +30,7 @@
namespace rx
{
typedef RendererD3D *(*CreateRendererD3DFunction)(egl::Display *);
template <typename RendererType>
static RendererD3D *CreateTypedRendererD3D(egl::Display *display)
{
return new RendererType(display);
}
using CreateRendererD3DFunction = RendererD3D *(*)(egl::Display *);
egl::Error CreateRendererD3D(egl::Display *display, RendererD3D **outRenderer)
{
......@@ -75,28 +61,28 @@ egl::Error CreateRendererD3D(egl::Display *display, RendererD3D **outRenderer)
# if defined(ANGLE_ENABLE_D3D11)
if (addD3D11)
{
rendererCreationFunctions.push_back(CreateTypedRendererD3D<Renderer11>);
rendererCreationFunctions.push_back(CreateRenderer11);
}
# endif
# if defined(ANGLE_ENABLE_D3D9)
if (addD3D9)
{
rendererCreationFunctions.push_back(CreateTypedRendererD3D<Renderer9>);
rendererCreationFunctions.push_back(CreateRenderer9);
}
# endif
#else
# if defined(ANGLE_ENABLE_D3D9)
if (addD3D9)
{
rendererCreationFunctions.push_back(CreateTypedRendererD3D<Renderer9>);
rendererCreationFunctions.push_back(CreateRenderer9);
}
# endif
# if defined(ANGLE_ENABLE_D3D11)
if (addD3D11)
{
rendererCreationFunctions.push_back(CreateTypedRendererD3D<Renderer11>);
rendererCreationFunctions.push_back(CreateRenderer11);
}
# endif
#endif
......@@ -109,17 +95,17 @@ egl::Error CreateRendererD3D(egl::Display *display, RendererD3D **outRenderer)
// the definition of ANGLE_DEFAULT_D3D11
#if ANGLE_DEFAULT_D3D11
# if defined(ANGLE_ENABLE_D3D11)
rendererCreationFunctions.push_back(CreateTypedRendererD3D<Renderer11>);
rendererCreationFunctions.push_back(CreateRenderer11);
# endif
# if defined(ANGLE_ENABLE_D3D9)
rendererCreationFunctions.push_back(CreateTypedRendererD3D<Renderer9>);
rendererCreationFunctions.push_back(CreateRenderer9);
# endif
#else
# if defined(ANGLE_ENABLE_D3D9)
rendererCreationFunctions.push_back(CreateTypedRendererD3D<Renderer9>);
rendererCreationFunctions.push_back(CreateRenderer9);
# endif
# if defined(ANGLE_ENABLE_D3D11)
rendererCreationFunctions.push_back(CreateTypedRendererD3D<Renderer11>);
rendererCreationFunctions.push_back(CreateRenderer11);
# endif
#endif
}
......@@ -129,7 +115,7 @@ egl::Error CreateRendererD3D(egl::Display *display, RendererD3D **outRenderer)
#if defined(ANGLE_ENABLE_D3D11)
if (display->getDevice()->getType() == EGL_D3D11_DEVICE_ANGLE)
{
rendererCreationFunctions.push_back(CreateTypedRendererD3D<Renderer11>);
rendererCreationFunctions.push_back(CreateRenderer11);
}
#endif
}
......
......@@ -110,6 +110,64 @@ class DisplayD3D : public DisplayImpl, public d3d::Context
std::string mStoredErrorString;
};
// Possible reasons RendererD3D initialize can fail
enum D3D11InitError
{
// The renderer loaded successfully
D3D11_INIT_SUCCESS = 0,
// Failed to load the ANGLE & D3D compiler libraries
D3D11_INIT_COMPILER_ERROR,
// Failed to load a necessary DLL (non-compiler)
D3D11_INIT_MISSING_DEP,
// CreateDevice returned E_INVALIDARG
D3D11_INIT_CREATEDEVICE_INVALIDARG,
// CreateDevice failed with an error other than invalid arg
D3D11_INIT_CREATEDEVICE_ERROR,
// DXGI 1.2 required but not found
D3D11_INIT_INCOMPATIBLE_DXGI,
// Other initialization error
D3D11_INIT_OTHER_ERROR,
// CreateDevice returned E_FAIL
D3D11_INIT_CREATEDEVICE_FAIL,
// CreateDevice returned E_NOTIMPL
D3D11_INIT_CREATEDEVICE_NOTIMPL,
// CreateDevice returned E_OUTOFMEMORY
D3D11_INIT_CREATEDEVICE_OUTOFMEMORY,
// CreateDevice returned DXGI_ERROR_INVALID_CALL
D3D11_INIT_CREATEDEVICE_INVALIDCALL,
// CreateDevice returned DXGI_ERROR_SDK_COMPONENT_MISSING
D3D11_INIT_CREATEDEVICE_COMPONENTMISSING,
// CreateDevice returned DXGI_ERROR_WAS_STILL_DRAWING
D3D11_INIT_CREATEDEVICE_WASSTILLDRAWING,
// CreateDevice returned DXGI_ERROR_NOT_CURRENTLY_AVAILABLE
D3D11_INIT_CREATEDEVICE_NOTAVAILABLE,
// CreateDevice returned DXGI_ERROR_DEVICE_HUNG
D3D11_INIT_CREATEDEVICE_DEVICEHUNG,
// CreateDevice returned NULL
D3D11_INIT_CREATEDEVICE_NULL,
NUM_D3D11_INIT_ERRORS
};
enum D3D9InitError
{
D3D9_INIT_SUCCESS = 0,
// Failed to load the D3D or ANGLE compiler
D3D9_INIT_COMPILER_ERROR,
// Failed to load a necessary DLL
D3D9_INIT_MISSING_DEP,
// Device creation error
D3D9_INIT_CREATE_DEVICE_ERROR,
// System does not meet minimum shader spec
D3D9_INIT_UNSUPPORTED_VERSION,
// System does not support stretchrect from textures
D3D9_INIT_UNSUPPORTED_STRETCHRECT,
// A call returned out of memory or device lost
D3D9_INIT_OUT_OF_MEMORY,
// Other unspecified error
D3D9_INIT_OTHER_ERROR,
NUM_D3D9_INIT_ERRORS
};
} // namespace rx
#endif // LIBANGLE_RENDERER_D3D_DISPLAYD3D_H_
......@@ -440,6 +440,11 @@ class RendererD3D : public BufferFactoryD3D
unsigned int GetBlendSampleMask(const gl::State &glState, int samples);
bool InstancedPointSpritesActive(ProgramD3D *programD3D, gl::PrimitiveMode mode);
GLenum DefaultGLErrorCode(HRESULT hr);
// Define stubs so we don't need to include D3D9/D3D11 headers directly.
RendererD3D *CreateRenderer11(egl::Display *display);
RendererD3D *CreateRenderer9(egl::Display *display);
} // namespace rx
#endif // LIBANGLE_RENDERER_D3D_RENDERERD3D_H_
......@@ -16,7 +16,6 @@
#include "libANGLE/renderer/d3d/RenderTargetD3D.h"
#include "libANGLE/renderer/d3d/RendererD3D.h"
#include "libANGLE/renderer/d3d/SwapChainD3D.h"
#include "libANGLE/renderer/d3d/d3d11/formatutils11.h"
#include <EGL/eglext.h>
#include <tchar.h>
......
// GENERATED FILE - DO NOT EDIT.
// Generated by gen_blit11helper.py.
//
// Copyright 2019 The ANGLE Project Authors. All rights reserved.
// Copyright 2020 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
......
......@@ -4218,4 +4218,9 @@ angle::Result Renderer11::getIncompleteTexture(const gl::Context *context,
{
return GetImplAs<Context11>(context)->getIncompleteTexture(context, type, textureOut);
}
RendererD3D *CreateRenderer11(egl::Display *display)
{
return new Renderer11(display);
}
} // namespace rx
......@@ -72,44 +72,6 @@ enum
MAX_FRAGMENT_UNIFORM_VECTORS_D3D11 = 1024
};
// Possible reasons RendererD3D initialize can fail
enum D3D11InitError
{
// The renderer loaded successfully
D3D11_INIT_SUCCESS = 0,
// Failed to load the ANGLE & D3D compiler libraries
D3D11_INIT_COMPILER_ERROR,
// Failed to load a necessary DLL (non-compiler)
D3D11_INIT_MISSING_DEP,
// CreateDevice returned E_INVALIDARG
D3D11_INIT_CREATEDEVICE_INVALIDARG,
// CreateDevice failed with an error other than invalid arg
D3D11_INIT_CREATEDEVICE_ERROR,
// DXGI 1.2 required but not found
D3D11_INIT_INCOMPATIBLE_DXGI,
// Other initialization error
D3D11_INIT_OTHER_ERROR,
// CreateDevice returned E_FAIL
D3D11_INIT_CREATEDEVICE_FAIL,
// CreateDevice returned E_NOTIMPL
D3D11_INIT_CREATEDEVICE_NOTIMPL,
// CreateDevice returned E_OUTOFMEMORY
D3D11_INIT_CREATEDEVICE_OUTOFMEMORY,
// CreateDevice returned DXGI_ERROR_INVALID_CALL
D3D11_INIT_CREATEDEVICE_INVALIDCALL,
// CreateDevice returned DXGI_ERROR_SDK_COMPONENT_MISSING
D3D11_INIT_CREATEDEVICE_COMPONENTMISSING,
// CreateDevice returned DXGI_ERROR_WAS_STILL_DRAWING
D3D11_INIT_CREATEDEVICE_WASSTILLDRAWING,
// CreateDevice returned DXGI_ERROR_NOT_CURRENTLY_AVAILABLE
D3D11_INIT_CREATEDEVICE_NOTAVAILABLE,
// CreateDevice returned DXGI_ERROR_DEVICE_HUNG
D3D11_INIT_CREATEDEVICE_DEVICEHUNG,
// CreateDevice returned NULL
D3D11_INIT_CREATEDEVICE_NULL,
NUM_D3D11_INIT_ERRORS
};
class Renderer11 : public RendererD3D
{
public:
......
# GENERATED FILE - DO NOT EDIT.
# Generated by gen_blit11helper.py.
#
# Copyright 2019 The ANGLE Project Authors. All rights reserved.
# Copyright 2020 The ANGLE Project Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
......@@ -9,128 +9,128 @@
# List of generated blit shaders for inclusion in ANGLE's build process.
libangle_d3d11_blit_shaders = [
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughrgba2d11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughrgb2d11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughrg2d11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughr2d11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthrougha2d11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughlum2d11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughlumalpha2d11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughrgba2dui11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughrgba2di11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughrgb2dui11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughrgb2di11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughrg2dui11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughrg2di11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughr2dui11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughr2di11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_pm_rgba_2d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_um_rgba_2d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_pm_rgb_2d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_um_rgb_2d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftou_pt_rgba_2d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftou_pm_rgba_2d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftou_um_rgba_2d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftou_pt_rgb_2d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftou_pm_rgb_2d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftou_um_rgb_2d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_pm_luma_2d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_um_luma_2d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_pm_lumaalpha_2d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_um_lumaalpha_2d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughrgba2d_4444_11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_pm_rgba_4444_2d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_um_rgba_4444_2d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughrgb2d_565_11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_pm_rgb_565_2d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_um_rgb_565_2d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughrgba2d_5551_11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_pm_rgba_5551_2d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_um_rgba_5551_2d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughrgba3d11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughrgb3d11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughrg3d11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughr3d11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughlum3d11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughlumalpha3d11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughrgba3dui11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughrgba3di11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughrgb3dui11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughrgb3di11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughrg3dui11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughrg3di11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughr3dui11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughr3di11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_pm_rgba_3d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_um_rgba_3d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_pm_rgb_3d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_um_rgb_3d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftou_pt_rgba_3d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftou_pm_rgba_3d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftou_um_rgba_3d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftou_pt_rgb_3d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftou_pm_rgb_3d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftou_um_rgb_3d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftoi_pt_rgba_3d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftoi_pm_rgba_3d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftoi_um_rgba_3d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftoi_pt_rgb_3d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftoi_pm_rgb_3d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftoi_um_rgb_3d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_pm_luma_3d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_um_luma_3d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_pm_lumaalpha_3d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_um_lumaalpha_3d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughrgba3d_4444_11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_pm_rgba_4444_3d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_um_rgba_4444_3d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughrgb3d_565_11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_pm_rgb_565_3d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_um_rgb_565_3d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughrgba3d_5551_11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_pm_rgba_5551_3d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_um_rgba_5551_3d_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughrgba2darray11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughrgb2darray11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughrg2darray11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughr2darray11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughlum2darray11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughlumalpha2darray11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughrgba2darrayui11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughrgba2darrayi11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughrgb2darrayui11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughrgb2darrayi11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughrg2darrayui11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughrg2darrayi11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughr2darrayui11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughr2darrayi11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_pm_rgba_2darray_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_um_rgba_2darray_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_pm_rgb_2darray_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_um_rgb_2darray_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftou_pt_rgba_2darray_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftou_pm_rgba_2darray_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftou_um_rgba_2darray_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftou_pt_rgb_2darray_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftou_pm_rgb_2darray_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftou_um_rgb_2darray_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftoi_pt_rgba_2darray_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftoi_pm_rgba_2darray_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftoi_um_rgba_2darray_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftoi_pt_rgb_2darray_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftoi_pm_rgb_2darray_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftoi_um_rgb_2darray_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_pm_luma_2darray_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_um_luma_2darray_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_pm_lumaalpha_2darray_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_um_lumaalpha_2darray_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughrgba2darray_4444_11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_pm_rgba_4444_2darray_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_um_rgba_4444_2darray_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughrgb2darray_565_11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_pm_rgb_565_2darray_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_um_rgb_565_2darray_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughrgba2darray_5551_11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_pm_rgba_5551_2darray_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/multiplyalpha_ftof_um_rgba_5551_2darray_ps.h",
"d3d11/shaders/compiled/passthroughrgba2d11ps.h",
"d3d11/shaders/compiled/passthroughrgb2d11ps.h",
"d3d11/shaders/compiled/passthroughrg2d11ps.h",
"d3d11/shaders/compiled/passthroughr2d11ps.h",
"d3d11/shaders/compiled/passthrougha2d11ps.h",
"d3d11/shaders/compiled/passthroughlum2d11ps.h",
"d3d11/shaders/compiled/passthroughlumalpha2d11ps.h",
"d3d11/shaders/compiled/passthroughrgba2dui11ps.h",
"d3d11/shaders/compiled/passthroughrgba2di11ps.h",
"d3d11/shaders/compiled/passthroughrgb2dui11ps.h",
"d3d11/shaders/compiled/passthroughrgb2di11ps.h",
"d3d11/shaders/compiled/passthroughrg2dui11ps.h",
"d3d11/shaders/compiled/passthroughrg2di11ps.h",
"d3d11/shaders/compiled/passthroughr2dui11ps.h",
"d3d11/shaders/compiled/passthroughr2di11ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_pm_rgba_2d_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_um_rgba_2d_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_pm_rgb_2d_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_um_rgb_2d_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftou_pt_rgba_2d_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftou_pm_rgba_2d_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftou_um_rgba_2d_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftou_pt_rgb_2d_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftou_pm_rgb_2d_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftou_um_rgb_2d_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_pm_luma_2d_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_um_luma_2d_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_pm_lumaalpha_2d_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_um_lumaalpha_2d_ps.h",
"d3d11/shaders/compiled/passthroughrgba2d_4444_11ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_pm_rgba_4444_2d_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_um_rgba_4444_2d_ps.h",
"d3d11/shaders/compiled/passthroughrgb2d_565_11ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_pm_rgb_565_2d_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_um_rgb_565_2d_ps.h",
"d3d11/shaders/compiled/passthroughrgba2d_5551_11ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_pm_rgba_5551_2d_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_um_rgba_5551_2d_ps.h",
"d3d11/shaders/compiled/passthroughrgba3d11ps.h",
"d3d11/shaders/compiled/passthroughrgb3d11ps.h",
"d3d11/shaders/compiled/passthroughrg3d11ps.h",
"d3d11/shaders/compiled/passthroughr3d11ps.h",
"d3d11/shaders/compiled/passthroughlum3d11ps.h",
"d3d11/shaders/compiled/passthroughlumalpha3d11ps.h",
"d3d11/shaders/compiled/passthroughrgba3dui11ps.h",
"d3d11/shaders/compiled/passthroughrgba3di11ps.h",
"d3d11/shaders/compiled/passthroughrgb3dui11ps.h",
"d3d11/shaders/compiled/passthroughrgb3di11ps.h",
"d3d11/shaders/compiled/passthroughrg3dui11ps.h",
"d3d11/shaders/compiled/passthroughrg3di11ps.h",
"d3d11/shaders/compiled/passthroughr3dui11ps.h",
"d3d11/shaders/compiled/passthroughr3di11ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_pm_rgba_3d_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_um_rgba_3d_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_pm_rgb_3d_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_um_rgb_3d_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftou_pt_rgba_3d_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftou_pm_rgba_3d_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftou_um_rgba_3d_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftou_pt_rgb_3d_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftou_pm_rgb_3d_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftou_um_rgb_3d_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftoi_pt_rgba_3d_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftoi_pm_rgba_3d_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftoi_um_rgba_3d_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftoi_pt_rgb_3d_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftoi_pm_rgb_3d_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftoi_um_rgb_3d_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_pm_luma_3d_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_um_luma_3d_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_pm_lumaalpha_3d_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_um_lumaalpha_3d_ps.h",
"d3d11/shaders/compiled/passthroughrgba3d_4444_11ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_pm_rgba_4444_3d_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_um_rgba_4444_3d_ps.h",
"d3d11/shaders/compiled/passthroughrgb3d_565_11ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_pm_rgb_565_3d_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_um_rgb_565_3d_ps.h",
"d3d11/shaders/compiled/passthroughrgba3d_5551_11ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_pm_rgba_5551_3d_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_um_rgba_5551_3d_ps.h",
"d3d11/shaders/compiled/passthroughrgba2darray11ps.h",
"d3d11/shaders/compiled/passthroughrgb2darray11ps.h",
"d3d11/shaders/compiled/passthroughrg2darray11ps.h",
"d3d11/shaders/compiled/passthroughr2darray11ps.h",
"d3d11/shaders/compiled/passthroughlum2darray11ps.h",
"d3d11/shaders/compiled/passthroughlumalpha2darray11ps.h",
"d3d11/shaders/compiled/passthroughrgba2darrayui11ps.h",
"d3d11/shaders/compiled/passthroughrgba2darrayi11ps.h",
"d3d11/shaders/compiled/passthroughrgb2darrayui11ps.h",
"d3d11/shaders/compiled/passthroughrgb2darrayi11ps.h",
"d3d11/shaders/compiled/passthroughrg2darrayui11ps.h",
"d3d11/shaders/compiled/passthroughrg2darrayi11ps.h",
"d3d11/shaders/compiled/passthroughr2darrayui11ps.h",
"d3d11/shaders/compiled/passthroughr2darrayi11ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_pm_rgba_2darray_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_um_rgba_2darray_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_pm_rgb_2darray_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_um_rgb_2darray_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftou_pt_rgba_2darray_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftou_pm_rgba_2darray_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftou_um_rgba_2darray_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftou_pt_rgb_2darray_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftou_pm_rgb_2darray_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftou_um_rgb_2darray_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftoi_pt_rgba_2darray_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftoi_pm_rgba_2darray_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftoi_um_rgba_2darray_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftoi_pt_rgb_2darray_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftoi_pm_rgb_2darray_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftoi_um_rgb_2darray_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_pm_luma_2darray_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_um_luma_2darray_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_pm_lumaalpha_2darray_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_um_lumaalpha_2darray_ps.h",
"d3d11/shaders/compiled/passthroughrgba2darray_4444_11ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_pm_rgba_4444_2darray_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_um_rgba_4444_2darray_ps.h",
"d3d11/shaders/compiled/passthroughrgb2darray_565_11ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_pm_rgb_565_2darray_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_um_rgb_565_2darray_ps.h",
"d3d11/shaders/compiled/passthroughrgba2darray_5551_11ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_pm_rgba_5551_2darray_ps.h",
"d3d11/shaders/compiled/multiplyalpha_ftof_um_rgba_5551_2darray_ps.h",
]
......@@ -277,8 +277,8 @@ def get_shader_filenames():
continue
if len(blitshader) == 3:
filenames.append(
(" \"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/{0}\",").format(
blitshader[2].replace("*", dimension.lower())))
(" \"d3d11/shaders/compiled/{0}\",").format(blitshader[2].replace(
"*", dimension.lower())))
return filenames
......
......@@ -27,6 +27,7 @@
#include "libANGLE/formatutils.h"
#include "libANGLE/renderer/d3d/CompilerD3D.h"
#include "libANGLE/renderer/d3d/DeviceD3D.h"
#include "libANGLE/renderer/d3d/DisplayD3D.h"
#include "libANGLE/renderer/d3d/FramebufferD3D.h"
#include "libANGLE/renderer/d3d/IndexDataManager.h"
#include "libANGLE/renderer/d3d/ProgramD3D.h"
......@@ -3263,4 +3264,9 @@ angle::Result Renderer9::ensureVertexDataManagerInitialized(const gl::Context *c
return angle::Result::Continue;
}
RendererD3D *CreateRenderer9(egl::Display *display)
{
return new Renderer9(display);
}
} // namespace rx
......@@ -44,26 +44,6 @@ struct ClearParameters;
struct D3DUniform;
struct TranslatedAttribute;
enum D3D9InitError
{
D3D9_INIT_SUCCESS = 0,
// Failed to load the D3D or ANGLE compiler
D3D9_INIT_COMPILER_ERROR,
// Failed to load a necessary DLL
D3D9_INIT_MISSING_DEP,
// Device creation error
D3D9_INIT_CREATE_DEVICE_ERROR,
// System does not meet minimum shader spec
D3D9_INIT_UNSUPPORTED_VERSION,
// System does not support stretchrect from textures
D3D9_INIT_UNSUPPORTED_STRETCHRECT,
// A call returned out of memory or device lost
D3D9_INIT_OUT_OF_MEMORY,
// Other unspecified error
D3D9_INIT_OTHER_ERROR,
NUM_D3D9_INIT_ERRORS
};
class Renderer9 : public RendererD3D
{
public:
......
......@@ -455,263 +455,6 @@ libangle_sources = [
"src/libANGLE/validationGL46.cpp",
]
libangle_d3d_shared_sources = [
"src/libANGLE/renderer/d3d/BufferD3D.cpp",
"src/libANGLE/renderer/d3d/BufferD3D.h",
"src/libANGLE/renderer/d3d/CompilerD3D.cpp",
"src/libANGLE/renderer/d3d/CompilerD3D.h",
"src/libANGLE/renderer/d3d/ContextD3D.h",
"src/libANGLE/renderer/d3d/DeviceD3D.cpp",
"src/libANGLE/renderer/d3d/DeviceD3D.h",
"src/libANGLE/renderer/d3d/DisplayD3D.cpp",
"src/libANGLE/renderer/d3d/DisplayD3D.h",
"src/libANGLE/renderer/d3d/DynamicHLSL.cpp",
"src/libANGLE/renderer/d3d/DynamicHLSL.h",
"src/libANGLE/renderer/d3d/DynamicImage2DHLSL.cpp",
"src/libANGLE/renderer/d3d/DynamicImage2DHLSL.h",
"src/libANGLE/renderer/d3d/EGLImageD3D.cpp",
"src/libANGLE/renderer/d3d/EGLImageD3D.h",
"src/libANGLE/renderer/d3d/FramebufferD3D.cpp",
"src/libANGLE/renderer/d3d/FramebufferD3D.h",
"src/libANGLE/renderer/d3d/HLSLCompiler.cpp",
"src/libANGLE/renderer/d3d/HLSLCompiler.h",
"src/libANGLE/renderer/d3d/ImageD3D.cpp",
"src/libANGLE/renderer/d3d/ImageD3D.h",
"src/libANGLE/renderer/d3d/IndexBuffer.cpp",
"src/libANGLE/renderer/d3d/IndexBuffer.h",
"src/libANGLE/renderer/d3d/IndexDataManager.cpp",
"src/libANGLE/renderer/d3d/IndexDataManager.h",
"src/libANGLE/renderer/d3d/NativeWindowD3D.cpp",
"src/libANGLE/renderer/d3d/NativeWindowD3D.h",
"src/libANGLE/renderer/d3d/ProgramD3D.cpp",
"src/libANGLE/renderer/d3d/ProgramD3D.h",
"src/libANGLE/renderer/d3d/RenderTargetD3D.cpp",
"src/libANGLE/renderer/d3d/RenderTargetD3D.h",
"src/libANGLE/renderer/d3d/RenderbufferD3D.cpp",
"src/libANGLE/renderer/d3d/RenderbufferD3D.h",
"src/libANGLE/renderer/d3d/RendererD3D.cpp",
"src/libANGLE/renderer/d3d/RendererD3D.h",
"src/libANGLE/renderer/d3d/SamplerD3D.h",
"src/libANGLE/renderer/d3d/ShaderD3D.cpp",
"src/libANGLE/renderer/d3d/ShaderD3D.h",
"src/libANGLE/renderer/d3d/ShaderExecutableD3D.cpp",
"src/libANGLE/renderer/d3d/ShaderExecutableD3D.h",
"src/libANGLE/renderer/d3d/SurfaceD3D.cpp",
"src/libANGLE/renderer/d3d/SurfaceD3D.h",
"src/libANGLE/renderer/d3d/SwapChainD3D.cpp",
"src/libANGLE/renderer/d3d/SwapChainD3D.h",
"src/libANGLE/renderer/d3d/TextureD3D.cpp",
"src/libANGLE/renderer/d3d/TextureD3D.h",
"src/libANGLE/renderer/d3d/TextureStorage.h",
"src/libANGLE/renderer/d3d/VertexBuffer.cpp",
"src/libANGLE/renderer/d3d/VertexBuffer.h",
"src/libANGLE/renderer/d3d/VertexDataManager.cpp",
"src/libANGLE/renderer/d3d/VertexDataManager.h",
"src/libANGLE/renderer/d3d/formatutilsD3D.h",
]
libangle_d3d9_sources = [
"src/libANGLE/renderer/d3d/d3d9/Blit9.cpp",
"src/libANGLE/renderer/d3d/d3d9/Blit9.h",
"src/libANGLE/renderer/d3d/d3d9/Buffer9.cpp",
"src/libANGLE/renderer/d3d/d3d9/Buffer9.h",
"src/libANGLE/renderer/d3d/d3d9/Context9.cpp",
"src/libANGLE/renderer/d3d/d3d9/Context9.h",
"src/libANGLE/renderer/d3d/d3d9/DebugAnnotator9.cpp",
"src/libANGLE/renderer/d3d/d3d9/DebugAnnotator9.h",
"src/libANGLE/renderer/d3d/d3d9/Fence9.cpp",
"src/libANGLE/renderer/d3d/d3d9/Fence9.h",
"src/libANGLE/renderer/d3d/d3d9/Framebuffer9.cpp",
"src/libANGLE/renderer/d3d/d3d9/Framebuffer9.h",
"src/libANGLE/renderer/d3d/d3d9/Image9.cpp",
"src/libANGLE/renderer/d3d/d3d9/Image9.h",
"src/libANGLE/renderer/d3d/d3d9/IndexBuffer9.cpp",
"src/libANGLE/renderer/d3d/d3d9/IndexBuffer9.h",
"src/libANGLE/renderer/d3d/d3d9/NativeWindow9.cpp",
"src/libANGLE/renderer/d3d/d3d9/NativeWindow9.h",
"src/libANGLE/renderer/d3d/d3d9/Query9.cpp",
"src/libANGLE/renderer/d3d/d3d9/Query9.h",
"src/libANGLE/renderer/d3d/d3d9/RenderTarget9.cpp",
"src/libANGLE/renderer/d3d/d3d9/RenderTarget9.h",
"src/libANGLE/renderer/d3d/d3d9/Renderer9.cpp",
"src/libANGLE/renderer/d3d/d3d9/Renderer9.h",
"src/libANGLE/renderer/d3d/d3d9/ShaderCache.h",
"src/libANGLE/renderer/d3d/d3d9/ShaderExecutable9.cpp",
"src/libANGLE/renderer/d3d/d3d9/ShaderExecutable9.h",
"src/libANGLE/renderer/d3d/d3d9/StateManager9.cpp",
"src/libANGLE/renderer/d3d/d3d9/StateManager9.h",
"src/libANGLE/renderer/d3d/d3d9/SwapChain9.cpp",
"src/libANGLE/renderer/d3d/d3d9/SwapChain9.h",
"src/libANGLE/renderer/d3d/d3d9/TextureStorage9.cpp",
"src/libANGLE/renderer/d3d/d3d9/TextureStorage9.h",
"src/libANGLE/renderer/d3d/d3d9/VertexArray9.h",
"src/libANGLE/renderer/d3d/d3d9/VertexBuffer9.cpp",
"src/libANGLE/renderer/d3d/d3d9/VertexBuffer9.h",
"src/libANGLE/renderer/d3d/d3d9/VertexDeclarationCache.cpp",
"src/libANGLE/renderer/d3d/d3d9/VertexDeclarationCache.h",
"src/libANGLE/renderer/d3d/d3d9/formatutils9.cpp",
"src/libANGLE/renderer/d3d/d3d9/formatutils9.h",
"src/libANGLE/renderer/d3d/d3d9/renderer9_utils.cpp",
"src/libANGLE/renderer/d3d/d3d9/renderer9_utils.h",
"src/libANGLE/renderer/d3d/d3d9/shaders/compiled/componentmaskpremultps.h",
"src/libANGLE/renderer/d3d/d3d9/shaders/compiled/componentmaskps.h",
"src/libANGLE/renderer/d3d/d3d9/shaders/compiled/componentmaskunmultps.h",
"src/libANGLE/renderer/d3d/d3d9/shaders/compiled/luminancepremultps.h",
"src/libANGLE/renderer/d3d/d3d9/shaders/compiled/luminanceps.h",
"src/libANGLE/renderer/d3d/d3d9/shaders/compiled/luminanceunmultps.h",
"src/libANGLE/renderer/d3d/d3d9/shaders/compiled/passthroughps.h",
"src/libANGLE/renderer/d3d/d3d9/shaders/compiled/standardvs.h",
"src/libANGLE/renderer/d3d/d3d9/vertexconversion.h",
]
libangle_d3d11_sources = [
"src/libANGLE/renderer/d3d/d3d11/Blit11.cpp",
"src/libANGLE/renderer/d3d/d3d11/Blit11.h",
"src/libANGLE/renderer/d3d/d3d11/Blit11Helper_autogen.inc",
"src/libANGLE/renderer/d3d/d3d11/Buffer11.cpp",
"src/libANGLE/renderer/d3d/d3d11/Buffer11.h",
"src/libANGLE/renderer/d3d/d3d11/Clear11.cpp",
"src/libANGLE/renderer/d3d/d3d11/Clear11.h",
"src/libANGLE/renderer/d3d/d3d11/Context11.cpp",
"src/libANGLE/renderer/d3d/d3d11/Context11.h",
"src/libANGLE/renderer/d3d/d3d11/DebugAnnotator11.cpp",
"src/libANGLE/renderer/d3d/d3d11/DebugAnnotator11.h",
"src/libANGLE/renderer/d3d/d3d11/ExternalImageSiblingImpl11.cpp",
"src/libANGLE/renderer/d3d/d3d11/ExternalImageSiblingImpl11.h",
"src/libANGLE/renderer/d3d/d3d11/Fence11.cpp",
"src/libANGLE/renderer/d3d/d3d11/Fence11.h",
"src/libANGLE/renderer/d3d/d3d11/Framebuffer11.cpp",
"src/libANGLE/renderer/d3d/d3d11/Framebuffer11.h",
"src/libANGLE/renderer/d3d/d3d11/Image11.cpp",
"src/libANGLE/renderer/d3d/d3d11/Image11.h",
"src/libANGLE/renderer/d3d/d3d11/IndexBuffer11.cpp",
"src/libANGLE/renderer/d3d/d3d11/IndexBuffer11.h",
"src/libANGLE/renderer/d3d/d3d11/InputLayoutCache.cpp",
"src/libANGLE/renderer/d3d/d3d11/InputLayoutCache.h",
"src/libANGLE/renderer/d3d/d3d11/MappedSubresourceVerifier11.cpp",
"src/libANGLE/renderer/d3d/d3d11/MappedSubresourceVerifier11.h",
"src/libANGLE/renderer/d3d/d3d11/NativeWindow11.h",
"src/libANGLE/renderer/d3d/d3d11/PixelTransfer11.cpp",
"src/libANGLE/renderer/d3d/d3d11/PixelTransfer11.h",
"src/libANGLE/renderer/d3d/d3d11/Program11.cpp",
"src/libANGLE/renderer/d3d/d3d11/Program11.h",
"src/libANGLE/renderer/d3d/d3d11/ProgramPipeline11.cpp",
"src/libANGLE/renderer/d3d/d3d11/ProgramPipeline11.h",
"src/libANGLE/renderer/d3d/d3d11/Query11.cpp",
"src/libANGLE/renderer/d3d/d3d11/Query11.h",
"src/libANGLE/renderer/d3d/d3d11/RenderStateCache.cpp",
"src/libANGLE/renderer/d3d/d3d11/RenderStateCache.h",
"src/libANGLE/renderer/d3d/d3d11/RenderTarget11.cpp",
"src/libANGLE/renderer/d3d/d3d11/RenderTarget11.h",
"src/libANGLE/renderer/d3d/d3d11/Renderer11.cpp",
"src/libANGLE/renderer/d3d/d3d11/Renderer11.h",
"src/libANGLE/renderer/d3d/d3d11/ResourceManager11.cpp",
"src/libANGLE/renderer/d3d/d3d11/ResourceManager11.h",
"src/libANGLE/renderer/d3d/d3d11/ShaderExecutable11.cpp",
"src/libANGLE/renderer/d3d/d3d11/ShaderExecutable11.h",
"src/libANGLE/renderer/d3d/d3d11/StateManager11.cpp",
"src/libANGLE/renderer/d3d/d3d11/StateManager11.h",
"src/libANGLE/renderer/d3d/d3d11/StreamProducerD3DTexture.cpp",
"src/libANGLE/renderer/d3d/d3d11/StreamProducerD3DTexture.h",
"src/libANGLE/renderer/d3d/d3d11/SwapChain11.cpp",
"src/libANGLE/renderer/d3d/d3d11/SwapChain11.h",
"src/libANGLE/renderer/d3d/d3d11/TextureStorage11.cpp",
"src/libANGLE/renderer/d3d/d3d11/TextureStorage11.h",
"src/libANGLE/renderer/d3d/d3d11/TransformFeedback11.cpp",
"src/libANGLE/renderer/d3d/d3d11/TransformFeedback11.h",
"src/libANGLE/renderer/d3d/d3d11/Trim11.cpp",
"src/libANGLE/renderer/d3d/d3d11/Trim11.h",
"src/libANGLE/renderer/d3d/d3d11/VertexArray11.cpp",
"src/libANGLE/renderer/d3d/d3d11/VertexArray11.h",
"src/libANGLE/renderer/d3d/d3d11/VertexBuffer11.cpp",
"src/libANGLE/renderer/d3d/d3d11/VertexBuffer11.h",
"src/libANGLE/renderer/d3d/d3d11/formatutils11.cpp",
"src/libANGLE/renderer/d3d/d3d11/formatutils11.h",
"src/libANGLE/renderer/d3d/d3d11/renderer11_utils.cpp",
"src/libANGLE/renderer/d3d/d3d11/renderer11_utils.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/buffertotexture11_gs.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/buffertotexture11_ps_4f.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/buffertotexture11_ps_4i.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/buffertotexture11_ps_4ui.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/buffertotexture11_vs.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/clear11_fl9vs.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/clear11multiviewgs.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/clear11multiviewvs.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/clear11vs.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/cleardepth11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/clearfloat11_fl9ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/clearfloat11ps1.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/clearfloat11ps2.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/clearfloat11ps3.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/clearfloat11ps4.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/clearfloat11ps5.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/clearfloat11ps6.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/clearfloat11ps7.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/clearfloat11ps8.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/clearsint11ps1.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/clearsint11ps2.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/clearsint11ps3.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/clearsint11ps4.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/clearsint11ps5.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/clearsint11ps6.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/clearsint11ps7.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/clearsint11ps8.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/clearuint11ps1.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/clearuint11ps2.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/clearuint11ps3.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/clearuint11ps4.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/clearuint11ps5.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/clearuint11ps6.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/clearuint11ps7.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/clearuint11ps8.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthrough2d11vs.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthrough3d11gs.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthrough3d11vs.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughdepth2d11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/passthroughrgba2dms11ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/resolvecolor2dps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/resolvedepth11_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/resolvedepthstencil11_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/resolvedepthstencil11_vs.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/resolvestencil11_ps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/swizzlef2darrayps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/swizzlef2dps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/swizzlef3dps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/swizzlei2darrayps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/swizzlei2dps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/swizzlei3dps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/swizzleui2darrayps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/swizzleui2dps.h",
"src/libANGLE/renderer/d3d/d3d11/shaders/compiled/swizzleui3dps.h",
"src/libANGLE/renderer/d3d/d3d11/texture_format_table.cpp",
"src/libANGLE/renderer/d3d/d3d11/texture_format_table.h",
"src/libANGLE/renderer/d3d/d3d11/texture_format_table_autogen.cpp",
"src/libANGLE/renderer/d3d/d3d11/texture_format_table_utils.h",
]
libangle_d3d11_win32_sources = [
"src/libANGLE/renderer/d3d/d3d11/converged/CompositorNativeWindow11.cpp",
"src/libANGLE/renderer/d3d/d3d11/converged/CompositorNativeWindow11.h",
"src/libANGLE/renderer/d3d/d3d11/win32/NativeWindow11Win32.cpp",
"src/libANGLE/renderer/d3d/d3d11/win32/NativeWindow11Win32.h",
]
libangle_d3d_win32_sources = [
"src/third_party/systeminfo/SystemInfo.cpp",
"src/third_party/systeminfo/SystemInfo.h",
]
libangle_d3d11_winuwp_sources = [
"src/libANGLE/renderer/d3d/d3d11/winrt/CoreWindowNativeWindow.cpp",
"src/libANGLE/renderer/d3d/d3d11/winrt/CoreWindowNativeWindow.h",
"src/libANGLE/renderer/d3d/d3d11/winrt/InspectableNativeWindow.cpp",
"src/libANGLE/renderer/d3d/d3d11/winrt/InspectableNativeWindow.h",
"src/libANGLE/renderer/d3d/d3d11/winrt/NativeWindow11WinRT.cpp",
"src/libANGLE/renderer/d3d/d3d11/winrt/NativeWindow11WinRT.h",
"src/libANGLE/renderer/d3d/d3d11/winrt/SwapChainPanelNativeWindow.cpp",
"src/libANGLE/renderer/d3d/d3d11/winrt/SwapChainPanelNativeWindow.h",
]
libangle_mac_sources = [ "src/libANGLE/renderer/driver_utils_mac.mm" ]
# The frame capture headers are always visible to libANGLE.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment