Home
last modified time | relevance | path

Searched refs:colorBuffer (Results 1 – 25 of 70) sorted by relevance

123

/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
DWebGLFramebufferTest.cpp35 GLRenderbuffer *colorBuffer,
153 GLRenderbuffer *colorBuffer, in testAttachment() argument
160 glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, *colorBuffer); in testAttachment()
176 void testAttachments(GLRenderbuffer &colorBuffer, in testAttachments() argument
185 glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, colorBuffer); in testAttachments()
199 GLRenderbuffer colorBuffer; in testColorRenderbuffer() local
200 glBindRenderbuffer(GL_RENDERBUFFER, colorBuffer); in testColorRenderbuffer()
203 testAttachment(width, height, &colorBuffer, GL_COLOR_ATTACHMENT0, &colorBuffer, in testColorRenderbuffer()
327 GLRenderbuffer *colorBuffer, in testDepthStencilRenderbuffer() argument
359 testAttachment(width, height, colorBuffer, GL_DEPTH_STENCIL_ATTACHMENT, &depthStencilBuffer, in testDepthStencilRenderbuffer()
[all …]
/third_party/vk-gl-cts/external/openglcts/modules/glesext/geometry_shader/
DesextcGeometryShaderLayeredRenderingBoundaryCondition.cpp588 unsigned char* colorBuffer, in getReferenceColor() argument
593 memcpy(colorBuffer, m_red_color, colorBufferSize); in getReferenceColor()
597 memcpy(colorBuffer, m_green_color, colorBufferSize); in getReferenceColor()
601 memset(colorBuffer, 0, colorBufferSize); in getReferenceColor()
635 unsigned char* colorBuffer, in getReferenceColor() argument
640 memcpy(colorBuffer, m_white_color, colorBufferSize); in getReferenceColor()
644 memset(colorBuffer, 0, colorBufferSize); in getReferenceColor()
747 unsigned char* colorBuffer, in getReferenceColor() argument
752 memcpy(colorBuffer, m_white_color, colorBufferSize); in getReferenceColor()
756 memset(colorBuffer, 0, colorBufferSize); in getReferenceColor()
[all …]
DesextcGeometryShaderLayeredRenderingBoundaryCondition.hpp64 virtual void getReferenceColor(glw::GLint layerIndex, unsigned char* colorBuffer,
138 void getReferenceColor(glw::GLint layerIndex, unsigned char* colorBuffer, int colorBufferSize);
190 void getReferenceColor(glw::GLint layerIndex, unsigned char* colorBuffer, int colorBufferSize);
225 void getReferenceColor(glw::GLint layerIndex, unsigned char* colorBuffer, int colorBufferSize);
269 …virtual void getReferenceColor(glw::GLint layerIndex, unsigned char* colorBuffer, int colorBufferS…
/third_party/vk-gl-cts/framework/referencerenderer/
DrrFragmentOperations.cpp698 …erFragment, const Fragment* inputFragments, bool isSRGB, const tcu::PixelBufferAccess& colorBuffer) in executeColorWrite() argument
714 colorBuffer.setPixel(combinedColor, fragSampleNdx, frag.pixelCoord.x(), frag.pixelCoord.y()); in executeColorWrite()
719 …t numSamplesPerFragment, const Fragment* inputFragments, const tcu::PixelBufferAccess& colorBuffer) in executeRGBA8ColorWrite() argument
722 const int xStride = colorBuffer.getRowPitch(); in executeRGBA8ColorWrite()
723 const int yStride = colorBuffer.getSlicePitch(); in executeRGBA8ColorWrite()
724 deUint8* const basePtr = (deUint8*)colorBuffer.getDataPtr(); in executeRGBA8ColorWrite()
742 …actor, const Vec4& colorMaskNegationFactor, bool isSRGB, const tcu::PixelBufferAccess& colorBuffer) in executeMaskedColorWrite() argument
750 …Vec4 originalColor = colorBuffer.getPixel(fragSampleNdx, frag.pixelCoord.x(), frag.pixelCoord.y… in executeMaskedColorWrite()
761 colorBuffer.setPixel(newColor, fragSampleNdx, frag.pixelCoord.x(), frag.pixelCoord.y()); in executeMaskedColorWrite()
766 …t Fragment* inputFragments, const tcu::BVec4& colorMask, const tcu::PixelBufferAccess& colorBuffer) in executeSignedValueWrite() argument
[all …]
DrrFragmentOperations.hpp146 …rFragment, const Fragment* inputFragments, bool isSRGB, const tcu::PixelBufferAccess& colorBuffer);
147 … numSamplesPerFragment, const Fragment* inputFragments, const tcu::PixelBufferAccess& colorBuffer);
148 … const tcu::Vec4& colorMaskNegationFactor, bool isSRGB, const tcu::PixelBufferAccess& colorBuffer);
149 … Fragment* inputFragments, const tcu::BVec4& colorMask, const tcu::PixelBufferAccess& colorBuffer);
150 … Fragment* inputFragments, const tcu::BVec4& colorMask, const tcu::PixelBufferAccess& colorBuffer);
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/wgl/
DDXGISwapChainWindowSurfaceWGL.cpp191 ID3D11Texture2D *colorBuffer = nullptr; in bindTexImage() local
193 reinterpret_cast<void **>(&colorBuffer)); in bindTexImage()
200 mTextureHandle = mFunctionsWGL->dxRegisterObjectNV(mDeviceHandle, colorBuffer, textureID, in bindTexImage()
202 SafeRelease(colorBuffer); in bindTexImage()
491 ID3D11Texture2D *colorBuffer = nullptr; in createSwapChain() local
493 reinterpret_cast<void **>(&colorBuffer)); in createSwapChain()
502 mFunctionsWGL->dxRegisterObjectNV(mDeviceHandle, colorBuffer, mColorRenderbufferID, in createSwapChain()
504 SafeRelease(colorBuffer); in createSwapChain()
514 mTextureHandle = mFunctionsWGL->dxRegisterObjectNV(mDeviceHandle, colorBuffer, mTextureID, in createSwapChain()
/third_party/skia/modules/svg/src/
DSkSVGXMLDOM.cpp47 char colorBuffer[8]; in setSVGColor() local
48 … int res = snprintf(colorBuffer, sizeof(colorBuffer), "#%06x", (svgThemeColor.color & 0xFFFFFF)); in setSVGColor()
52 attr->fValue = dupstr(fAlloc, colorBuffer, strlen(colorBuffer)); in setSVGColor()
/third_party/vk-gl-cts/modules/glshared/
DglsFragmentOpUtil.cpp213 …id ReferenceQuadRenderer::flushFragmentBuffer (const rr::MultisamplePixelBufferAccess& colorBuffer, in flushFragmentBuffer() argument
219 …m_fragmentProcessor.render(colorBuffer, depthBuffer, stencilBuffer, &m_fragmentBuffer[0], m_fragme… in flushFragmentBuffer()
223 void ReferenceQuadRenderer::render (const tcu::PixelBufferAccess& colorBuffer, in render() argument
262 flushFragmentBuffer(rr::MultisamplePixelBufferAccess::fromMultisampleAccess(colorBuffer), in render()
272 flushFragmentBuffer(rr::MultisamplePixelBufferAccess::fromMultisampleAccess(colorBuffer), in render()
DglsFragmentOpUtil.hpp118 void render (const tcu::PixelBufferAccess& colorBuffer,
130 void flushFragmentBuffer (const rr::MultisamplePixelBufferAccess& colorBuffer,
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/
DRenderPipelineGL.cpp111 GLuint colorBuffer = static_cast<GLuint>(static_cast<uint8_t>(attachment)); in ApplyColorState() local
113 gl.Enablei(GL_BLEND, colorBuffer); in ApplyColorState()
114 gl.BlendEquationSeparatei(colorBuffer, GLBlendMode(state->blend->color.operation), in ApplyColorState()
116 gl.BlendFuncSeparatei(colorBuffer, in ApplyColorState()
122 gl.Disablei(GL_BLEND, colorBuffer); in ApplyColorState()
124 gl.ColorMaski(colorBuffer, state->writeMask & wgpu::ColorWriteMask::Red, in ApplyColorState()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/
DvktDrawShaderLayerTests.cpp667 void draw (Context& context, const VkBuffer colorBuffer) const in draw()
716 …copyImageToBuffer(vk, *m_cmdBuffer, *m_colorImage, colorBuffer, tcu::IVec2(m_renderSize.x(), m_ren… in draw()
783 …const SharedPtr<Buffer> colorBuffer = Buffer::createAndAlloc(vk, device, makeBufferCreateInf… in testVertexShader() local
787 const Allocation alloc = colorBuffer->getBoundMemory(); in testVertexShader()
801 renderer.draw(context, colorBuffer->object()); in testVertexShader()
806 const Allocation alloc = colorBuffer->getBoundMemory(); in testVertexShader()
843 …const SharedPtr<Buffer> colorBuffer = Buffer::createAndAlloc(vk, device, makeBufferCreateInf… in testTessellationShader() local
847 const Allocation alloc = colorBuffer->getBoundMemory(); in testTessellationShader()
861 renderer.draw(context, colorBuffer->object()); in testTessellationShader()
866 const Allocation alloc = colorBuffer->getBoundMemory(); in testTessellationShader()
DvktDrawShaderViewportIndexTests.cpp724 void draw (Context& context, const VkBuffer colorBuffer) const in draw()
791 …copyImageToBuffer(vk, *m_cmdBuffer, *m_colorImage, colorBuffer, tcu::IVec2(m_renderSize.x(), m_ren… in draw()
843 …const SharedPtr<Buffer> colorBuffer = Buffer::createAndAlloc(vk, device, makeBufferCreateInfo(… in testVertexFragmentShader() local
847 const Allocation alloc = colorBuffer->getBoundMemory(); in testVertexFragmentShader()
861 renderer.draw(context, colorBuffer->object()); in testVertexFragmentShader()
866 const Allocation alloc = colorBuffer->getBoundMemory(); in testVertexFragmentShader()
904 …const SharedPtr<Buffer> colorBuffer = Buffer::createAndAlloc(vk, device, makeBufferCreateInfo(… in testTessellationShader() local
908 const Allocation alloc = colorBuffer->getBoundMemory(); in testTessellationShader()
922 renderer.draw(context, colorBuffer->object()); in testTessellationShader()
927 const Allocation alloc = colorBuffer->getBoundMemory(); in testTessellationShader()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/geometry/
DvktGeometryInstancedRenderingTests.cpp146 const VkBuffer colorBuffer, in draw() argument
198 …copyImageToBuffer(vk, *cmdBuffer, *colorImage, colorBuffer, tcu::IVec2(renderSize.x(), renderSize.… in draw()
367 …const Unique<VkBuffer> colorBuffer (makeBuffer(vk, device, colorBufferSize, VK_BUFFER_USAGE_TR… in test() local
368 …const UniquePtr<Allocation> colorBufferAlloc (bindBuffer(vk, device, allocator, *colorBuffer, Mem… in test()
379 …draw(context, renderSize, colorFormat, clearColor, *colorBuffer, params.numDrawInstances, perInsta… in test()
DvktGeometryBasicClass.cpp112 const Buffer colorBuffer (vk, device, memAlloc, makeBufferCreateInfo(colorBufferSizeBytes, in iterate() local
171 copyImageToBuffer(vk, *cmdBuffer, *colorAttachmentImage, *colorBuffer, resolution); in iterate()
178 const Allocation& colorBufferAlloc = colorBuffer.getAllocation(); in iterate()
DvktGeometryLayeredRenderingTests.cpp1246 …const Unique<VkBuffer> colorBuffer (makeBuffer (vk, device, colorBufferSize, VK_BUFFER_USA… in test() local
1247 …const UniquePtr<Allocation> colorBufferAlloc (bindBuffer (vk, device, allocator, *colorBuffer in test()
1272 copyLayeredImageToBuffer(vk, *cmdBuffer, *colorImage, *colorBuffer, params.image); in test()
1329 …const Unique<VkBuffer> colorBuffer (makeBuffer (vk, device, colorBufferSize, VK_BUFFER_USA… in testLayeredReadBack() local
1330 …const UniquePtr<Allocation> colorBufferAlloc (bindBuffer (vk, device, allocator, *colorBuffer in testLayeredReadBack()
1414 …vk.cmdCopyBufferToImage(*cmdBuffer, *colorBuffer, *colorImage, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMA… in testLayeredReadBack()
1517 …rMemoryBarrier(VK_ACCESS_TRANSFER_WRITE_BIT, VK_ACCESS_HOST_READ_BIT, *colorBuffer, 0ull, VK_WHOLE… in testLayeredReadBack()
1520 …ToBuffer(*cmdBuffer, *colorImage, VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, *colorBuffer, 1u, &region); in testLayeredReadBack()
1601 …const Unique<VkBuffer> colorBuffer (makeBuffer(vk, device, colorBufferSize, VK_BUFFER_USAGE_T… in testSecondaryCmdBuffer() local
1602 …const UniquePtr<Allocation> colorBufferAlloc (bindBuffer(vk, device, allocator, *colorBuffer, Me… in testSecondaryCmdBuffer()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/fragment_ops/
DvktFragmentOperationsScissorMultiViewportTests.cpp347 void draw (Context& context, const VkBuffer colorBuffer) const in draw()
365 copyImageToBuffer(vk, *m_cmdBuffer, *m_colorImage, colorBuffer, m_renderSize); in draw()
412 …const Unique<VkBuffer> colorBuffer (makeBuffer(vk, device, colorBufferSize, VK_BUFFER_USAGE_TR… in test() local
413 …const UniquePtr<Allocation> colorBufferAlloc (bindBuffer(vk, device, allocator, *colorBuffer, Mem… in test()
426 renderer.draw(context, *colorBuffer); in test()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/
DvktTessellationGeometryPassthroughTests.cpp365 const Buffer& colorBuffer, in getPixelBufferAccess() argument
369 const Allocation& alloc = colorBuffer.getAllocation(); in getPixelBufferAccess()
502 const Buffer* const colorBuffer[PIPELINE_CASES] = { &colorBuffer1, &colorBuffer2 }; in iterate() local
587 …copyImageToBuffer(vk, *cmdBuffer, *colorAttachmentImage, colorBuffer[pipelineNdx]->get(), renderSi… in iterate()
595 …tcu::ConstPixelBufferAccess image0 = getPixelBufferAccess(vk, device, *colorBuffer[0], colorFormat… in iterate()
596 …tcu::ConstPixelBufferAccess image1 = getPixelBufferAccess(vk, device, *colorBuffer[1], colorFormat… in iterate()
DvktTessellationGeometryPointSizeTests.cpp328 …const Buffer colorBuffer (vk, device, allocator, makeBufferCreateInfo(colorBufferSizeByt… in test() local
387 copyImageToBuffer(vk, *cmdBuffer, *colorAttachmentImage, *colorBuffer, renderSize); in test()
394 const Allocation& alloc = colorBuffer.getAllocation(); in test()
/third_party/skia/third_party/externals/swiftshader/src/Device/
DContext.cpp141 if(colorBuffer[index] && colorBuffer[index]->getFormat().isFloatFormat()) in isColorClamped()
153 if(colorBuffer[index]) in colorFormat()
155 return colorBuffer[index]->getFormat(); in colorFormat()
1158 …if(!attachments.colorBuffer[index] || attachments.colorBuffer[index]->getFormat() == VK_FORMAT_UND… in colorWriteActive()
DRenderer.cpp384 draw->colorBuffer[index] = attachments.colorBuffer[index]; in draw()
386 if(draw->colorBuffer[index]) in draw()
388 …data->colorBuffer[index] = (unsigned int *)attachments.colorBuffer[index]->getOffsetPointer({ 0, 0… in draw()
389 …data->colorPitchB[index] = attachments.colorBuffer[index]->rowPitchBytes(VK_IMAGE_ASPECT_COLOR_BIT… in draw()
390 …data->colorSliceB[index] = attachments.colorBuffer[index]->slicePitchBytes(VK_IMAGE_ASPECT_COLOR_B… in draw()
468 for(auto *target : colorBuffer) in teardown()
DRenderer.hpp96 unsigned int *colorBuffer[MAX_COLOR_BUFFERS]; member
170 vk::ImageView *colorBuffer[MAX_COLOR_BUFFERS]; member
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineFramebufferAttachmentTests.cpp403 …const Unique<VkBuffer> colorBuffer (makeBuffer(vk, device, colorBufferSize, VK_BUFFER_USAGE_TR… in test() local
404 …const UniquePtr<Allocation> colorBufferAlloc (bindBuffer(vk, device, allocator, *colorBuffer, Mem… in test()
619 …ToBuffer(*cmdBuffer, *colorImage, VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, *colorBuffer, 1u, &region); in test()
630 *colorBuffer, // VkBuffer buffer; in test()
803 …const Unique<VkBuffer> colorBuffer (makeBuffer(vk, device, colorBufferSize, VK_BUFFER_USAGE_T… in testNoAtt() local
804 …const UniquePtr<Allocation> colorBufferAlloc (bindBuffer(vk, device, allocator, *colorBuffer, Me… in testNoAtt()
904 …vk.cmdCopyImageToBuffer(*cmdBuffer, *image, VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, *colorBuffer, 1u… in testNoAtt()
915 *colorBuffer, // VkBuffer buffer; in testNoAtt()
1490 …auto colorBuffer = makeBuffer(vk, device, colorBufferSize, VK_BUFFER_USAGE_TRANSFER_DST_… in testInputResolveSameAttachment() local
1491 …MovePtr<Allocation> colorBufferAlloc = bindBuffer(vk, device, allocator, *colorBuffer, Memory… in testInputResolveSameAttachment()
[all …]
DvktPipelineMultisampleShaderFragmentMaskTests.cpp444 Move<VkBuffer> colorBuffer; //!< Buffer used to copy image data member
708 …const VkDescriptorBufferInfo bufferInfo = makeDescriptorBufferInfo(*wd.colorBuffer, 0u, wd.colorB… in drawAndSampleInputAttachment()
899 *wd.colorBuffer, // VkBuffer buffer; in drawAndSampleInputAttachment()
1081 …const VkDescriptorBufferInfo resultBufferInfo = makeDescriptorBufferInfo(*wd.colorBuffer, 0ull, wd… in dispatchSampleImage()
1116 *wd.colorBuffer, // VkBuffer buffer; in dispatchSampleImage()
1172 wd.colorBuffer = makeBuffer(vk, device, wd.colorBufferSize, VK_BUFFER_USAGE_STORAGE_BUFFER_BIT); in test()
1173 …wd.colorBufferAlloc = bindBuffer(vk, device, *allocator, *wd.colorBuffer, MemoryRequirement::HostV… in test()
DvktPipelineStencilExportTests.cpp465 …const Unique<VkBuffer> colorBuffer (makeBuffer(vk, device, colorBufferSize, VK_BUFFER_USAGE_TR… in testStencilExportReplace() local
466 …const UniquePtr<Allocation> colorBufferAlloc (bindBuffer(vk, device, allocator, *colorBuffer, Mem… in testStencilExportReplace()
523 …copyImageToBuffer(vk, *cmdBuffer, *colorImage, *colorBuffer, tcu::IVec2(renderSize.x(), renderSize… in testStencilExportReplace()
/third_party/vk-gl-cts/modules/gles2/functional/
Des2fRasterizationTests.cpp1143 const std::vector<tcu::Vec4> colorBuffer (drawBuffer.size(), tcu::Vec4(0.5f, 0.5f, 0.5f, 1.0f)); in iterate() local
1150 drawPrimitives(resultImage, drawBuffer, colorBuffer, GL_TRIANGLES); in iterate()
1572 std::vector<tcu::Vec4> colorBuffer; in iterate() local
1576 generateVertices(m_iteration, drawBuffer, colorBuffer); in iterate()
1577 extractTriangles(triangles, drawBuffer, colorBuffer); in iterate()
1583 …tcu::TestLog::Message << "\t" << drawBuffer[vtxNdx] << ",\tcolor= " << colorBuffer[vtxNdx] << tcu:… in iterate()
1587 drawPrimitives(resultImage, drawBuffer, colorBuffer, m_primitive); in iterate()
1769 std::vector<tcu::Vec4> colorBuffer; in iterate() local
1773 generateVertices(m_iteration, drawBuffer, colorBuffer); in iterate()
1774 extractLines(lines, drawBuffer, colorBuffer); in iterate()
[all …]

123