• Home
  • Raw
  • Download

Lines Matching refs:fGpu

28 GrD3DOpsRenderPass::GrD3DOpsRenderPass(GrD3DGpu* gpu) : fGpu(gpu) {}  in GrD3DOpsRenderPass()
35 SkASSERT(fGpu == rt->getContext()->priv().getGpu()); in set()
51 GrGpu* GrD3DOpsRenderPass::gpu() { return fGpu; } in gpu()
56 d3dRT->msaaTextureResource()->setResourceState(fGpu, D3D12_RESOURCE_STATE_RENDER_TARGET); in onBegin()
58 d3dRT->setResourceState(fGpu, D3D12_RESOURCE_STATE_RENDER_TARGET); in onBegin()
60 fGpu->currentCommandList()->setRenderTarget(d3dRT); in onBegin()
65 fGpu->currentCommandList()->clearRenderTargetView(d3dRT, fClearColor, nullptr); in onBegin()
70 d3dStencil->setResourceState(fGpu, D3D12_RESOURCE_STATE_DEPTH_WRITE); in onBegin()
72 fGpu->currentCommandList()->clearDepthStencilView(d3dStencil, 0, nullptr); in onBegin()
180 fGpu->resourceProvider().findOrCreateCompatiblePipelineState(d3dRT, info); in onBindPipeline()
185 fGpu->currentCommandList()->setGraphicsRootSignature(fCurrentPipelineState->rootSignature()); in onBindPipeline()
186 fGpu->currentCommandList()->setPipelineState(fCurrentPipelineState->pipeline()); in onBindPipeline()
188 fGpu->currentCommandList()->setDefaultSamplePositions(); in onBindPipeline()
190 fGpu->currentCommandList()->setCenteredSamplePositions(fRenderTarget->numSamples()); in onBindPipeline()
193 fCurrentPipelineState->setAndBindConstants(fGpu, fRenderTarget, info); in onBindPipeline()
195 set_stencil_ref(fGpu, info); in onBindPipeline()
196 set_blend_factor(fGpu, info); in onBindPipeline()
197 set_primitive_topology(fGpu, info); in onBindPipeline()
200 set_scissor_rects(fGpu, fRenderTarget, fOrigin, fCurrentPipelineBounds); in onBindPipeline()
202 set_viewport(fGpu, fRenderTarget); in onBindPipeline()
213 set_scissor_rects(fGpu, fRenderTarget, fOrigin, combinedScissorRect); in onSetScissorRect()
230 update_resource_state(geomProcTextures[i]->peekTexture(), fRenderTarget, fGpu); in onBindTextures()
234 update_resource_state(te.texture(), fRenderTarget, fGpu); in onBindTextures()
238 update_resource_state(dstTexture, fRenderTarget, fGpu); in onBindTextures()
242 fCurrentPipelineState->setAndBindTextures(fGpu, geomProc, geomProcTextures, pipeline); in onBindTextures()
253 SkASSERT(!fGpu->caps()->usePrimitiveRestart()); // Ignore primitiveRestart parameter. in onBindBuffers()
255 GrD3DDirectCommandList* currCmdList = fGpu->currentCommandList(); in onBindBuffers()
258 fCurrentPipelineState->bindBuffers(fGpu, std::move(indexBuffer), std::move(instanceBuffer), in onBindBuffers()
265 fGpu->currentCommandList()->drawInstanced(vertexCount, instanceCount, baseVertex, baseInstance); in onDrawInstanced()
266 fGpu->stats()->incNumDraws(); in onDrawInstanced()
272 fGpu->currentCommandList()->drawIndexedInstanced(indexCount, instanceCount, baseIndex, in onDrawIndexedInstanced()
274 fGpu->stats()->incNumDraws(); in onDrawIndexedInstanced()
279 sk_sp<GrD3DCommandSignature> cmdSig = fGpu->resourceProvider().findOrCreateCommandSignature( in onDrawIndirect()
281 fGpu->currentCommandList()->executeIndirect(cmdSig, drawCount, in onDrawIndirect()
283 fGpu->stats()->incNumDraws(); in onDrawIndirect()
289 sk_sp<GrD3DCommandSignature> cmdSig = fGpu->resourceProvider().findOrCreateCommandSignature( in onDrawIndexedIndirect()
291 fGpu->currentCommandList()->executeIndirect(cmdSig, drawCount, in onDrawIndexedIndirect()
293 fGpu->stats()->incNumDraws(); in onDrawIndexedIndirect()
322 fGpu->currentCommandList()->clearRenderTargetView(d3dRT, color, &clearRect); in onClear()
343 fGpu->currentCommandList()->clearDepthStencilView(d3dStencil, stencilColor, &clearRect); in onClearStencilClip()
351 fGpu->endRenderPass(fRenderTarget, fOrigin, fBounds); in inlineUpload()
367 fGpu->endRenderPass(fRenderTarget, fOrigin, fBounds); in submit()