/third_party/skia/third_party/externals/dawn/src/dawn_native/ |
D | CommandBuffer.cpp | 107 auto& attachmentInfo = renderPass->colorAttachments[i]; in LazyClearRenderPassAttachments() local 108 TextureViewBase* view = attachmentInfo.view.Get(); in LazyClearRenderPassAttachments() 109 bool hasResolveTarget = attachmentInfo.resolveTarget != nullptr; in LazyClearRenderPassAttachments() 116 if (attachmentInfo.loadOp == wgpu::LoadOp::Load && in LazyClearRenderPassAttachments() 118 attachmentInfo.loadOp = wgpu::LoadOp::Clear; in LazyClearRenderPassAttachments() 119 attachmentInfo.clearColor = {0.f, 0.f, 0.f, 0.f}; in LazyClearRenderPassAttachments() 126 TextureViewBase* resolveView = attachmentInfo.resolveTarget.Get(); in LazyClearRenderPassAttachments() 133 switch (attachmentInfo.storeOp) { in LazyClearRenderPassAttachments() 145 auto& attachmentInfo = renderPass->depthStencilAttachment; in LazyClearRenderPassAttachments() local 146 TextureViewBase* view = attachmentInfo.view.Get(); in LazyClearRenderPassAttachments() [all …]
|
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/vulkan/ |
D | CommandBufferVk.cpp | 201 auto& attachmentInfo = renderPass->colorAttachments[i]; in RecordBeginRenderPass() local 202 TextureView* view = ToBackend(attachmentInfo.view.Get()); in RecordBeginRenderPass() 203 bool hasResolveTarget = attachmentInfo.resolveTarget.Get() != nullptr; in RecordBeginRenderPass() 205 dawn::LoadOp loadOp = attachmentInfo.loadOp; in RecordBeginRenderPass() 213 switch (attachmentInfo.storeOp) { in RecordBeginRenderPass() 222 query.SetColor(i, attachmentInfo.view->GetFormat().format, loadOp, in RecordBeginRenderPass() 227 auto& attachmentInfo = renderPass->depthStencilAttachment; in RecordBeginRenderPass() local 228 query.SetDepthStencil(attachmentInfo.view->GetTexture()->GetFormat().format, in RecordBeginRenderPass() 229 attachmentInfo.depthLoadOp, attachmentInfo.stencilLoadOp); in RecordBeginRenderPass() 230 if (attachmentInfo.depthLoadOp == dawn::LoadOp::Load || in RecordBeginRenderPass() [all …]
|
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/d3d12/ |
D | CommandBufferD3D12.cpp | 763 auto& attachmentInfo = renderPass->colorAttachments[i]; in RecordRenderPass() local 764 TextureView* view = ToBackend(attachmentInfo.view.Get()); in RecordRenderPass() 769 if (attachmentInfo.loadOp == dawn::LoadOp::Clear) { in RecordRenderPass() 771 commandList->ClearRenderTargetView(handle, &attachmentInfo.clearColor.r, 0, in RecordRenderPass() 773 } else if (attachmentInfo.loadOp == dawn::LoadOp::Load && view->GetTexture()) { in RecordRenderPass() 778 switch (attachmentInfo.storeOp) { in RecordRenderPass() 789 auto& attachmentInfo = renderPass->depthStencilAttachment; in RecordRenderPass() local 792 attachmentInfo.depthLoadOp == dawn::LoadOp::Load) || in RecordRenderPass() 794 attachmentInfo.stencilLoadOp == dawn::LoadOp::Load)) { in RecordRenderPass() 796 commandList, attachmentInfo.view->GetBaseMipLevel(), in RecordRenderPass() [all …]
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/ |
D | CommandBufferVk.cpp | 209 const auto& attachmentInfo = renderPass->colorAttachments[i]; in RecordBeginRenderPass() local 211 bool hasResolveTarget = attachmentInfo.resolveTarget != nullptr; in RecordBeginRenderPass() 213 query.SetColor(i, attachmentInfo.view->GetFormat().format, in RecordBeginRenderPass() 214 attachmentInfo.loadOp, attachmentInfo.storeOp, hasResolveTarget); in RecordBeginRenderPass() 218 const auto& attachmentInfo = renderPass->depthStencilAttachment; in RecordBeginRenderPass() local 221 attachmentInfo.view->GetTexture()->GetFormat().format, in RecordBeginRenderPass() 222 attachmentInfo.depthLoadOp, attachmentInfo.depthStoreOp, in RecordBeginRenderPass() 223 attachmentInfo.stencilLoadOp, attachmentInfo.stencilStoreOp, in RecordBeginRenderPass() 224 attachmentInfo.depthReadOnly || attachmentInfo.stencilReadOnly); in RecordBeginRenderPass() 243 auto& attachmentInfo = renderPass->colorAttachments[i]; in RecordBeginRenderPass() local [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/fragment_shading_rate/ |
D | vktAttachmentRateTests.cpp | 148 const std::vector<FBAttachmentInfo>& attachmentInfo) const; 166 const std::vector<FBAttachmentInfo>& attachmentInfo, 458 …uildFramebuffer(VkRenderPass renderPass, const std::vector<FBAttachmentInfo>& attachmentInfo) const in buildFramebuffer() 471 (deUint32)attachmentInfo.size(), // uint32_t attachmentCount; in buildFramebuffer() 473 attachmentInfo[0].width, // uint32_t width; in buildFramebuffer() 474 attachmentInfo[0].height, // uint32_t height; in buildFramebuffer() 480 …std::vector<VkFramebufferAttachmentImageInfo> framebufferAttachmentImageInfo(attachmentInfo.size(), in buildFramebuffer() 494 for (deUint32 i = 0; i < (deUint32)attachmentInfo.size(); ++i) in buildFramebuffer() 496 const auto& src = attachmentInfo[i]; in buildFramebuffer() 520 std::vector<VkImageView> attachments(attachmentInfo.size(), 0); in buildFramebuffer() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/fragment_shading_rate/ |
D | vktAttachmentRateTests.cpp | 148 const std::vector<FBAttachmentInfo>& attachmentInfo) const; 166 const std::vector<FBAttachmentInfo>& attachmentInfo, 458 …uildFramebuffer(VkRenderPass renderPass, const std::vector<FBAttachmentInfo>& attachmentInfo) const in buildFramebuffer() 471 (deUint32)attachmentInfo.size(), // uint32_t attachmentCount; in buildFramebuffer() 473 attachmentInfo[0].width, // uint32_t width; in buildFramebuffer() 474 attachmentInfo[0].height, // uint32_t height; in buildFramebuffer() 480 …std::vector<VkFramebufferAttachmentImageInfo> framebufferAttachmentImageInfo(attachmentInfo.size(), in buildFramebuffer() 494 for (deUint32 i = 0; i < (deUint32)attachmentInfo.size(); ++i) in buildFramebuffer() 496 const auto& src = attachmentInfo[i]; in buildFramebuffer() 520 std::vector<VkImageView> attachments(attachmentInfo.size(), 0); in buildFramebuffer() [all …]
|
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/metal/ |
D | CommandBufferMTL.mm | 54 auto& attachmentInfo = renderPass->colorAttachments[i]; 56 if (attachmentInfo.loadOp == dawn::LoadOp::Clear) { 59 MTLClearColorMake(attachmentInfo.clearColor.r, attachmentInfo.clearColor.g, 60 attachmentInfo.clearColor.b, attachmentInfo.clearColor.a); 66 ToBackend(attachmentInfo.view->GetTexture())->GetMTLTexture(); 67 descriptor.colorAttachments[i].level = attachmentInfo.view->GetBaseMipLevel(); 68 descriptor.colorAttachments[i].slice = attachmentInfo.view->GetBaseArrayLayer(); 70 if (attachmentInfo.storeOp == dawn::StoreOp::Store) { 71 if (attachmentInfo.resolveTarget.Get() != nullptr) { 73 ToBackend(attachmentInfo.resolveTarget->GetTexture())->GetMTLTexture(); [all …]
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/metal/ |
D | CommandBufferMTL.mm | 71 auto& attachmentInfo = renderPass->colorAttachments[attachment]; 73 switch (attachmentInfo.loadOp) { 77 attachmentInfo.clearColor.r, attachmentInfo.clearColor.g, 78 attachmentInfo.clearColor.b, attachmentInfo.clearColor.a); 87 ToBackend(attachmentInfo.view->GetTexture())->GetMTLTexture(); 88 descriptor.colorAttachments[i].level = attachmentInfo.view->GetBaseMipLevel(); 89 descriptor.colorAttachments[i].slice = attachmentInfo.view->GetBaseArrayLayer(); 91 bool hasResolveTarget = attachmentInfo.resolveTarget != nullptr; 94 ToBackend(attachmentInfo.resolveTarget->GetTexture())->GetMTLTexture(); 96 attachmentInfo.resolveTarget->GetBaseMipLevel(); [all …]
|
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/opengl/ |
D | CommandBufferGL.cpp | 664 const auto& attachmentInfo = renderPass->colorAttachments[i]; in ExecuteRenderPass() local 667 if (attachmentInfo.loadOp == dawn::LoadOp::Clear) { in ExecuteRenderPass() 669 gl.ClearBufferfv(GL_COLOR, i, &attachmentInfo.clearColor.r); in ExecuteRenderPass() 674 const auto& attachmentInfo = renderPass->depthStencilAttachment; in ExecuteRenderPass() local 675 const Format& attachmentFormat = attachmentInfo.view->GetTexture()->GetFormat(); in ExecuteRenderPass() 679 (attachmentInfo.depthLoadOp == dawn::LoadOp::Clear); in ExecuteRenderPass() 681 (attachmentInfo.stencilLoadOp == dawn::LoadOp::Clear); in ExecuteRenderPass() 691 gl.ClearBufferfi(GL_DEPTH_STENCIL, 0, attachmentInfo.clearDepth, in ExecuteRenderPass() 692 attachmentInfo.clearStencil); in ExecuteRenderPass() 694 gl.ClearBufferfv(GL_DEPTH, 0, &attachmentInfo.clearDepth); in ExecuteRenderPass() [all …]
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/ |
D | CommandBufferD3D12.cpp | 1201 RenderPassColorAttachmentInfo& attachmentInfo = renderPass->colorAttachments[i]; in SetupRenderPass() local 1202 TextureView* view = ToBackend(attachmentInfo.view.Get()); in SetupRenderPass() 1220 i, attachmentInfo.loadOp, attachmentInfo.clearColor, view->GetD3D12Format()); in SetupRenderPass() 1223 if (attachmentInfo.resolveTarget != nullptr) { in SetupRenderPass() 1224 TextureView* resolveDestinationView = ToBackend(attachmentInfo.resolveTarget.Get()); in SetupRenderPass() 1232 renderPassBuilder->SetRenderTargetEndingAccessResolve(i, attachmentInfo.storeOp, in SetupRenderPass() 1235 renderPassBuilder->SetRenderTargetEndingAccess(i, attachmentInfo.storeOp); in SetupRenderPass() 1240 RenderPassDepthStencilAttachmentInfo& attachmentInfo = in SetupRenderPass() local 1251 attachmentInfo.depthReadOnly, attachmentInfo.stencilReadOnly); in SetupRenderPass() 1265 attachmentInfo.depthLoadOp, attachmentInfo.depthStoreOp, in SetupRenderPass() [all …]
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/ |
D | CommandBufferGL.cpp | 1061 auto* attachmentInfo = &renderPass->colorAttachments[index]; in ExecuteRenderPass() local 1064 if (attachmentInfo->loadOp == wgpu::LoadOp::Clear) { in ExecuteRenderPass() 1068 attachmentInfo->view->GetFormat().GetAspectInfo(Aspect::Color).baseType; in ExecuteRenderPass() 1072 ConvertToFloatColor(attachmentInfo->clearColor); in ExecuteRenderPass() 1078 ConvertToUnsignedIntegerColor(attachmentInfo->clearColor); in ExecuteRenderPass() 1084 ConvertToSignedIntegerColor(attachmentInfo->clearColor); in ExecuteRenderPass() 1094 if (attachmentInfo->storeOp == wgpu::StoreOp::Discard) { in ExecuteRenderPass() 1100 auto* attachmentInfo = &renderPass->depthStencilAttachment; in ExecuteRenderPass() local 1101 const Format& attachmentFormat = attachmentInfo->view->GetTexture()->GetFormat(); in ExecuteRenderPass() 1105 (attachmentInfo->depthLoadOp == wgpu::LoadOp::Clear); in ExecuteRenderPass() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/renderpass/ |
D | vktRenderPassTests.cpp | 1433 const Attachment& attachmentInfo, in AttachmentResources() argument 1436 … (createAttachmentImage(vk, device, queueIndex, size, attachmentInfo.getFormat(), attachmentInfo.… in AttachmentResources() 1438 …ateImageAttachmentView(vk, device, *m_image, attachmentInfo.getFormat(), getImageAspectFlags(attac… in AttachmentResources() 1440 const tcu::TextureFormat format = mapVkFormat(attachmentInfo.getFormat()); in AttachmentResources() 1446 …m_depthInputAttachmentView = createImageAttachmentView(vk, device, *m_image, attachmentInfo.getFo… in AttachmentResources() 1447 …m_stencilInputAttachmentView = createImageAttachmentView(vk, device, *m_image, attachmentInfo.getF… in AttachmentResources() 1458 const tcu::TextureFormat depthFormat = getDepthCopyFormat(attachmentInfo.getFormat()); in AttachmentResources() 1459 const tcu::TextureFormat stencilFormat = getStencilCopyFormat(attachmentInfo.getFormat()); in AttachmentResources() 2309 …const Attachment attachmentInfo = attachmentInfos[renderInfo.getInputAttachmentIndex(inputAttach… in SubpassRenderer() local 2311 const tcu::TextureFormat format = mapVkFormat(attachmentInfo.getFormat()); in SubpassRenderer() [all …]
|
D | vktRenderPassFragmentDensityMapTests.cpp | 758 …s renderPass, VkExtent3D size, const std::vector<VkFramebufferAttachmentImageInfo>& attachmentInfo) in createImagelessFrameBuffer() argument 760 const deUint32 attachmentCount = static_cast<deUint32>(attachmentInfo.size()); in createImagelessFrameBuffer() 766 &attachmentInfo[0] // const VkFramebufferAttachmentImageInfo* pAttachmentImageInfos; in createImagelessFrameBuffer()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/renderpass/ |
D | vktRenderPassTests.cpp | 1433 const Attachment& attachmentInfo, in AttachmentResources() argument 1436 … (createAttachmentImage(vk, device, queueIndex, size, attachmentInfo.getFormat(), attachmentInfo.… in AttachmentResources() 1438 …ateImageAttachmentView(vk, device, *m_image, attachmentInfo.getFormat(), getImageAspectFlags(attac… in AttachmentResources() 1440 const tcu::TextureFormat format = mapVkFormat(attachmentInfo.getFormat()); in AttachmentResources() 1446 …m_depthInputAttachmentView = createImageAttachmentView(vk, device, *m_image, attachmentInfo.getFo… in AttachmentResources() 1447 …m_stencilInputAttachmentView = createImageAttachmentView(vk, device, *m_image, attachmentInfo.getF… in AttachmentResources() 1458 const tcu::TextureFormat depthFormat = getDepthCopyFormat(attachmentInfo.getFormat()); in AttachmentResources() 1459 const tcu::TextureFormat stencilFormat = getStencilCopyFormat(attachmentInfo.getFormat()); in AttachmentResources() 2309 …const Attachment attachmentInfo = attachmentInfos[renderInfo.getInputAttachmentIndex(inputAttach… in SubpassRenderer() local 2311 const tcu::TextureFormat format = mapVkFormat(attachmentInfo.getFormat()); in SubpassRenderer() [all …]
|
D | vktRenderPassFragmentDensityMapTests.cpp | 758 …s renderPass, VkExtent3D size, const std::vector<VkFramebufferAttachmentImageInfo>& attachmentInfo) in createImagelessFrameBuffer() argument 760 const deUint32 attachmentCount = static_cast<deUint32>(attachmentInfo.size()); in createImagelessFrameBuffer() 766 &attachmentInfo[0] // const VkFramebufferAttachmentImageInfo* pAttachmentImageInfos; in createImagelessFrameBuffer()
|
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/ |
D | VkCommandBuffer.cpp | 1311 const VkRenderPassAttachmentBeginInfo *attachmentInfo) in beginRenderPass() argument 1315 if(attachmentInfo) in beginRenderPass() 1317 for(uint32_t i = 0; i < attachmentInfo->attachmentCount; i++) in beginRenderPass() 1319 framebuffer->setAttachment(vk::Cast(attachmentInfo->pAttachments[i]), i); in beginRenderPass()
|