Home
last modified time | relevance | path

Searched refs:clearParams (Results 1 – 13 of 13) sorted by relevance

/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/
DFramebufferD3D.cpp35 ClearParameters clearParams; in GetClearParameters() local
36 memset(&clearParams, 0, sizeof(ClearParameters)); in GetClearParameters()
38 clearParams.colorF = state.getColorClearValue(); in GetClearParameters()
39 clearParams.colorType = GL_FLOAT; in GetClearParameters()
40 clearParams.clearDepth = false; in GetClearParameters()
41 clearParams.depthValue = state.getDepthClearValue(); in GetClearParameters()
42 clearParams.clearStencil = false; in GetClearParameters()
43 clearParams.stencilValue = state.getStencilClearValue(); in GetClearParameters()
44 clearParams.stencilWriteMask = state.getDepthStencilState().stencilWritemask; in GetClearParameters()
51 clearParams.scissorEnabled = true; in GetClearParameters()
[all …]
DFramebufferD3D.h113 const ClearParameters &clearParams) = 0;
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
DClear11.cpp368 const ClearParameters &clearParams, in clearFramebuffer() argument
416 if (clearParams.scissorEnabled) in clearFramebuffer()
418 if (clearParams.scissor.x >= framebufferSize.width || in clearFramebuffer()
419 clearParams.scissor.y >= framebufferSize.height || clearParams.scissor.width == 0 || in clearFramebuffer()
420 clearParams.scissor.height == 0) in clearFramebuffer()
428 if (clearParams.scissor.x + clearParams.scissor.width <= 0 || in clearFramebuffer()
429 clearParams.scissor.y + clearParams.scissor.height <= 0) in clearFramebuffer()
435 clearParams.scissor.x > 0 || clearParams.scissor.y > 0 || in clearFramebuffer()
436 clearParams.scissor.x + clearParams.scissor.width < framebufferSize.width || in clearFramebuffer()
437 clearParams.scissor.y + clearParams.scissor.height < framebufferSize.height; in clearFramebuffer()
[all …]
DFramebuffer11.cpp87 const ClearParameters &clearParams) in clearImpl() argument
92 if (clearParams.scissorEnabled == true && colorAttachment != nullptr && in clearImpl()
98 ClearParameters presentPathFastClearParams = clearParams; in clearImpl()
107 ANGLE_TRY(clearer->clearFramebuffer(context, clearParams, mState)); in clearImpl()
DClear11.h43 const ClearParameters &clearParams,
DFramebuffer11.h66 const ClearParameters &clearParams) override;
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/shaders/
Dclear.metal19 constant ClearParams &clearParams [[buffer(0)]])
21 return float4(gCorners[vid], clearParams.clearDepth, 1.0);
24 fragment MultipleColorOutputs<float> clearFloatFS(constant ClearParams &clearParams [[buffer(0)]])
26 return toMultipleColorOutputs(clearParams.clearColor);
29 fragment MultipleColorOutputs<int> clearIntFS(constant ClearParams &clearParams [[buffer(0)]])
31 return toMultipleColorOutputs(as_type<int4>(clearParams.clearColor));
34 fragment MultipleColorOutputs<uint> clearUIntFS(constant ClearParams &clearParams [[buffer(0)]])
36 return toMultipleColorOutputs(as_type<uint4>(clearParams.clearColor));
Dmtl_default_shaders_src_autogen.inc682 constant ClearParams &clearParams [[buffer(0)]])
684 return float4(gCorners[vid], clearParams.clearDepth, 1.0);
687 fragment MultipleColorOutputs<float> clearFloatFS(constant ClearParams &clearParams [[buffer(0)]])
689 return toMultipleColorOutputs(clearParams.clearColor);
692 fragment MultipleColorOutputs<int> clearIntFS(constant ClearParams &clearParams [[buffer(0)]])
694 return toMultipleColorOutputs(as_type<int4>(clearParams.clearColor));
697 fragment MultipleColorOutputs<uint> clearUIntFS(constant ClearParams &clearParams [[buffer(0)]])
699 return toMultipleColorOutputs(as_type<uint4>(clearParams.clearColor));
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d9/
DRenderer9.cpp1912 void Renderer9::clear(const ClearParameters &clearParams, in clear() argument
1917 ASSERT(clearParams.colorType == GL_FLOAT); in clear()
1920 bool clearColor = clearParams.clearColor[0]; in clear()
1921 for (unsigned int i = 0; i < clearParams.clearColor.size(); i++) in clear()
1923 ASSERT(clearParams.clearColor[i] == clearColor); in clear()
1926 float depth = gl::clamp01(clearParams.depthValue); in clear()
1927 DWORD stencil = clearParams.stencilValue & 0x000000FF; in clear()
1930 if (clearParams.clearStencil && depthStencilRenderTarget) in clear()
1943 clearParams.clearStencil && in clear()
1944 (clearParams.stencilWriteMask & stencilUnmasked) != stencilUnmasked; in clear()
[all …]
DFramebuffer9.h61 const ClearParameters &clearParams) override;
DFramebuffer9.cpp61 const ClearParameters &clearParams) in clearImpl() argument
74 mRenderer->clear(clearParams, mRenderTargetCache.getColors()[0], in clearImpl()
DRenderer9.h149 void clear(const ClearParameters &clearParams,
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/
Dmtl_utils.mm496 ClearRectParams clearParams;
510 clearParams.clearColor = clearColor;
511 clearParams.dstTextureSize = texture->sizeAt0();
512 clearParams.enabledBuffers.set(0);
513 clearParams.clearArea = gl::Rectangle(0, 0, texture->widthAt0(), texture->heightAt0());
516 contextMtl->getDisplay()->getUtils().clearWithDraw(context, encoder, clearParams));