1# Copyright 2022 The ANGLE Project Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5import("../../../../gni/angle.gni") 6 7d3d_shared_sources = [ 8 "BufferD3D.cpp", 9 "BufferD3D.h", 10 "CompilerD3D.cpp", 11 "CompilerD3D.h", 12 "ContextD3D.h", 13 "DisplayD3D.cpp", 14 "DisplayD3D.h", 15 "DynamicHLSL.cpp", 16 "DynamicHLSL.h", 17 "DynamicImage2DHLSL.cpp", 18 "DynamicImage2DHLSL.h", 19 "EGLImageD3D.cpp", 20 "EGLImageD3D.h", 21 "FramebufferD3D.cpp", 22 "FramebufferD3D.h", 23 "HLSLCompiler.cpp", 24 "HLSLCompiler.h", 25 "ImageD3D.cpp", 26 "ImageD3D.h", 27 "IndexBuffer.cpp", 28 "IndexBuffer.h", 29 "IndexDataManager.cpp", 30 "IndexDataManager.h", 31 "NativeWindowD3D.cpp", 32 "NativeWindowD3D.h", 33 "ProgramD3D.cpp", 34 "ProgramD3D.h", 35 "ProgramExecutableD3D.cpp", 36 "ProgramExecutableD3D.h", 37 "RenderTargetD3D.cpp", 38 "RenderTargetD3D.h", 39 "RenderbufferD3D.cpp", 40 "RenderbufferD3D.h", 41 "RendererD3D.cpp", 42 "RendererD3D.h", 43 "SamplerD3D.h", 44 "ShaderD3D.cpp", 45 "ShaderD3D.h", 46 "ShaderExecutableD3D.cpp", 47 "ShaderExecutableD3D.h", 48 "SurfaceD3D.cpp", 49 "SurfaceD3D.h", 50 "SwapChainD3D.cpp", 51 "SwapChainD3D.h", 52 "TextureD3D.cpp", 53 "TextureD3D.h", 54 "TextureStorage.h", 55 "VertexBuffer.cpp", 56 "VertexBuffer.h", 57 "VertexDataManager.cpp", 58 "VertexDataManager.h", 59 "driver_utils_d3d.cpp", 60 "driver_utils_d3d.h", 61 "formatutilsD3D.h", 62] 63 64if (angle_enable_d3d9) { 65 d3d9_backend_sources = [ 66 "d3d9/Blit9.cpp", 67 "d3d9/Blit9.h", 68 "d3d9/Buffer9.cpp", 69 "d3d9/Buffer9.h", 70 "d3d9/Context9.cpp", 71 "d3d9/Context9.h", 72 "d3d9/DebugAnnotator9.cpp", 73 "d3d9/DebugAnnotator9.h", 74 "d3d9/Device9.cpp", 75 "d3d9/Device9.h", 76 "d3d9/Fence9.cpp", 77 "d3d9/Fence9.h", 78 "d3d9/Framebuffer9.cpp", 79 "d3d9/Framebuffer9.h", 80 "d3d9/Image9.cpp", 81 "d3d9/Image9.h", 82 "d3d9/IndexBuffer9.cpp", 83 "d3d9/IndexBuffer9.h", 84 "d3d9/NativeWindow9.cpp", 85 "d3d9/NativeWindow9.h", 86 "d3d9/Query9.cpp", 87 "d3d9/Query9.h", 88 "d3d9/RenderTarget9.cpp", 89 "d3d9/RenderTarget9.h", 90 "d3d9/Renderer9.cpp", 91 "d3d9/Renderer9.h", 92 "d3d9/ShaderCache.h", 93 "d3d9/ShaderExecutable9.cpp", 94 "d3d9/ShaderExecutable9.h", 95 "d3d9/StateManager9.cpp", 96 "d3d9/StateManager9.h", 97 "d3d9/SwapChain9.cpp", 98 "d3d9/SwapChain9.h", 99 "d3d9/TextureStorage9.cpp", 100 "d3d9/TextureStorage9.h", 101 "d3d9/VertexArray9.h", 102 "d3d9/VertexBuffer9.cpp", 103 "d3d9/VertexBuffer9.h", 104 "d3d9/VertexDeclarationCache.cpp", 105 "d3d9/VertexDeclarationCache.h", 106 "d3d9/formatutils9.cpp", 107 "d3d9/formatutils9.h", 108 "d3d9/renderer9_utils.cpp", 109 "d3d9/renderer9_utils.h", 110 "d3d9/shaders/compiled/componentmaskpremultps.h", 111 "d3d9/shaders/compiled/componentmaskps.h", 112 "d3d9/shaders/compiled/componentmaskunmultps.h", 113 "d3d9/shaders/compiled/luminancepremultps.h", 114 "d3d9/shaders/compiled/luminanceps.h", 115 "d3d9/shaders/compiled/luminanceunmultps.h", 116 "d3d9/shaders/compiled/passthroughps.h", 117 "d3d9/shaders/compiled/standardvs.h", 118 "d3d9/vertexconversion.h", 119 ] 120} 121 122if (angle_enable_d3d11) { 123 d3d11_backend_sources = [ 124 "d3d11/Blit11.cpp", 125 "d3d11/Blit11.h", 126 "d3d11/Blit11Helper_autogen.inc", 127 "d3d11/Buffer11.cpp", 128 "d3d11/Buffer11.h", 129 "d3d11/Clear11.cpp", 130 "d3d11/Clear11.h", 131 "d3d11/Context11.cpp", 132 "d3d11/Context11.h", 133 "d3d11/DebugAnnotator11.cpp", 134 "d3d11/DebugAnnotator11.h", 135 "d3d11/Device11.cpp", 136 "d3d11/Device11.h", 137 "d3d11/ExternalImageSiblingImpl11.cpp", 138 "d3d11/ExternalImageSiblingImpl11.h", 139 "d3d11/Fence11.cpp", 140 "d3d11/Fence11.h", 141 "d3d11/Framebuffer11.cpp", 142 "d3d11/Framebuffer11.h", 143 "d3d11/Image11.cpp", 144 "d3d11/Image11.h", 145 "d3d11/IndexBuffer11.cpp", 146 "d3d11/IndexBuffer11.h", 147 "d3d11/InputLayoutCache.cpp", 148 "d3d11/InputLayoutCache.h", 149 "d3d11/MappedSubresourceVerifier11.cpp", 150 "d3d11/MappedSubresourceVerifier11.h", 151 "d3d11/NativeWindow11.h", 152 "d3d11/PixelTransfer11.cpp", 153 "d3d11/PixelTransfer11.h", 154 "d3d11/Program11.cpp", 155 "d3d11/Program11.h", 156 "d3d11/ProgramPipeline11.cpp", 157 "d3d11/ProgramPipeline11.h", 158 "d3d11/Query11.cpp", 159 "d3d11/Query11.h", 160 "d3d11/RenderStateCache.cpp", 161 "d3d11/RenderStateCache.h", 162 "d3d11/RenderTarget11.cpp", 163 "d3d11/RenderTarget11.h", 164 "d3d11/Renderer11.cpp", 165 "d3d11/Renderer11.h", 166 "d3d11/ResourceManager11.cpp", 167 "d3d11/ResourceManager11.h", 168 "d3d11/ShaderExecutable11.cpp", 169 "d3d11/ShaderExecutable11.h", 170 "d3d11/StateManager11.cpp", 171 "d3d11/StateManager11.h", 172 "d3d11/StreamProducerD3DTexture.cpp", 173 "d3d11/StreamProducerD3DTexture.h", 174 "d3d11/SwapChain11.cpp", 175 "d3d11/SwapChain11.h", 176 "d3d11/TextureStorage11.cpp", 177 "d3d11/TextureStorage11.h", 178 "d3d11/TransformFeedback11.cpp", 179 "d3d11/TransformFeedback11.h", 180 "d3d11/Trim11.cpp", 181 "d3d11/Trim11.h", 182 "d3d11/VertexArray11.cpp", 183 "d3d11/VertexArray11.h", 184 "d3d11/VertexBuffer11.cpp", 185 "d3d11/VertexBuffer11.h", 186 "d3d11/formatutils11.cpp", 187 "d3d11/formatutils11.h", 188 "d3d11/renderer11_utils.cpp", 189 "d3d11/renderer11_utils.h", 190 "d3d11/shaders/compiled/buffertotexture11_gs.h", 191 "d3d11/shaders/compiled/buffertotexture11_ps_4f.h", 192 "d3d11/shaders/compiled/buffertotexture11_ps_4i.h", 193 "d3d11/shaders/compiled/buffertotexture11_ps_4ui.h", 194 "d3d11/shaders/compiled/buffertotexture11_vs.h", 195 "d3d11/shaders/compiled/clear11multiviewgs.h", 196 "d3d11/shaders/compiled/clear11multiviewvs.h", 197 "d3d11/shaders/compiled/clear11vs.h", 198 "d3d11/shaders/compiled/cleardepth11ps.h", 199 "d3d11/shaders/compiled/clearfloat11ps1.h", 200 "d3d11/shaders/compiled/clearfloat11ps2.h", 201 "d3d11/shaders/compiled/clearfloat11ps3.h", 202 "d3d11/shaders/compiled/clearfloat11ps4.h", 203 "d3d11/shaders/compiled/clearfloat11ps5.h", 204 "d3d11/shaders/compiled/clearfloat11ps6.h", 205 "d3d11/shaders/compiled/clearfloat11ps7.h", 206 "d3d11/shaders/compiled/clearfloat11ps8.h", 207 "d3d11/shaders/compiled/clearsint11ps1.h", 208 "d3d11/shaders/compiled/clearsint11ps2.h", 209 "d3d11/shaders/compiled/clearsint11ps3.h", 210 "d3d11/shaders/compiled/clearsint11ps4.h", 211 "d3d11/shaders/compiled/clearsint11ps5.h", 212 "d3d11/shaders/compiled/clearsint11ps6.h", 213 "d3d11/shaders/compiled/clearsint11ps7.h", 214 "d3d11/shaders/compiled/clearsint11ps8.h", 215 "d3d11/shaders/compiled/clearuint11ps1.h", 216 "d3d11/shaders/compiled/clearuint11ps2.h", 217 "d3d11/shaders/compiled/clearuint11ps3.h", 218 "d3d11/shaders/compiled/clearuint11ps4.h", 219 "d3d11/shaders/compiled/clearuint11ps5.h", 220 "d3d11/shaders/compiled/clearuint11ps6.h", 221 "d3d11/shaders/compiled/clearuint11ps7.h", 222 "d3d11/shaders/compiled/clearuint11ps8.h", 223 "d3d11/shaders/compiled/passthrough2d11vs.h", 224 "d3d11/shaders/compiled/passthrough3d11gs.h", 225 "d3d11/shaders/compiled/passthrough3d11vs.h", 226 "d3d11/shaders/compiled/passthroughdepth2d11ps.h", 227 "d3d11/shaders/compiled/passthroughrgba2dms11ps.h", 228 "d3d11/shaders/compiled/resolvecolor2dps.h", 229 "d3d11/shaders/compiled/resolvedepth11_ps.h", 230 "d3d11/shaders/compiled/resolvedepthstencil11_ps.h", 231 "d3d11/shaders/compiled/resolvedepthstencil11_vs.h", 232 "d3d11/shaders/compiled/resolvestencil11_ps.h", 233 "d3d11/shaders/compiled/swizzlef2darrayps.h", 234 "d3d11/shaders/compiled/swizzlef2dps.h", 235 "d3d11/shaders/compiled/swizzlef3dps.h", 236 "d3d11/shaders/compiled/swizzlei2darrayps.h", 237 "d3d11/shaders/compiled/swizzlei2dps.h", 238 "d3d11/shaders/compiled/swizzlei3dps.h", 239 "d3d11/shaders/compiled/swizzleui2darrayps.h", 240 "d3d11/shaders/compiled/swizzleui2dps.h", 241 "d3d11/shaders/compiled/swizzleui3dps.h", 242 "d3d11/texture_format_table.cpp", 243 "d3d11/texture_format_table.h", 244 "d3d11/texture_format_table_autogen.cpp", 245 "d3d11/texture_format_table_utils.h", 246 ] 247 248 if (angle_is_winuwp) { 249 d3d11_backend_sources += [ 250 "d3d11/winrt/CoreWindowNativeWindow.cpp", 251 "d3d11/winrt/CoreWindowNativeWindow.h", 252 "d3d11/winrt/InspectableNativeWindow.cpp", 253 "d3d11/winrt/InspectableNativeWindow.h", 254 "d3d11/winrt/NativeWindow11WinRT.cpp", 255 "d3d11/winrt/NativeWindow11WinRT.h", 256 "d3d11/winrt/SwapChainPanelNativeWindow.cpp", 257 "d3d11/winrt/SwapChainPanelNativeWindow.h", 258 ] 259 } else { 260 d3d11_backend_sources += [ 261 "d3d11/win32/NativeWindow11Win32.cpp", 262 "d3d11/win32/NativeWindow11Win32.h", 263 ] 264 } 265 if (angle_enable_d3d11_compositor_native_window) { 266 d3d11_backend_sources += [ 267 "d3d11/converged/CompositorNativeWindow11.cpp", 268 "d3d11/converged/CompositorNativeWindow11.h", 269 ] 270 } 271 272 import("d3d11/d3d11_blit_shaders_autogen.gni") 273 foreach(item, libangle_d3d11_blit_shaders) { 274 d3d11_backend_sources += [ "" + item ] 275 } 276} 277