Lines Matching refs:fGpu
29 GrD3DOpsRenderPass::GrD3DOpsRenderPass(GrD3DGpu* gpu) : fGpu(gpu) {}
36 SkASSERT(fGpu == rt->getContext()->priv().getGpu());
52 GrGpu* GrD3DOpsRenderPass::gpu() { return fGpu; }
57 d3dRT->msaaTextureResource()->setResourceState(fGpu, D3D12_RESOURCE_STATE_RENDER_TARGET);
59 d3dRT->setResourceState(fGpu, D3D12_RESOURCE_STATE_RENDER_TARGET);
61 fGpu->currentCommandList()->setRenderTarget(d3dRT);
66 fGpu->currentCommandList()->clearRenderTargetView(d3dRT, fClearColor, nullptr);
71 d3dStencil->setResourceState(fGpu, D3D12_RESOURCE_STATE_DEPTH_WRITE);
73 fGpu->currentCommandList()->clearDepthStencilView(d3dStencil, 0, nullptr);
181 fGpu->resourceProvider().findOrCreateCompatiblePipelineState(d3dRT, info);
186 fGpu->currentCommandList()->setGraphicsRootSignature(fCurrentPipelineState->rootSignature());
187 fGpu->currentCommandList()->setPipelineState(fCurrentPipelineState->pipeline());
188 fCurrentPipelineState->setAndBindConstants(fGpu, fRenderTarget, info);
190 set_stencil_ref(fGpu, info);
191 set_blend_factor(fGpu, info);
192 set_primitive_topology(fGpu, info);
195 set_scissor_rects(fGpu, fRenderTarget, fOrigin, fCurrentPipelineBounds);
197 set_viewport(fGpu, fRenderTarget);
208 set_scissor_rects(fGpu, fRenderTarget, fOrigin, combinedScissorRect);
225 update_resource_state(geomProcTextures[i]->peekTexture(), fRenderTarget, fGpu);
229 update_resource_state(te.texture(), fRenderTarget, fGpu);
233 update_resource_state(dstTexture, fRenderTarget, fGpu);
237 fCurrentPipelineState->setAndBindTextures(fGpu, geomProc, geomProcTextures, pipeline);
248 SkASSERT(!fGpu->caps()->usePrimitiveRestart()); // Ignore primitiveRestart parameter.
250 GrD3DDirectCommandList* currCmdList = fGpu->currentCommandList();
253 fCurrentPipelineState->bindBuffers(fGpu, std::move(indexBuffer), std::move(instanceBuffer),
260 fGpu->currentCommandList()->drawInstanced(vertexCount, instanceCount, baseVertex, baseInstance);
261 fGpu->stats()->incNumDraws();
267 fGpu->currentCommandList()->drawIndexedInstanced(indexCount, instanceCount, baseIndex,
269 fGpu->stats()->incNumDraws();
274 sk_sp<GrD3DCommandSignature> cmdSig = fGpu->resourceProvider().findOrCreateCommandSignature(
276 fGpu->currentCommandList()->executeIndirect(cmdSig, drawCount,
278 fGpu->stats()->incNumDraws();
284 sk_sp<GrD3DCommandSignature> cmdSig = fGpu->resourceProvider().findOrCreateCommandSignature(
286 fGpu->currentCommandList()->executeIndirect(cmdSig, drawCount,
288 fGpu->stats()->incNumDraws();
317 fGpu->currentCommandList()->clearRenderTargetView(d3dRT, color, &clearRect);
338 fGpu->currentCommandList()->clearDepthStencilView(d3dStencil, stencilColor, &clearRect);
346 fGpu->endRenderPass(fRenderTarget, fOrigin, fBounds);
362 fGpu->endRenderPass(fRenderTarget, fOrigin, fBounds);