Home
last modified time | relevance | path

Searched refs:colorAttachments (Results 1 – 25 of 93) sorted by relevance

1234

/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
DFramebufferFetchTest.cpp400 GLenum colorAttachments[kMaxColorBuffer] = {GL_COLOR_ATTACHMENT0, GL_COLOR_ATTACHMENT1, in MultipleRenderTargetTest() local
417 glFramebufferTexture2D(GL_FRAMEBUFFER, colorAttachments[i], GL_TEXTURE_2D, in MultipleRenderTargetTest()
420 glDrawBuffers(kMaxColorBuffer, &colorAttachments[0]); in MultipleRenderTargetTest()
433 glReadBuffer(colorAttachments[0]); in MultipleRenderTargetTest()
435 glReadBuffer(colorAttachments[1]); in MultipleRenderTargetTest()
437 glReadBuffer(colorAttachments[2]); in MultipleRenderTargetTest()
439 glReadBuffer(colorAttachments[3]); in MultipleRenderTargetTest()
454 GLenum colorAttachments[kMaxColorBuffer] = {GL_COLOR_ATTACHMENT0, GL_COLOR_ATTACHMENT1, in MultipleRenderTargetArrayTest() local
471 glFramebufferTexture2D(GL_FRAMEBUFFER, colorAttachments[i], GL_TEXTURE_2D, in MultipleRenderTargetArrayTest()
474 glDrawBuffers(kMaxColorBuffer, &colorAttachments[0]); in MultipleRenderTargetArrayTest()
[all …]
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/metal/
DCommandBufferMTL.mm54 auto& attachmentInfo = renderPass->colorAttachments[i];
57 descriptor.colorAttachments[i].loadAction = MTLLoadActionClear;
58 descriptor.colorAttachments[i].clearColor =
62 descriptor.colorAttachments[i].loadAction = MTLLoadActionLoad;
65 descriptor.colorAttachments[i].texture =
67 descriptor.colorAttachments[i].level = attachmentInfo.view->GetBaseMipLevel();
68 descriptor.colorAttachments[i].slice = attachmentInfo.view->GetBaseArrayLayer();
72 descriptor.colorAttachments[i].resolveTexture =
74 descriptor.colorAttachments[i].resolveLevel =
76 descriptor.colorAttachments[i].resolveSlice =
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/metal/
DCommandBufferMTL.mm71 auto& attachmentInfo = renderPass->colorAttachments[attachment];
75 descriptor.colorAttachments[i].loadAction = MTLLoadActionClear;
76 descriptor.colorAttachments[i].clearColor = MTLClearColorMake(
82 descriptor.colorAttachments[i].loadAction = MTLLoadActionLoad;
86 descriptor.colorAttachments[i].texture =
88 descriptor.colorAttachments[i].level = attachmentInfo.view->GetBaseMipLevel();
89 descriptor.colorAttachments[i].slice = attachmentInfo.view->GetBaseArrayLayer();
93 descriptor.colorAttachments[i].resolveTexture =
95 descriptor.colorAttachments[i].resolveLevel =
97 descriptor.colorAttachments[i].resolveSlice =
[all …]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/
Dmtl_state_cache.mm159 [objCDesc.colorAttachments setObject:ToObjC(desc.outputDescriptor.colorAttachments[i])
618 if (colorAttachments[i] != rhs.colorAttachments[i])
634 this->colorAttachments[colorIndex].writeMask = MTLColorWriteMaskNone;
745 auto &renderPassColorAttachment = this->colorAttachments[i];
753 outputDescriptor.colorAttachments[i].reset(texture->pixelFormat(),
760 outputDescriptor.colorAttachments[i].reset(texture->pixelFormat(),
767 outputDescriptor.colorAttachments[i].writeMask &= texture->getColorWritableMask();
772 outputDescriptor.colorAttachments[i].blendingEnabled = false;
773 outputDescriptor.colorAttachments[i].pixelFormat = MTLPixelFormatInvalid;
780 outputDescriptor.colorAttachments[i].reset();
[all …]
/third_party/flutter/skia/src/gpu/mtl/
DGrMtlGpuCommandBuffer.mm221 fRenderPassDesc.colorAttachments[0].clearColor = MTLClearColorMake(color.fR, color.fG, color.fB,
223 fRenderPassDesc.colorAttachments[0].loadAction = MTLLoadActionClear;
225 fRenderPassDesc.colorAttachments[0].loadAction = MTLLoadActionLoad;
287 renderPassDesc.colorAttachments[0].texture =
289 renderPassDesc.colorAttachments[0].slice = 0;
290 renderPassDesc.colorAttachments[0].level = 0;
292 renderPassDesc.colorAttachments[0].clearColor =
294 renderPassDesc.colorAttachments[0].loadAction =
296 renderPassDesc.colorAttachments[0].storeAction =
318 fRenderPassDesc.colorAttachments[0].loadAction = MTLLoadActionLoad;
DGrMtlCommandBuffer.mm75 if (compatible(fPreviousRenderPassDescriptor.colorAttachments[0],
76 descriptor.colorAttachments[0], pipelineState) &&
/third_party/flutter/skia/third_party/externals/dawn/examples/
DCHelloTriangle.cpp135 DawnRenderPassColorAttachmentDescriptor* colorAttachments = {&colorAttachment}; in frame() local
143 renderpassInfo.colorAttachments = &colorAttachments; in frame()
/third_party/flutter/skia/third_party/externals/imgui/examples/
Dimgui_impl_metal.mm153 _sampleCount = renderPassDescriptor.colorAttachments[0].texture.sampleCount;
154 _colorPixelFormat = renderPassDescriptor.colorAttachments[0].texture.pixelFormat;
374 … pipelineDescriptor.colorAttachments[0].pixelFormat = self.framebufferDescriptor.colorPixelFormat;
375 pipelineDescriptor.colorAttachments[0].blendingEnabled = YES;
376 pipelineDescriptor.colorAttachments[0].rgbBlendOperation = MTLBlendOperationAdd;
377 pipelineDescriptor.colorAttachments[0].alphaBlendOperation = MTLBlendOperationAdd;
378 pipelineDescriptor.colorAttachments[0].sourceRGBBlendFactor = MTLBlendFactorSourceAlpha;
379 pipelineDescriptor.colorAttachments[0].sourceAlphaBlendFactor = MTLBlendFactorSourceAlpha;
380 …pipelineDescriptor.colorAttachments[0].destinationRGBBlendFactor = MTLBlendFactorOneMinusSourceAlp…
381 …pipelineDescriptor.colorAttachments[0].destinationAlphaBlendFactor = MTLBlendFactorOneMinusSourceA…
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
DFramebuffer11.cpp68 const auto &colorAttachments = mState.getColorAttachments(); in markAttachmentsDirty() local
71 const gl::FramebufferAttachment &colorAttachment = colorAttachments[drawBuffer]; in markAttachmentsDirty()
294 const auto &colorAttachments = mState.getColorAttachments(); in blitImpl() local
297 for (size_t colorAttachment = 0; colorAttachment < colorAttachments.size(); in blitImpl()
300 const gl::FramebufferAttachment &drawBuffer = colorAttachments[colorAttachment]; in blitImpl()
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/
DCommandEncoder.cpp456 DAWN_TRY(ValidateRenderPassColorAttachment(device, descriptor->colorAttachments[i], in ValidateRenderPassDescriptor()
703 if (descriptor->colorAttachments[i] != nullptr) { in BeginRenderPass()
705 cmd->colorAttachments[i].view = descriptor->colorAttachments[i]->attachment; in BeginRenderPass()
706 cmd->colorAttachments[i].resolveTarget = in BeginRenderPass()
707 descriptor->colorAttachments[i]->resolveTarget; in BeginRenderPass()
708 cmd->colorAttachments[i].loadOp = descriptor->colorAttachments[i]->loadOp; in BeginRenderPass()
709 cmd->colorAttachments[i].storeOp = descriptor->colorAttachments[i]->storeOp; in BeginRenderPass()
710 cmd->colorAttachments[i].clearColor = descriptor->colorAttachments[i]->clearColor; in BeginRenderPass()
1143 RenderPassColorAttachmentInfo* colorAttachment = &renderPass->colorAttachments[i]; in ValidateRenderPass()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
DFramebuffer11.cpp69 const auto &colorAttachments = mState.getColorAttachments(); in markAttachmentsDirty() local
72 const gl::FramebufferAttachment &colorAttachment = colorAttachments[drawBuffer]; in markAttachmentsDirty()
295 const auto &colorAttachments = mState.getColorAttachments(); in blitImpl() local
298 for (size_t colorAttachment = 0; colorAttachment < colorAttachments.size(); in blitImpl()
301 const gl::FramebufferAttachment &drawBuffer = colorAttachments[colorAttachment]; in blitImpl()
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
DRenderPassDescriptorValidationTests.cpp104 std::array<wgpu::RenderPassColorAttachment, kMaxColorAttachments + 1> colorAttachments; in TEST_F() local
105 for (uint32_t i = 0; i < colorAttachments.size(); i++) { in TEST_F()
106 colorAttachments[i].view = in TEST_F()
108 colorAttachments[i].resolveTarget = nullptr; in TEST_F()
109 colorAttachments[i].clearColor = {0.0f, 0.0f, 0.0f, 0.0f}; in TEST_F()
110 colorAttachments[i].loadOp = wgpu::LoadOp::Clear; in TEST_F()
111 colorAttachments[i].storeOp = wgpu::StoreOp::Store; in TEST_F()
118 renderPass.colorAttachments = colorAttachments.data(); in TEST_F()
127 renderPass.colorAttachments = colorAttachments.data(); in TEST_F()
/third_party/skia/third_party/externals/dawn/src/dawn_native/
DCommandEncoder.cpp344 ValidateRenderPassColorAttachment(device, descriptor->colorAttachments[i], in ValidateRenderPassDescriptor()
571 TextureViewBase* view = descriptor->colorAttachments[i].view; in APIBeginRenderPass()
572 TextureViewBase* resolveTarget = descriptor->colorAttachments[i].resolveTarget; in APIBeginRenderPass()
574 cmd->colorAttachments[index].view = view; in APIBeginRenderPass()
575 cmd->colorAttachments[index].resolveTarget = resolveTarget; in APIBeginRenderPass()
576 cmd->colorAttachments[index].loadOp = descriptor->colorAttachments[i].loadOp; in APIBeginRenderPass()
577 cmd->colorAttachments[index].storeOp = descriptor->colorAttachments[i].storeOp; in APIBeginRenderPass()
578 cmd->colorAttachments[index].clearColor = in APIBeginRenderPass()
579 descriptor->colorAttachments[i].clearColor; in APIBeginRenderPass()
/third_party/skia/src/gpu/dawn/
DGrDawnOpsRenderPass.cpp70 wgpu::RenderPassColorAttachment* colorAttachments = { &colorAttachment }; in beginRenderPass() local
73 renderPassDescriptor.colorAttachments = colorAttachments; in beginRenderPass()
/third_party/skia/third_party/externals/imgui/backends/
Dimgui_impl_metal.mm169 _sampleCount = renderPassDescriptor.colorAttachments[0].texture.sampleCount;
170 _colorPixelFormat = renderPassDescriptor.colorAttachments[0].texture.pixelFormat;
390 … pipelineDescriptor.colorAttachments[0].pixelFormat = self.framebufferDescriptor.colorPixelFormat;
391 pipelineDescriptor.colorAttachments[0].blendingEnabled = YES;
392 pipelineDescriptor.colorAttachments[0].rgbBlendOperation = MTLBlendOperationAdd;
393 pipelineDescriptor.colorAttachments[0].sourceRGBBlendFactor = MTLBlendFactorSourceAlpha;
394 …pipelineDescriptor.colorAttachments[0].destinationRGBBlendFactor = MTLBlendFactorOneMinusSourceAlp…
395 pipelineDescriptor.colorAttachments[0].alphaBlendOperation = MTLBlendOperationAdd;
396 pipelineDescriptor.colorAttachments[0].sourceAlphaBlendFactor = MTLBlendFactorOne;
397 …pipelineDescriptor.colorAttachments[0].destinationAlphaBlendFactor = MTLBlendFactorOneMinusSourceA…
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/opengl/
DCommandBufferGL.cpp287 if (renderPass->colorAttachments[i].resolveTarget.Get() != nullptr) { in ResolveMultisampledRenderTargets()
295 renderPass->colorAttachments[i].view->GetTexture(); in ResolveMultisampledRenderTargets()
298 ASSERT(renderPass->colorAttachments[i].view->GetBaseMipLevel() == 0); in ResolveMultisampledRenderTargets()
306 renderPass->colorAttachments[i].resolveTarget->GetTexture(); in ResolveMultisampledRenderTargets()
309 renderPass->colorAttachments[i].resolveTarget->GetBaseMipLevel(); in ResolveMultisampledRenderTargets()
317 renderPass->colorAttachments[i].resolveTarget->GetBaseArrayLayer(); in ResolveMultisampledRenderTargets()
594 TextureViewBase* textureView = renderPass->colorAttachments[i].view.Get(); in ExecuteRenderPass()
664 const auto& attachmentInfo = renderPass->colorAttachments[i]; in ExecuteRenderPass()
/third_party/skia/third_party/externals/imgui/examples/example_glfw_metal/
Dmain.mm102 …renderPassDescriptor.colorAttachments[0].clearColor = MTLClearColorMake(clear_color[0] * clear_col…
103 renderPassDescriptor.colorAttachments[0].texture = drawable.texture;
104 renderPassDescriptor.colorAttachments[0].loadAction = MTLLoadActionClear;
105 renderPassDescriptor.colorAttachments[0].storeAction = MTLStoreActionStore;
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/dynamic_state/
DvktDynamicStateBaseClass.cpp159 std::vector<vk::VkImageView> colorAttachments(1); in initFramebuffer() local
160 colorAttachments[0] = *m_colorTargetView; in initFramebuffer()
162 …const FramebufferCreateInfo framebufferCreateInfo(*m_renderPass, colorAttachments, WIDTH, HEIGHT, … in initFramebuffer()
/third_party/skia/third_party/externals/imgui/examples/example_sdl_metal/
Dmain.mm110 …renderPassDescriptor.colorAttachments[0].clearColor = MTLClearColorMake(clear_color[0] * clear_col…
111 renderPassDescriptor.colorAttachments[0].texture = drawable.texture;
112 renderPassDescriptor.colorAttachments[0].loadAction = MTLLoadActionClear;
113 renderPassDescriptor.colorAttachments[0].storeAction = MTLStoreActionStore;
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fFboStateQueryTests.cpp654 } colorAttachments[] = in test() local
663 for (int ndx = 0; ndx < DE_LENGTH_OF_ARRAY(colorAttachments); ++ndx) in test()
664colorAttachments[ndx].internalFormat, GL_COLOR_ATTACHMENT0, colorAttachments[ndx].bitsR, colorAtta… in test()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/
DvktDrawMultipleInterpolationTests.cpp571 std::vector<vk::VkRenderingAttachmentInfoKHR> colorAttachments(imagesCount, in render() local
589 colorAttachments[i].imageView = **multisampleViews[i]; in render()
590 colorAttachments[i].resolveMode = vk::VK_RESOLVE_MODE_AVERAGE_BIT; in render()
591 colorAttachments[i].resolveImageView = **colorTargetViews[i]; in render()
594 colorAttachments[i].imageView = **colorTargetViews[i]; in render()
606 colorAttachments.data(), // const VkRenderingAttachmentInfoKHR* pColorAttachments; in render()
/third_party/skia/third_party/externals/dawn/src/dawn_node/binding/
DGPUCommandEncoder.cpp41 if (!conv(desc.colorAttachments, desc.colorAttachmentCount, descriptor.colorAttachments) || in beginRenderPass()
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/
DFramebufferD3D.cpp357 const auto &colorAttachments = mState.getColorAttachments(); in getColorAttachmentsForRender() local
361 for (size_t attachmentIndex = 0; attachmentIndex < colorAttachments.size(); ++attachmentIndex) in getColorAttachmentsForRender()
364 const gl::FramebufferAttachment &colorAttachment = colorAttachments[attachmentIndex]; in getColorAttachmentsForRender()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/
DFramebufferD3D.cpp325 const auto &colorAttachments = mState.getColorAttachments(); in getColorAttachmentsForRender() local
329 for (size_t attachmentIndex = 0; attachmentIndex < colorAttachments.size(); ++attachmentIndex) in getColorAttachmentsForRender()
332 const gl::FramebufferAttachment &colorAttachment = colorAttachments[attachmentIndex]; in getColorAttachmentsForRender()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineFramebufferAttachmentTests.cpp409 vector<SharedPtrVkImageView> colorAttachments; in test() local
459colorAttachments.push_back(makeSharedPtr(makeImageView(vk, device, ! caseDef.multisample ? *colorI… in test()
461 attachmentHandles.push_back(**colorAttachments.back()); in test()
1048 vector<SharedPtrVkImageView> colorAttachments; in testDifferentAttachmentSizes() local
1111colorAttachments.push_back(makeSharedPtr(makeImageView(vk, device, ! caseDef.multisample ? *colorI… in testDifferentAttachmentSizes()
1112 attachmentHandles.push_back(**colorAttachments.back()); in testDifferentAttachmentSizes()
1458 vector<SharedPtrVkImageView> colorAttachments; in testInputResolveSameAttachment() local
1516colorAttachments.push_back(makeSharedPtr(makeImageView(vk, device, *msColorImage, imageViewType, C… in testInputResolveSameAttachment()
1517 attachmentHandles.push_back(**colorAttachments.back()); in testInputResolveSameAttachment()
1519colorAttachments.push_back(makeSharedPtr(makeImageView(vk, device, *colorImage, imageViewType, COL… in testInputResolveSameAttachment()
[all …]

1234