Sat, 03 Jan 2015 20:18:00 +0100
Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.
michael@0 | 1 | // |
michael@0 | 2 | // Copyright (c) 2012-2013 The ANGLE Project Authors. All rights reserved. |
michael@0 | 3 | // Use of this source code is governed by a BSD-style license that can be |
michael@0 | 4 | // found in the LICENSE file. |
michael@0 | 5 | // |
michael@0 | 6 | |
michael@0 | 7 | // Renderer11.h: Defines a back-end specific class for the D3D11 renderer. |
michael@0 | 8 | |
michael@0 | 9 | #ifndef LIBGLESV2_RENDERER_RENDERER11_H_ |
michael@0 | 10 | #define LIBGLESV2_RENDERER_RENDERER11_H_ |
michael@0 | 11 | |
michael@0 | 12 | #include "common/angleutils.h" |
michael@0 | 13 | #include "libGLESv2/angletypes.h" |
michael@0 | 14 | #include "libGLESv2/mathutil.h" |
michael@0 | 15 | |
michael@0 | 16 | #include "libGLESv2/renderer/Renderer.h" |
michael@0 | 17 | #include "libGLESv2/renderer/RenderStateCache.h" |
michael@0 | 18 | #include "libGLESv2/renderer/InputLayoutCache.h" |
michael@0 | 19 | #include "libGLESv2/renderer/RenderTarget.h" |
michael@0 | 20 | |
michael@0 | 21 | namespace gl |
michael@0 | 22 | { |
michael@0 | 23 | class Renderbuffer; |
michael@0 | 24 | } |
michael@0 | 25 | |
michael@0 | 26 | namespace rx |
michael@0 | 27 | { |
michael@0 | 28 | |
michael@0 | 29 | class VertexDataManager; |
michael@0 | 30 | class IndexDataManager; |
michael@0 | 31 | class StreamingIndexBufferInterface; |
michael@0 | 32 | |
michael@0 | 33 | enum |
michael@0 | 34 | { |
michael@0 | 35 | MAX_VERTEX_UNIFORM_VECTORS_D3D11 = 1024, |
michael@0 | 36 | MAX_FRAGMENT_UNIFORM_VECTORS_D3D11 = 1024 |
michael@0 | 37 | }; |
michael@0 | 38 | |
michael@0 | 39 | class Renderer11 : public Renderer |
michael@0 | 40 | { |
michael@0 | 41 | public: |
michael@0 | 42 | Renderer11(egl::Display *display, HDC hDc); |
michael@0 | 43 | virtual ~Renderer11(); |
michael@0 | 44 | |
michael@0 | 45 | static Renderer11 *makeRenderer11(Renderer *renderer); |
michael@0 | 46 | |
michael@0 | 47 | virtual EGLint initialize(); |
michael@0 | 48 | virtual bool resetDevice(); |
michael@0 | 49 | |
michael@0 | 50 | virtual int generateConfigs(ConfigDesc **configDescList); |
michael@0 | 51 | virtual void deleteConfigs(ConfigDesc *configDescList); |
michael@0 | 52 | |
michael@0 | 53 | virtual void sync(bool block); |
michael@0 | 54 | |
michael@0 | 55 | virtual SwapChain *createSwapChain(HWND window, HANDLE shareHandle, GLenum backBufferFormat, GLenum depthBufferFormat); |
michael@0 | 56 | |
michael@0 | 57 | virtual void setSamplerState(gl::SamplerType type, int index, const gl::SamplerState &sampler); |
michael@0 | 58 | virtual void setTexture(gl::SamplerType type, int index, gl::Texture *texture); |
michael@0 | 59 | |
michael@0 | 60 | virtual void setRasterizerState(const gl::RasterizerState &rasterState); |
michael@0 | 61 | virtual void setBlendState(const gl::BlendState &blendState, const gl::Color &blendColor, |
michael@0 | 62 | unsigned int sampleMask); |
michael@0 | 63 | virtual void setDepthStencilState(const gl::DepthStencilState &depthStencilState, int stencilRef, |
michael@0 | 64 | int stencilBackRef, bool frontFaceCCW); |
michael@0 | 65 | |
michael@0 | 66 | virtual void setScissorRectangle(const gl::Rectangle &scissor, bool enabled); |
michael@0 | 67 | virtual bool setViewport(const gl::Rectangle &viewport, float zNear, float zFar, GLenum drawMode, GLenum frontFace, |
michael@0 | 68 | bool ignoreViewport); |
michael@0 | 69 | |
michael@0 | 70 | virtual bool applyPrimitiveType(GLenum mode, GLsizei count); |
michael@0 | 71 | virtual bool applyRenderTarget(gl::Framebuffer *frameBuffer); |
michael@0 | 72 | virtual void applyShaders(gl::ProgramBinary *programBinary); |
michael@0 | 73 | virtual void applyUniforms(gl::ProgramBinary *programBinary, gl::UniformArray *uniformArray); |
michael@0 | 74 | virtual GLenum applyVertexBuffer(gl::ProgramBinary *programBinary, gl::VertexAttribute vertexAttributes[], GLint first, GLsizei count, GLsizei instances); |
michael@0 | 75 | virtual GLenum applyIndexBuffer(const GLvoid *indices, gl::Buffer *elementArrayBuffer, GLsizei count, GLenum mode, GLenum type, TranslatedIndexData *indexInfo); |
michael@0 | 76 | |
michael@0 | 77 | virtual void drawArrays(GLenum mode, GLsizei count, GLsizei instances); |
michael@0 | 78 | virtual void drawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, gl::Buffer *elementArrayBuffer, const TranslatedIndexData &indexInfo, GLsizei instances); |
michael@0 | 79 | |
michael@0 | 80 | virtual void clear(const gl::ClearParameters &clearParams, gl::Framebuffer *frameBuffer); |
michael@0 | 81 | |
michael@0 | 82 | virtual void markAllStateDirty(); |
michael@0 | 83 | |
michael@0 | 84 | // lost device |
michael@0 | 85 | void notifyDeviceLost(); |
michael@0 | 86 | virtual bool isDeviceLost(); |
michael@0 | 87 | virtual bool testDeviceLost(bool notify); |
michael@0 | 88 | virtual bool testDeviceResettable(); |
michael@0 | 89 | |
michael@0 | 90 | // Renderer capabilities |
michael@0 | 91 | virtual DWORD getAdapterVendor() const; |
michael@0 | 92 | virtual std::string getRendererDescription() const; |
michael@0 | 93 | virtual GUID getAdapterIdentifier() const; |
michael@0 | 94 | |
michael@0 | 95 | virtual bool getBGRATextureSupport() const; |
michael@0 | 96 | virtual bool getDXT1TextureSupport(); |
michael@0 | 97 | virtual bool getDXT3TextureSupport(); |
michael@0 | 98 | virtual bool getDXT5TextureSupport(); |
michael@0 | 99 | virtual bool getEventQuerySupport(); |
michael@0 | 100 | virtual bool getFloat32TextureSupport(bool *filtering, bool *renderable); |
michael@0 | 101 | virtual bool getFloat16TextureSupport(bool *filtering, bool *renderable); |
michael@0 | 102 | virtual bool getLuminanceTextureSupport(); |
michael@0 | 103 | virtual bool getLuminanceAlphaTextureSupport(); |
michael@0 | 104 | virtual unsigned int getMaxVertexTextureImageUnits() const; |
michael@0 | 105 | virtual unsigned int getMaxCombinedTextureImageUnits() const; |
michael@0 | 106 | virtual unsigned int getReservedVertexUniformVectors() const; |
michael@0 | 107 | virtual unsigned int getReservedFragmentUniformVectors() const; |
michael@0 | 108 | virtual unsigned int getMaxVertexUniformVectors() const; |
michael@0 | 109 | virtual unsigned int getMaxFragmentUniformVectors() const; |
michael@0 | 110 | virtual unsigned int getMaxVaryingVectors() const; |
michael@0 | 111 | virtual bool getNonPower2TextureSupport() const; |
michael@0 | 112 | virtual bool getDepthTextureSupport() const; |
michael@0 | 113 | virtual bool getOcclusionQuerySupport() const; |
michael@0 | 114 | virtual bool getInstancingSupport() const; |
michael@0 | 115 | virtual bool getTextureFilterAnisotropySupport() const; |
michael@0 | 116 | virtual float getTextureMaxAnisotropy() const; |
michael@0 | 117 | virtual bool getShareHandleSupport() const; |
michael@0 | 118 | virtual bool getDerivativeInstructionSupport() const; |
michael@0 | 119 | virtual bool getPostSubBufferSupport() const; |
michael@0 | 120 | |
michael@0 | 121 | virtual int getMajorShaderModel() const; |
michael@0 | 122 | virtual float getMaxPointSize() const; |
michael@0 | 123 | virtual int getMaxViewportDimension() const; |
michael@0 | 124 | virtual int getMaxTextureWidth() const; |
michael@0 | 125 | virtual int getMaxTextureHeight() const; |
michael@0 | 126 | virtual bool get32BitIndexSupport() const; |
michael@0 | 127 | virtual int getMinSwapInterval() const; |
michael@0 | 128 | virtual int getMaxSwapInterval() const; |
michael@0 | 129 | |
michael@0 | 130 | virtual GLsizei getMaxSupportedSamples() const; |
michael@0 | 131 | int getNearestSupportedSamples(DXGI_FORMAT format, unsigned int requested) const; |
michael@0 | 132 | |
michael@0 | 133 | virtual unsigned int getMaxRenderTargets() const; |
michael@0 | 134 | |
michael@0 | 135 | // Pixel operations |
michael@0 | 136 | virtual bool copyToRenderTarget(TextureStorageInterface2D *dest, TextureStorageInterface2D *source); |
michael@0 | 137 | virtual bool copyToRenderTarget(TextureStorageInterfaceCube *dest, TextureStorageInterfaceCube *source); |
michael@0 | 138 | |
michael@0 | 139 | virtual bool copyImage(gl::Framebuffer *framebuffer, const gl::Rectangle &sourceRect, GLenum destFormat, |
michael@0 | 140 | GLint xoffset, GLint yoffset, TextureStorageInterface2D *storage, GLint level); |
michael@0 | 141 | virtual bool copyImage(gl::Framebuffer *framebuffer, const gl::Rectangle &sourceRect, GLenum destFormat, |
michael@0 | 142 | GLint xoffset, GLint yoffset, TextureStorageInterfaceCube *storage, GLenum target, GLint level); |
michael@0 | 143 | |
michael@0 | 144 | bool copyTexture(ID3D11ShaderResourceView *source, const gl::Rectangle &sourceArea, unsigned int sourceWidth, unsigned int sourceHeight, |
michael@0 | 145 | ID3D11RenderTargetView *dest, const gl::Rectangle &destArea, unsigned int destWidth, unsigned int destHeight, GLenum destFormat); |
michael@0 | 146 | |
michael@0 | 147 | virtual bool blitRect(gl::Framebuffer *readTarget, const gl::Rectangle &readRect, gl::Framebuffer *drawTarget, const gl::Rectangle &drawRect, |
michael@0 | 148 | bool blitRenderTarget, bool blitDepthStencil); |
michael@0 | 149 | virtual void readPixels(gl::Framebuffer *framebuffer, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, |
michael@0 | 150 | GLsizei outputPitch, bool packReverseRowOrder, GLint packAlignment, void* pixels); |
michael@0 | 151 | |
michael@0 | 152 | // RenderTarget creation |
michael@0 | 153 | virtual RenderTarget *createRenderTarget(SwapChain *swapChain, bool depth); |
michael@0 | 154 | virtual RenderTarget *createRenderTarget(int width, int height, GLenum format, GLsizei samples, bool depth); |
michael@0 | 155 | |
michael@0 | 156 | // Shader operations |
michael@0 | 157 | virtual ShaderExecutable *loadExecutable(const void *function, size_t length, rx::ShaderType type); |
michael@0 | 158 | virtual ShaderExecutable *compileToExecutable(gl::InfoLog &infoLog, const char *shaderHLSL, rx::ShaderType type); |
michael@0 | 159 | |
michael@0 | 160 | // Image operations |
michael@0 | 161 | virtual Image *createImage(); |
michael@0 | 162 | virtual void generateMipmap(Image *dest, Image *source); |
michael@0 | 163 | virtual TextureStorage *createTextureStorage2D(SwapChain *swapChain); |
michael@0 | 164 | virtual TextureStorage *createTextureStorage2D(int levels, GLenum internalformat, GLenum usage, bool forceRenderable, GLsizei width, GLsizei height); |
michael@0 | 165 | virtual TextureStorage *createTextureStorageCube(int levels, GLenum internalformat, GLenum usage, bool forceRenderable, int size); |
michael@0 | 166 | |
michael@0 | 167 | // Buffer creation |
michael@0 | 168 | virtual VertexBuffer *createVertexBuffer(); |
michael@0 | 169 | virtual IndexBuffer *createIndexBuffer(); |
michael@0 | 170 | virtual BufferStorage *createBufferStorage(); |
michael@0 | 171 | |
michael@0 | 172 | // Query and Fence creation |
michael@0 | 173 | virtual QueryImpl *createQuery(GLenum type); |
michael@0 | 174 | virtual FenceImpl *createFence(); |
michael@0 | 175 | |
michael@0 | 176 | // D3D11-renderer specific methods |
michael@0 | 177 | ID3D11Device *getDevice() { return mDevice; } |
michael@0 | 178 | ID3D11DeviceContext *getDeviceContext() { return mDeviceContext; }; |
michael@0 | 179 | IDXGIFactory *getDxgiFactory() { return mDxgiFactory; }; |
michael@0 | 180 | |
michael@0 | 181 | bool getRenderTargetResource(gl::Renderbuffer *colorbuffer, unsigned int *subresourceIndex, ID3D11Texture2D **resource); |
michael@0 | 182 | void unapplyRenderTargets(); |
michael@0 | 183 | void setOneTimeRenderTarget(ID3D11RenderTargetView *renderTargetView); |
michael@0 | 184 | |
michael@0 | 185 | virtual bool getLUID(LUID *adapterLuid) const; |
michael@0 | 186 | |
michael@0 | 187 | private: |
michael@0 | 188 | DISALLOW_COPY_AND_ASSIGN(Renderer11); |
michael@0 | 189 | |
michael@0 | 190 | void drawLineLoop(GLsizei count, GLenum type, const GLvoid *indices, int minIndex, gl::Buffer *elementArrayBuffer); |
michael@0 | 191 | void drawTriangleFan(GLsizei count, GLenum type, const GLvoid *indices, int minIndex, gl::Buffer *elementArrayBuffer, int instances); |
michael@0 | 192 | |
michael@0 | 193 | void readTextureData(ID3D11Texture2D *texture, unsigned int subResource, const gl::Rectangle &area, |
michael@0 | 194 | GLenum format, GLenum type, GLsizei outputPitch, bool packReverseRowOrder, |
michael@0 | 195 | GLint packAlignment, void *pixels); |
michael@0 | 196 | |
michael@0 | 197 | void maskedClear(const gl::ClearParameters &clearParams, bool usingExtendedDrawBuffers); |
michael@0 | 198 | rx::Range getViewportBounds() const; |
michael@0 | 199 | |
michael@0 | 200 | bool blitRenderbufferRect(const gl::Rectangle &readRect, const gl::Rectangle &drawRect, RenderTarget *readRenderTarget, |
michael@0 | 201 | RenderTarget *drawRenderTarget, bool wholeBufferCopy); |
michael@0 | 202 | ID3D11Texture2D *resolveMultisampledTexture(ID3D11Texture2D *source, unsigned int subresource); |
michael@0 | 203 | |
michael@0 | 204 | HMODULE mD3d11Module; |
michael@0 | 205 | HMODULE mDxgiModule; |
michael@0 | 206 | HDC mDc; |
michael@0 | 207 | |
michael@0 | 208 | bool mDeviceLost; |
michael@0 | 209 | |
michael@0 | 210 | void initializeDevice(); |
michael@0 | 211 | void releaseDeviceResources(); |
michael@0 | 212 | int getMinorShaderModel() const; |
michael@0 | 213 | void release(); |
michael@0 | 214 | |
michael@0 | 215 | RenderStateCache mStateCache; |
michael@0 | 216 | |
michael@0 | 217 | // Support flags |
michael@0 | 218 | bool mFloat16TextureSupport; |
michael@0 | 219 | bool mFloat16FilterSupport; |
michael@0 | 220 | bool mFloat16RenderSupport; |
michael@0 | 221 | |
michael@0 | 222 | bool mFloat32TextureSupport; |
michael@0 | 223 | bool mFloat32FilterSupport; |
michael@0 | 224 | bool mFloat32RenderSupport; |
michael@0 | 225 | |
michael@0 | 226 | bool mDXT1TextureSupport; |
michael@0 | 227 | bool mDXT3TextureSupport; |
michael@0 | 228 | bool mDXT5TextureSupport; |
michael@0 | 229 | |
michael@0 | 230 | bool mDepthTextureSupport; |
michael@0 | 231 | |
michael@0 | 232 | // Multisample format support |
michael@0 | 233 | struct MultisampleSupportInfo |
michael@0 | 234 | { |
michael@0 | 235 | unsigned int qualityLevels[D3D11_MAX_MULTISAMPLE_SAMPLE_COUNT]; |
michael@0 | 236 | }; |
michael@0 | 237 | |
michael@0 | 238 | typedef std::unordered_map<DXGI_FORMAT, MultisampleSupportInfo, std::hash<int> > MultisampleSupportMap; |
michael@0 | 239 | MultisampleSupportMap mMultisampleSupportMap; |
michael@0 | 240 | |
michael@0 | 241 | unsigned int mMaxSupportedSamples; |
michael@0 | 242 | |
michael@0 | 243 | // current render target states |
michael@0 | 244 | unsigned int mAppliedRenderTargetSerials[gl::IMPLEMENTATION_MAX_DRAW_BUFFERS]; |
michael@0 | 245 | unsigned int mAppliedDepthbufferSerial; |
michael@0 | 246 | unsigned int mAppliedStencilbufferSerial; |
michael@0 | 247 | bool mDepthStencilInitialized; |
michael@0 | 248 | bool mRenderTargetDescInitialized; |
michael@0 | 249 | rx::RenderTarget::Desc mRenderTargetDesc; |
michael@0 | 250 | unsigned int mCurDepthSize; |
michael@0 | 251 | unsigned int mCurStencilSize; |
michael@0 | 252 | |
michael@0 | 253 | // Currently applied sampler states |
michael@0 | 254 | bool mForceSetVertexSamplerStates[gl::IMPLEMENTATION_MAX_VERTEX_TEXTURE_IMAGE_UNITS]; |
michael@0 | 255 | gl::SamplerState mCurVertexSamplerStates[gl::IMPLEMENTATION_MAX_VERTEX_TEXTURE_IMAGE_UNITS]; |
michael@0 | 256 | |
michael@0 | 257 | bool mForceSetPixelSamplerStates[gl::MAX_TEXTURE_IMAGE_UNITS]; |
michael@0 | 258 | gl::SamplerState mCurPixelSamplerStates[gl::MAX_TEXTURE_IMAGE_UNITS]; |
michael@0 | 259 | |
michael@0 | 260 | // Currently applied textures |
michael@0 | 261 | unsigned int mCurVertexTextureSerials[gl::IMPLEMENTATION_MAX_VERTEX_TEXTURE_IMAGE_UNITS]; |
michael@0 | 262 | unsigned int mCurPixelTextureSerials[gl::MAX_TEXTURE_IMAGE_UNITS]; |
michael@0 | 263 | |
michael@0 | 264 | // Currently applied blend state |
michael@0 | 265 | bool mForceSetBlendState; |
michael@0 | 266 | gl::BlendState mCurBlendState; |
michael@0 | 267 | gl::Color mCurBlendColor; |
michael@0 | 268 | unsigned int mCurSampleMask; |
michael@0 | 269 | |
michael@0 | 270 | // Currently applied rasterizer state |
michael@0 | 271 | bool mForceSetRasterState; |
michael@0 | 272 | gl::RasterizerState mCurRasterState; |
michael@0 | 273 | |
michael@0 | 274 | // Currently applied depth stencil state |
michael@0 | 275 | bool mForceSetDepthStencilState; |
michael@0 | 276 | gl::DepthStencilState mCurDepthStencilState; |
michael@0 | 277 | int mCurStencilRef; |
michael@0 | 278 | int mCurStencilBackRef; |
michael@0 | 279 | |
michael@0 | 280 | // Currently applied scissor rectangle |
michael@0 | 281 | bool mForceSetScissor; |
michael@0 | 282 | bool mScissorEnabled; |
michael@0 | 283 | gl::Rectangle mCurScissor; |
michael@0 | 284 | |
michael@0 | 285 | // Currently applied viewport |
michael@0 | 286 | bool mForceSetViewport; |
michael@0 | 287 | gl::Rectangle mCurViewport; |
michael@0 | 288 | float mCurNear; |
michael@0 | 289 | float mCurFar; |
michael@0 | 290 | |
michael@0 | 291 | // Currently applied primitive topology |
michael@0 | 292 | D3D11_PRIMITIVE_TOPOLOGY mCurrentPrimitiveTopology; |
michael@0 | 293 | |
michael@0 | 294 | unsigned int mAppliedIBSerial; |
michael@0 | 295 | unsigned int mAppliedStorageIBSerial; |
michael@0 | 296 | unsigned int mAppliedIBOffset; |
michael@0 | 297 | |
michael@0 | 298 | unsigned int mAppliedProgramBinarySerial; |
michael@0 | 299 | bool mIsGeometryShaderActive; |
michael@0 | 300 | |
michael@0 | 301 | dx_VertexConstants mVertexConstants; |
michael@0 | 302 | dx_VertexConstants mAppliedVertexConstants; |
michael@0 | 303 | ID3D11Buffer *mDriverConstantBufferVS; |
michael@0 | 304 | ID3D11Buffer *mCurrentVertexConstantBuffer; |
michael@0 | 305 | |
michael@0 | 306 | dx_PixelConstants mPixelConstants; |
michael@0 | 307 | dx_PixelConstants mAppliedPixelConstants; |
michael@0 | 308 | ID3D11Buffer *mDriverConstantBufferPS; |
michael@0 | 309 | ID3D11Buffer *mCurrentPixelConstantBuffer; |
michael@0 | 310 | |
michael@0 | 311 | ID3D11Buffer *mCurrentGeometryConstantBuffer; |
michael@0 | 312 | |
michael@0 | 313 | // Vertex, index and input layouts |
michael@0 | 314 | VertexDataManager *mVertexDataManager; |
michael@0 | 315 | IndexDataManager *mIndexDataManager; |
michael@0 | 316 | InputLayoutCache mInputLayoutCache; |
michael@0 | 317 | |
michael@0 | 318 | StreamingIndexBufferInterface *mLineLoopIB; |
michael@0 | 319 | StreamingIndexBufferInterface *mTriangleFanIB; |
michael@0 | 320 | |
michael@0 | 321 | // Texture copy resources |
michael@0 | 322 | bool mCopyResourcesInitialized; |
michael@0 | 323 | ID3D11Buffer *mCopyVB; |
michael@0 | 324 | ID3D11SamplerState *mCopySampler; |
michael@0 | 325 | ID3D11InputLayout *mCopyIL; |
michael@0 | 326 | ID3D11VertexShader *mCopyVS; |
michael@0 | 327 | ID3D11PixelShader *mCopyRGBAPS; |
michael@0 | 328 | ID3D11PixelShader *mCopyRGBPS; |
michael@0 | 329 | ID3D11PixelShader *mCopyLumPS; |
michael@0 | 330 | ID3D11PixelShader *mCopyLumAlphaPS; |
michael@0 | 331 | |
michael@0 | 332 | // Masked clear resources |
michael@0 | 333 | bool mClearResourcesInitialized; |
michael@0 | 334 | ID3D11Buffer *mClearVB; |
michael@0 | 335 | ID3D11InputLayout *mClearIL; |
michael@0 | 336 | ID3D11VertexShader *mClearVS; |
michael@0 | 337 | ID3D11PixelShader *mClearSinglePS; |
michael@0 | 338 | ID3D11PixelShader *mClearMultiplePS; |
michael@0 | 339 | ID3D11RasterizerState *mClearScissorRS; |
michael@0 | 340 | ID3D11RasterizerState *mClearNoScissorRS; |
michael@0 | 341 | |
michael@0 | 342 | // Sync query |
michael@0 | 343 | ID3D11Query *mSyncQuery; |
michael@0 | 344 | |
michael@0 | 345 | ID3D11Device *mDevice; |
michael@0 | 346 | D3D_FEATURE_LEVEL mFeatureLevel; |
michael@0 | 347 | ID3D11DeviceContext *mDeviceContext; |
michael@0 | 348 | IDXGIAdapter *mDxgiAdapter; |
michael@0 | 349 | DXGI_ADAPTER_DESC mAdapterDescription; |
michael@0 | 350 | char mDescription[128]; |
michael@0 | 351 | IDXGIFactory *mDxgiFactory; |
michael@0 | 352 | |
michael@0 | 353 | // Cached device caps |
michael@0 | 354 | bool mBGRATextureSupport; |
michael@0 | 355 | }; |
michael@0 | 356 | |
michael@0 | 357 | } |
michael@0 | 358 | #endif // LIBGLESV2_RENDERER_RENDERER11_H_ |