/external/angle/src/libANGLE/renderer/d3d/ |
D | DisplayD3D.cpp | 164 DisplayD3D::DisplayD3D(const egl::DisplayState &state) : DisplayImpl(state), mRenderer(nullptr) {} in DisplayD3D() 170 ASSERT(mRenderer != nullptr); in createWindowSurface() 171 return new WindowSurfaceD3D(state, mRenderer, mDisplay, window, attribs); in createWindowSurface() 177 ASSERT(mRenderer != nullptr); in createPbufferSurface() 178 return new PbufferSurfaceD3D(state, mRenderer, mDisplay, 0, nullptr, attribs); in createPbufferSurface() 186 ASSERT(mRenderer != nullptr); in createPbufferFromClientBuffer() 187 return new PbufferSurfaceD3D(state, mRenderer, mDisplay, buftype, clientBuffer, attribs); in createPbufferFromClientBuffer() 203 return new EGLImageD3D(state, target, attribs, mRenderer); in createImage() 208 return mRenderer->createEGLDevice(); in createDevice() 217 ASSERT(mRenderer != nullptr); in createContext() [all …]
|
/external/angle/src/libANGLE/renderer/d3d/d3d9/ |
D | Context9.cpp | 33 : ContextD3D(state, errorSet), mRenderer(renderer) in Context9() 55 return new ShaderD3D(data, mRenderer->getFeatures(), mRenderer->getNativeExtensions()); in createShader() 60 return new ProgramD3D(data, mRenderer); in createProgram() 65 return new Framebuffer9(data, mRenderer); in createFramebuffer() 75 return new TextureD3D_2D(state, mRenderer); in createTexture() 77 return new TextureD3D_Cube(state, mRenderer); in createTexture() 79 return new TextureD3D_External(state, mRenderer); in createTexture() 88 return new RenderbufferD3D(state, mRenderer); in createRenderbuffer() 93 return new Buffer9(state, mRenderer); in createBuffer() 103 return new Query9(mRenderer, type); in createQuery() [all …]
|
D | SwapChain9.cpp | 28 mRenderer(renderer), in SwapChain9() 99 IDirect3DDevice9 *device = mRenderer->getDevice(); in reset() 129 if (!mNativeWindow->getNativeWindow() && mRenderer->getShareHandleSupport()) in reset() 172 mRenderer->endScene(); in reset() 184 D3DDEVTYPE deviceType = mRenderer->getD3D9DeviceType(); in reset() 213 if (IsIntel(mRenderer->getVendorId())) in reset() 285 IDirect3DDevice9 *device = mRenderer->getDevice(); in swapRect() 340 mRenderer->startScene(); in swapRect() 342 mRenderer->endScene(); in swapRect() 351 mRenderer->markAllStateDirty(); in swapRect() [all …]
|
D | Blit9.cpp | 61 : mRenderer(renderer), in Blit9() 93 IDirect3DDevice9 *device = mRenderer->getDevice(); in initialize() 129 IDirect3DDevice9 *device = mRenderer->getDevice(); in setShader() 141 ANGLE_TRY((mRenderer->*createShader)(context9, reinterpret_cast<const DWORD *>(shaderCode), in setShader() 196 IDirect3DDevice9 *device = mRenderer->getDevice(); in boxFilter() 340 IDirect3DDevice9 *device = mRenderer->getDevice(); in copy() 397 IDirect3DDevice9 *device = mRenderer->getDevice(); in formatConvert() 577 mRenderer->getDevice()->SetPixelShaderConstantF(0, psConst, 2); in setFormatConvertShaders() 589 IDirect3DDevice9 *device = mRenderer->getDevice(); in copySurfaceToTexture() 605 mRenderer->endScene(); in copySurfaceToTexture() [all …]
|
D | Framebuffer9.cpp | 28 : FramebufferD3D(data, renderer), mRenderer(renderer) in Framebuffer9() 30 ASSERT(mRenderer != nullptr); in Framebuffer9() 63 ANGLE_TRY(mRenderer->applyRenderTarget(context, mRenderTargetCache.getColors()[0], in clearImpl() 69 mRenderer->setViewport(glState.getViewport(), nearZ, farZ, gl::PrimitiveMode::Triangles, in clearImpl() 72 mRenderer->setScissorRectangle(glState.getScissor(), glState.isScissorTestEnabled()); in clearImpl() 74 mRenderer->clear(clearParams, mRenderTargetCache.getColors()[0], in clearImpl() 112 IDirect3DDevice9 *device = mRenderer->getDevice(); in readPixelsImpl() 118 !pack.reverseRowOrder && pack.alignment <= 4 && mRenderer->getShareHandleSupport() && in readPixelsImpl() 159 mRenderer->notifyDeviceLost(); in readPixelsImpl() 228 IDirect3DDevice9 *device = mRenderer->getDevice(); in blitImpl() [all …]
|
/external/angle/src/libANGLE/renderer/d3d/d3d11/ |
D | Context11.cpp | 118 : ContextD3D(state, errorSet), mRenderer(renderer) in Context11() 135 if (mRenderer->getRenderer11DeviceCaps().featureLevel <= D3D_FEATURE_LEVEL_9_3) in createCompiler() 147 return new ShaderD3D(data, mRenderer->getFeatures(), mRenderer->getNativeExtensions()); in createShader() 152 return new Program11(data, mRenderer); in createProgram() 157 return new Framebuffer11(data, mRenderer); in createFramebuffer() 167 return new TextureD3D_2D(state, mRenderer); in createTexture() 169 return new TextureD3D_Cube(state, mRenderer); in createTexture() 171 return new TextureD3D_3D(state, mRenderer); in createTexture() 173 return new TextureD3D_2DArray(state, mRenderer); in createTexture() 175 return new TextureD3D_External(state, mRenderer); in createTexture() [all …]
|
D | SwapChain11.cpp | 63 mRenderer(renderer), in SwapChain11() 98 ASSERT(!mRenderer->presentPathFastEnabled() || orientation == 0); in SwapChain11() 190 ID3D11Device *device = mRenderer->getDevice(); in resetOffscreenColorBuffer() 206 d3d11::Format::Get(mOffscreenRenderTargetFormat, mRenderer->getRenderer11DeviceCaps()); in resetOffscreenColorBuffer() 252 !mNativeWindow->getNativeWindow() && mRenderer->getShareHandleSupport(); in resetOffscreenColorBuffer() 266 angle::Result result = mRenderer->allocateTexture(displayD3D, offscreenTextureDesc, in resetOffscreenColorBuffer() 313 angle::Result result = mRenderer->allocateResource(displayD3D, offscreenRTVDesc, in resetOffscreenColorBuffer() 333 result = mRenderer->allocateResource(displayD3D, offscreenSRVDesc, mOffscreenTexture.get(), in resetOffscreenColorBuffer() 361 ID3D11DeviceContext *deviceContext = mRenderer->getDeviceContext(); in resetOffscreenColorBuffer() 384 d3d11::Format::Get(mDepthBufferFormat, mRenderer->getRenderer11DeviceCaps()); in resetOffscreenDepthBuffer() [all …]
|
D | TransformFeedback11.cpp | 21 mRenderer(renderer), in TransformFeedback11() 25 mSerial(mRenderer->generateSerial()) in TransformFeedback11() 47 mRenderer->getStateManager()->invalidateTransformFeedback(); in begin() 53 mRenderer->getStateManager()->invalidateTransformFeedback(); in end() 54 if (mRenderer->getFeatures().flushAfterEndingTransformFeedback.enabled) in end() 56 mRenderer->getDeviceContext()->Flush(); in end() 63 mRenderer->getStateManager()->invalidateTransformFeedback(); in pause() 69 mRenderer->getStateManager()->invalidateTransformFeedback(); in resume() 80 mRenderer->getStateManager()->invalidateTransformFeedback(); in bindIndexedBuffer()
|
D | PixelTransfer11.cpp | 39 : mRenderer(renderer), in PixelTransfer11() 71 ANGLE_TRY(mRenderer->allocateResource(context11, rasterDesc, &mCopyRasterizerState)); in loadResources() 89 ANGLE_TRY(mRenderer->allocateResource(context11, depthStencilDesc, &mCopyDepthStencilState)); in loadResources() 99 ANGLE_TRY(mRenderer->allocateResource(context11, constantBufferDesc, &mParamsConstantBuffer)); in loadResources() 103 ANGLE_TRY(mRenderer->allocateResource(context11, ShaderData(g_VS_BufferToTexture), in loadResources() 107 ANGLE_TRY(mRenderer->allocateResource(context11, ShaderData(g_GS_BufferToTexture), in loadResources() 170 ASSERT(mRenderer->supportsFastCopyBufferToTexture(destinationFormat)); in copyBufferToTexture() 182 sourceglFormatInfo.sizedInternalFormat, mRenderer->getRenderer11DeviceCaps()); in copyBufferToTexture() 198 ID3D11DeviceContext *deviceContext = mRenderer->getDeviceContext(); in copyBufferToTexture() 202 StateManager11 *stateManager = mRenderer->getStateManager(); in copyBufferToTexture() [all …]
|
D | Query11.cpp | 60 : QueryImpl(type), mResult(0), mResultSum(0), mRenderer(renderer) in Query11() 67 mRenderer->getStateManager()->onDeleteQueryObject(this); in ~Query11() 73 mRenderer->getStateManager()->onBeginQuery(this); in begin() 134 ID3D11DeviceContext *context = mRenderer->getDeviceContext(); in pause() 165 ANGLE_TRY(mRenderer->allocateResource(context11, queryDesc, &mActiveQuery->query)); in resume() 174 ANGLE_TRY(mRenderer->allocateResource(context11, desc, &mActiveQuery->beginTimestamp)); in resume() 175 ANGLE_TRY(mRenderer->allocateResource(context11, desc, &mActiveQuery->endTimestamp)); in resume() 178 ID3D11DeviceContext *context = mRenderer->getDeviceContext(); in resume() 221 ID3D11DeviceContext *context = mRenderer->getDeviceContext(); in testQuery() 285 mRenderer->setGPUDisjoint(); in testQuery() [all …]
|
D | Blit11.cpp | 534 : mRenderer(renderer), in Blit11() 589 6 * mRenderer->getNativeCaps().max3DTextureSize); in initResources() 598 ANGLE_TRY(mRenderer->allocateResource(context11, vbDesc, &mVertexBuffer)); in initResources() 616 ANGLE_TRY(mRenderer->allocateResource(context11, pointSamplerDesc, &mPointSampler)); in initResources() 634 ANGLE_TRY(mRenderer->allocateResource(context11, linearSamplerDesc, &mLinearSampler)); in initResources() 650 ANGLE_TRY(mRenderer->allocateResource(context11, rasterDesc, &mScissorEnabledRasterizerState)); in initResources() 654 ANGLE_TRY(mRenderer->allocateResource(context11, rasterDesc, &mScissorDisabledRasterizerState)); in initResources() 673 ANGLE_TRY(mRenderer->allocateResource(context11, depthStencilDesc, &mDepthStencilState)); in initResources() 684 ANGLE_TRY(mRenderer->allocateResource(context11, swizzleBufferDesc, &mSwizzleCB)); in initResources() 767 ANGLE_TRY(mQuad2DIL.resolve(context11, mRenderer)); in getShaderSupport() [all …]
|
D | VertexBuffer11.cpp | 25 : mRenderer(renderer), in VertexBuffer11() 54 ANGLE_TRY(mRenderer->allocateResource(GetImplAs<Context11>(context), bufferDesc, &mBuffer)); in initialize() 78 ANGLE_TRY(mRenderer->mapResource(context, mBuffer.get(), 0, D3D11_MAP_WRITE_NO_OVERWRITE, 0, in mapResource() 91 ID3D11DeviceContext *dxContext = mRenderer->getDeviceContext(); in hintUnmapResource() 125 const D3D_FEATURE_LEVEL featureLevel = mRenderer->getRenderer11DeviceCaps().featureLevel; in storeVertexAttributes() 154 ANGLE_TRY(mRenderer->mapResource(context, mBuffer.get(), 0, D3D11_MAP_WRITE_DISCARD, 0, in discard() 157 mRenderer->getDeviceContext()->Unmap(mBuffer.get(), 0); in discard()
|
D | Framebuffer11.cpp | 60 : FramebufferD3D(data, renderer), mRenderer(renderer) in Framebuffer11() 62 ASSERT(mRenderer != nullptr); in Framebuffer11() 89 Clear11 *clearer = mRenderer->getClearer(); in clearImpl() 93 UsePresentPathFast(mRenderer, colorAttachment)) in clearImpl() 134 ID3D11DeviceContext1 *deviceContext1 = mRenderer->getDeviceContext1IfSupported(); in invalidateBase() 233 ID3D11DeviceContext1 *deviceContext1 = mRenderer->getDeviceContext1IfSupported(); in invalidateAttachment() 272 return mRenderer->readFromAttachment(context, *readAttachment, area, format, type, in readPixelsImpl() 310 const bool invertColorSource = UsePresentPathFast(mRenderer, readBuffer); in blitImpl() 319 const bool invertColorDest = UsePresentPathFast(mRenderer, &drawBuffer); in blitImpl() 333 ANGLE_TRY(mRenderer->blitRenderbufferRect( in blitImpl() [all …]
|
D | TextureStorage11.cpp | 84 mRenderer(renderer), in TextureStorage11() 87 mFormatInfo(d3d11::Format::Get(internalFormat, mRenderer->getRenderer11DeviceCaps())), in TextureStorage11() 236 if (mRenderer->getRenderer11DeviceCaps().featureLevel <= D3D_FEATURE_LEVEL_9_3) in getSRVForSampler() 242 if (mRenderer->getFeatures().zeroMaxLodWorkaround.enabled) in getSRVForSampler() 256 mRenderer->getFeatures().emulateTinyStencilTextures.enabled; in getSRVForSampler() 303 mFormatInfo.getSwizzleFormat(mRenderer->getRenderer11DeviceCaps()); in getCachedOrCreateSRVForSampler() 376 if (mRenderer->getRenderer11DeviceCaps().featureLevel <= D3D_FEATURE_LEVEL_9_3) in getSRVLevels() 381 if (mRenderer->getFeatures().zeroMaxLodWorkaround.enabled) in getSRVLevels() 420 d3d11::Format::Get(key.format, mRenderer->getRenderer11DeviceCaps()).srvFormat; in getCachedOrCreateSRVForImage() 453 d3d11::Format::Get(key.format, mRenderer->getRenderer11DeviceCaps()).uavFormat; in getCachedOrCreateUAVForImage() [all …]
|
D | Image11.cpp | 29 : mRenderer(renderer), in Image11() 132 const Renderer11DeviceCaps &deviceCaps = mRenderer->getRenderer11DeviceCaps(); in isDirty() 244 d3d11::Format::Get(internalformat, mRenderer->getRenderer11DeviceCaps()); in redefine() 294 d3d11::Format::Get(mInternalFormat, mRenderer->getRenderer11DeviceCaps()); in loadData() 335 d3d11::Format::Get(mInternalFormat, mRenderer->getRenderer11DeviceCaps()); in loadCompressedData() 383 d3d11::Format::Get(sourceInternalFormat, mRenderer->getRenderer11DeviceCaps()); in copyFromFramebuffer() 414 d3d11::Format::Get(mInternalFormat, mRenderer->getRenderer11DeviceCaps()); in copyFromFramebuffer() 422 result = mRenderer->getScratchMemoryBuffer(GetImplAs<Context11>(context), bufferSize, in copyFromFramebuffer() 429 result = mRenderer->readFromAttachment( in copyFromFramebuffer() 440 result = mRenderer->readFromAttachment( in copyFromFramebuffer() [all …]
|
D | IndexBuffer11.cpp | 20 : mRenderer(renderer), in IndexBuffer11() 48 ANGLE_TRY(mRenderer->allocateResource(GetImplAs<Context11>(context), bufferDesc, &mBuffer)); in initialize() 82 ANGLE_TRY(mRenderer->mapResource(context, mBuffer.get(), 0, D3D11_MAP_WRITE_NO_OVERWRITE, 0, in mapBuffer() 95 ID3D11DeviceContext *dxContext = mRenderer->getDeviceContext(); in unmapBuffer() 128 ID3D11DeviceContext *dxContext = mRenderer->getDeviceContext(); in discard() 131 ANGLE_TRY(mRenderer->mapResource(context, mBuffer.get(), 0, D3D11_MAP_WRITE_DISCARD, 0, in discard()
|
D | Clear11.cpp | 218 : mRenderer(renderer), in Clear11() 264 ANGLE_TRY(mRenderer->allocateResource(context11, rsDesc, &mScissorDisabledRasterizerState)); in ensureResourcesInitialized() 268 ANGLE_TRY(mRenderer->allocateResource(context11, rsDesc, &mScissorEnabledRasterizerState)); in ensureResourcesInitialized() 290 mBlendStateKey.blendStateExt = gl::BlendStateExt(mRenderer->getNativeCaps().maxDrawBuffers); in ensureResourcesInitialized() 298 return (mRenderer->getRenderer11DeviceCaps().featureLevel <= D3D_FEATURE_LEVEL_9_3); in useVertexBuffer() 323 ANGLE_TRY(mRenderer->allocateResource(GetImplAs<Context11>(context), bufferDesc, &initialData, in ensureConstantBufferCreated() 361 ANGLE_TRY(mRenderer->allocateResource(GetImplAs<Context11>(context), bufferDesc, &initialData, in ensureVertexBufferCreated() 450 ID3D11DeviceContext *deviceContext = mRenderer->getDeviceContext(); in clearFramebuffer() 451 ID3D11DeviceContext1 *deviceContext1 = mRenderer->getDeviceContext1IfSupported(); in clearFramebuffer() 504 if ((!(mRenderer->getRenderer11DeviceCaps().supportsClearView) && needScissoredClear) || in clearFramebuffer() [all …]
|
D | Fence11.cpp | 34 HRESULT result = fence->mRenderer->getDevice()->CreateQuery(&queryDesc, &fence->mQuery); in FenceSetHelper() 38 fence->mRenderer->getDeviceContext()->End(fence->mQuery); in FenceSetHelper() 54 fence->mRenderer->getDeviceContext()->GetData(fence->mQuery, nullptr, 0, getDataFlags); in FenceTestHelper() 66 FenceNV11::FenceNV11(Renderer11 *renderer) : FenceNVImpl(), mRenderer(renderer), mQuery(nullptr) {} in FenceNV11() 94 if (checkDeviceLost && mRenderer->testDeviceLost()) in finish() 121 Sync11::Sync11(Renderer11 *renderer) : SyncImpl(), mRenderer(renderer), mQuery(nullptr) in Sync11() 193 if (checkDeviceLost && mRenderer->testDeviceLost()) in clientWait()
|
D | StateManager11.cpp | 669 : mRenderer(renderer), in StateManager11() 703 mEmptySerial(mRenderer->generateSerial()), in StateManager11() 773 ID3D11DeviceContext *deviceContext = mRenderer->getDeviceContext(); in setShaderResourceInternal() 819 ID3D11DeviceContext *deviceContext = mRenderer->getDeviceContext(); in setUnorderedAccessViewInternal() 851 if (!mRenderer->presentPathFastEnabled()) in checkPresentPath() 856 const bool presentPathFastActive = UsePresentPathFast(mRenderer, firstColorAttachment); in checkPresentPath() 1242 ANGLE_TRY(mRenderer->getBlendState(context, key, &dxBlendState)); in syncBlendState() 1256 mRenderer->getDeviceContext()->OMSetBlendState(dxBlendState->get(), blendColors, sampleMask); in syncBlendState() 1314 ANGLE_TRY(mRenderer->getDepthStencilState(context, modifiedGLState, &d3dState)); in syncDepthStencilState() 1327 mRenderer->getDeviceContext()->OMSetDepthStencilState(d3dState->get(), dxStencilRef); in syncDepthStencilState() [all …]
|
/external/angle/src/libANGLE/renderer/vulkan/ |
D | DisplayVk.cpp | 34 delete mRenderer; in ~DisplayVk() 39 ASSERT(mRenderer != nullptr && display != nullptr); in initialize() 40 angle::Result result = mRenderer->initialize(this, display, getWSIExtension(), getWSILayer()); in initialize() 47 mRenderer->reloadVolkIfNeeded(); in terminate() 49 ASSERT(mRenderer); in terminate() 50 mRenderer->onDestroy(this); in terminate() 59 ASSERT(mRenderer); in makeCurrent() 60 mRenderer->setGlobalDebugAnnotator(); in makeCurrent() 67 return mRenderer->isDeviceLost(); in testDeviceLost() 79 if (mRenderer) in getRendererDescription() [all …]
|
/external/angle/src/libANGLE/renderer/gl/ |
D | ContextGL.cpp | 43 mRenderer(renderer), in ContextGL() 64 return new ShaderGL(data, shader, mRenderer->getMultiviewImplementationType(), mRenderer); in createShader() 69 return new ProgramGL(data, getFunctions(), getFeaturesGL(), getStateManager(), mRenderer); in createProgram() 211 return mRenderer->flush(); in flush() 216 return mRenderer->finish(); in finish() 332 mRenderer->markWorkSubmitted(); in drawArrays() 353 mRenderer->markWorkSubmitted(); in drawArraysInstanced() 476 mRenderer->markWorkSubmitted(); in drawArraysInstancedBaseInstance() 509 mRenderer->markWorkSubmitted(); in drawElements() 543 mRenderer->markWorkSubmitted(); in drawElementsBaseVertex() [all …]
|
/external/oboe/samples/RhythmGame/src/main/java/com/google/oboe/samples/rhythmgame/ |
D | GameSurfaceView.java | 29 private final RendererWrapper mRenderer; field in GameSurfaceView 34 mRenderer = new RendererWrapper(); in GameSurfaceView() 36 setRenderer(mRenderer); in GameSurfaceView() 42 mRenderer = new RendererWrapper(); in GameSurfaceView() 44 setRenderer(mRenderer); in GameSurfaceView()
|
/external/angle/src/tests/gl_tests/ |
D | D3D11EmulatedIndexedBufferTest.cpp | 35 mRenderer = context11->getRenderer(); in testSetUp() 37 mSourceBuffer = new rx::Buffer11(mBufferState, mRenderer); in testSetUp() 74 HRESULT hr = mRenderer->getDevice()->CreateBuffer(&bufferDesc, nullptr, mappableBuffer); in createMappableCompareBufferFromEmulatedBuffer() 85 mRenderer->getDeviceContext()->CopySubresourceRegion(*mappableBuffer, 0, 0, 0, 0, in createMappableCompareBufferFromEmulatedBuffer() 97 HRESULT hr = mRenderer->getDeviceContext()->Map(compareBuffer, 0, D3D11_MAP_READ, 0, in compareContents() 107 mRenderer->getDeviceContext()->Unmap(compareBuffer, 0); in compareContents() 124 rx::Renderer11 *mRenderer; member in __anon36410ef50111::D3D11EmulatedIndexedBufferTest 169 rx::Buffer11 *cleanSourceBuffer = new rx::Buffer11(cleanSourceState, mRenderer); in TEST_P()
|
/external/replicaisland/src/com/replica/replicaisland/ |
D | GameThread.java | 32 private GameRenderer mRenderer; field in GameThread 43 mRenderer = renderer; in GameThread() 54 mRenderer.waitDrawingComplete(); in run() 75 BaseObject.sSystemRegistry.renderSystem.swap(mRenderer, x, y); in run() 122 BaseObject.sSystemRegistry.renderSystem.emptyQueues(mRenderer); in run()
|
/external/angle/src/libANGLE/renderer/gl/egl/gbm/ |
D | DisplayGbm.cpp | 120 const FunctionsGL *gl = mDisplay->mRenderer->getFunctions(); in ~Buffer() 147 const FunctionsGL *gl = mDisplay->mRenderer->getFunctions(); in reset() 210 const FunctionsGL *gl = mDisplay->mRenderer->getFunctions(); in resize() 211 StateManagerGL *sm = mDisplay->mRenderer->getStateManager(); in resize() 242 const FunctionsGL *gl = mDisplay->mRenderer->getFunctions(); in bindTexImage() 250 const FunctionsGL *gl = mDisplay->mRenderer->getFunctions(); in getTexture() 251 StateManagerGL *sm = mDisplay->mRenderer->getStateManager(); in getTexture() 332 const FunctionsGL *gl = mDisplay->mRenderer->getFunctions(); in createRenderbuffers() 333 StateManagerGL *sm = mDisplay->mRenderer->getStateManager(); in createRenderbuffers() 532 mRenderer.reset(new RendererEGL(std::move(functionsGL), display->getAttributeMap(), this, in initialize() [all …]
|