/third_party/skia/src/gpu/vk/ |
D | GrVkRenderTarget.cpp | 53 sk_sp<GrVkImage> colorAttachment, in GrVkRenderTarget() argument 57 colorAttachment->isProtected() ? GrProtected::kYes : GrProtected::kNo) in GrVkRenderTarget() 59 , GrRenderTarget(gpu, dimensions, colorAttachment->numSamples(), in GrVkRenderTarget() 60 colorAttachment->isProtected() ? GrProtected::kYes : GrProtected::kNo) in GrVkRenderTarget() 61 , fColorAttachment(std::move(colorAttachment)) in GrVkRenderTarget() 87 externalFramebuffer->colorAttachment()->isProtected() ? GrProtected::kYes in GrVkRenderTarget() 90 externalFramebuffer->colorAttachment()->isProtected() ? GrProtected::kYes in GrVkRenderTarget() 96 SkDEBUGCODE(auto colorAttachment = fExternalFramebuffer->colorAttachment()); in GrVkRenderTarget() 97 SkASSERT(colorAttachment); in GrVkRenderTarget() 98 SkASSERT(colorAttachment->numSamples() == 1); in GrVkRenderTarget() [all …]
|
D | GrVkTextureRenderTarget.cpp | 29 sk_sp<GrVkImage> colorAttachment, in GrVkTextureRenderTarget() argument 34 , GrVkRenderTarget(gpu, dimensions, std::move(colorAttachment), in GrVkTextureRenderTarget() 43 sk_sp<GrVkImage> colorAttachment, in GrVkTextureRenderTarget() argument 49 , GrVkRenderTarget(gpu, dimensions, std::move(colorAttachment), in GrVkTextureRenderTarget() 57 sk_sp<GrVkImage>* colorAttachment, in create_rt_attachments() argument 67 *colorAttachment = sk_sp<GrVkImage>(static_cast<GrVkImage*>(msaaAttachment.release())); in create_rt_attachments() 70 *colorAttachment = std::move(texture); in create_rt_attachments() 96 sk_sp<GrVkImage> colorAttachment; in MakeNewTextureRenderTarget() local 99 &colorAttachment, &resolveAttachment)) { in MakeNewTextureRenderTarget() 102 SkASSERT(colorAttachment); in MakeNewTextureRenderTarget() [all …]
|
D | GrVkFramebuffer.cpp | 20 GrVkImage* colorAttachment, in Make() argument 26 SkASSERT(colorAttachment); in Make() 29 attachments[0] = colorAttachment->framebufferView()->imageView(); in Make() 58 auto fb = new GrVkFramebuffer(gpu, framebuffer, sk_ref_sp(colorAttachment), in Make() 66 sk_sp<GrVkImage> colorAttachment, in GrVkFramebuffer() argument 73 , fColorAttachment(std::move(colorAttachment)) in GrVkFramebuffer() 82 sk_sp<GrVkImage> colorAttachment, in GrVkFramebuffer() argument 86 , fColorAttachment(std::move(colorAttachment)) in GrVkFramebuffer()
|
D | GrVkOpsRenderPass.cpp | 79 fFramebuffer->colorAttachment()->setImageLayout( in setAttachmentLayouts() 85 fFramebuffer->colorAttachment()->setImageLayout( in setAttachmentLayouts() 186 auto dimensions = fFramebuffer->colorAttachment()->dimensions(); in beginRenderPass() 298 fFramebuffer->colorAttachment(), fFramebuffer->resolveAttachment(), in loadResolveIntoMSAA() 379 SkIRect::MakeSize(fFramebuffer->colorAttachment()->dimensions()).contains(bounds)); in set() 470 attachment.colorAttachment = 0; // this value shouldn't matter in onClearStencilClip() 493 auto dimensions = fFramebuffer->colorAttachment()->dimensions(); in onClear() 516 attachment.colorAttachment = colorIndex; in onClear() 648 auto colorAttachment = fFramebuffer->colorAttachment(); in onBindPipeline() local 649 if (!fCurrentPipelineState->setAndBindUniforms(fGpu, colorAttachment->dimensions(), programInfo, in onBindPipeline() [all …]
|
D | GrVkFramebuffer.h | 28 GrVkImage* colorAttachment, 35 sk_sp<GrVkImage> colorAttachment, 73 GrVkImage* colorAttachment() { return fColorAttachment.get(); } in colorAttachment() function 80 sk_sp<GrVkImage> colorAttachment,
|
D | GrVkRenderTarget.h | 55 GrVkImage* colorAttachment() const { in colorAttachment() function 61 return this->colorAttachment()->framebufferView(); in colorAttachmentView() 124 sk_sp<GrVkImage> colorAttachment,
|
/third_party/skia/src/gpu/mtl/ |
D | GrMtlTextureRenderTarget.mm | 24 sk_sp<GrMtlAttachment> colorAttachment, 29 , GrMtlRenderTarget(gpu, dimensions, std::move(colorAttachment), 37 sk_sp<GrMtlAttachment> colorAttachment, 43 , GrMtlRenderTarget(gpu, dimensions, std::move(colorAttachment), 49 sk_sp<GrMtlAttachment> texture, sk_sp<GrMtlAttachment>* colorAttachment, 59 *colorAttachment = 63 *colorAttachment = std::move(texture); 87 sk_sp<GrMtlAttachment> colorAttachment; 90 &colorAttachment, &resolveAttachment)) { 93 SkASSERT(colorAttachment); [all …]
|
D | GrMtlFramebuffer.mm | 13 GrMtlAttachment* colorAttachment, 16 // At the very least we need a colorAttachment 17 SkASSERT(colorAttachment); 19 auto fb = new GrMtlFramebuffer(sk_ref_sp(colorAttachment), sk_ref_sp(resolveAttachment), 24 GrMtlFramebuffer::GrMtlFramebuffer(sk_sp<GrMtlAttachment> colorAttachment, 27 : fColorAttachment(std::move(colorAttachment))
|
D | GrMtlRenderTarget.mm | 25 sk_sp<GrMtlAttachment> colorAttachment, 29 , GrRenderTarget(gpu, dimensions, colorAttachment->numSamples(), GrProtected::kNo) 30 , fColorAttachment(std::move(colorAttachment)) 38 sk_sp<GrMtlAttachment> colorAttachment, 41 , GrRenderTarget(gpu, dimensions, colorAttachment->numSamples(), GrProtected::kNo) 42 , fColorAttachment(std::move(colorAttachment)) 75 sk_sp<GrMtlAttachment> colorAttachment = 78 gpu, dimensions, std::move(colorAttachment), std::move(textureAttachment), 131 GrMtlAttachment* colorAttachment = this->colorAttachment(); 138 GrMtlFramebuffer::Make(colorAttachment, resolve, stencil);
|
D | GrMtlOpsRenderPass.mm | 93 sk_ref_sp<GrMtlAttachment>(fFramebuffer->colorAttachment())); 115 SkISize dimensions = fFramebuffer->colorAttachment()->dimensions(); 131 fFramebuffer->colorAttachment()->dimensions(), 157 auto colorAttachment = fRenderPassDesc.colorAttachments[0]; 158 colorAttachment.clearColor = MTLClearColorMake(color[0], color[1], color[2], color[3]); 159 colorAttachment.loadAction = MTLLoadActionClear; 198 auto colorAttachment = fRenderPassDesc.colorAttachments[0]; 199 colorAttachment.loadAction = MTLLoadActionLoad; 224 SkISize colorAttachmentDimensions = fFramebuffer->colorAttachment()->dimensions(); 261 auto colorAttachment = fRenderPassDesc.colorAttachments[0]; [all …]
|
D | GrMtlFramebuffer.h | 19 static sk_sp<const GrMtlFramebuffer> Make(GrMtlAttachment* colorAttachment, 23 GrMtlAttachment* colorAttachment() { return fColorAttachment.get(); } in colorAttachment() function 28 GrMtlFramebuffer(sk_sp<GrMtlAttachment> colorAttachment,
|
D | GrMtlRenderTarget.h | 38 GrMtlAttachment* colorAttachment() const { return fColorAttachment.get(); } in colorAttachment() function 63 sk_sp<GrMtlAttachment> colorAttachment, 82 sk_sp<GrMtlAttachment> colorAttachment,
|
D | GrMtlTextureRenderTarget.h | 49 sk_sp<GrMtlAttachment> colorAttachment, 56 sk_sp<GrMtlAttachment> colorAttachment,
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/ |
D | Framebuffer11.cpp | 72 const gl::FramebufferAttachment &colorAttachment = colorAttachments[drawBuffer]; in markAttachmentsDirty() local 73 ASSERT(colorAttachment.isAttached()); in markAttachmentsDirty() 74 ANGLE_TRY(MarkAttachmentsDirty(context, &colorAttachment)); in markAttachmentsDirty() 91 const gl::FramebufferAttachment *colorAttachment = mState.getFirstColorAttachment(); in clearImpl() local 92 if (clearParams.scissorEnabled == true && colorAttachment != nullptr && in clearImpl() 93 UsePresentPathFast(mRenderer, colorAttachment)) in clearImpl() 99 gl::Extents framebufferSize = colorAttachment->getSize(); in clearImpl() 171 const gl::FramebufferAttachment *colorAttachment = in invalidateBase() local 173 if (colorAttachment) in invalidateBase() 175 ANGLE_TRY(invalidateAttachment(context, colorAttachment)); in invalidateBase() [all …]
|
/third_party/skia/third_party/externals/dawn/examples/ |
D | CHelloTriangle.cpp | 111 WGPURenderPassColorAttachment colorAttachment = {}; in frame() local 113 colorAttachment.view = backbufferView; in frame() 114 colorAttachment.resolveTarget = nullptr; in frame() 115 colorAttachment.clearColor = {0.0f, 0.0f, 0.0f, 0.0f}; in frame() 116 colorAttachment.loadOp = WGPULoadOp_Clear; in frame() 117 colorAttachment.storeOp = WGPUStoreOp_Store; in frame() 119 renderpassInfo.colorAttachments = &colorAttachment; in frame()
|
/third_party/skia/src/gpu/dawn/ |
D | GrDawnOpsRenderPass.cpp | 64 wgpu::RenderPassColorAttachment colorAttachment; in beginRenderPass() local 65 colorAttachment.view = static_cast<GrDawnRenderTarget*>(fRenderTarget)->textureView(); in beginRenderPass() 66 colorAttachment.resolveTarget = nullptr; in beginRenderPass() 67 colorAttachment.clearColor = { c[0], c[1], c[2], c[3] }; in beginRenderPass() 68 colorAttachment.loadOp = colorOp; in beginRenderPass() 69 colorAttachment.storeOp = wgpu::StoreOp::Store; in beginRenderPass() 70 wgpu::RenderPassColorAttachment* colorAttachments = { &colorAttachment }; in beginRenderPass()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/ |
D | CommandEncoder.cpp | 145 MaybeError ValidateOrSetColorAttachmentSampleCount(const TextureViewBase* colorAttachment, in ValidateOrSetColorAttachmentSampleCount() argument 148 *sampleCount = colorAttachment->GetTexture()->GetSampleCount(); in ValidateOrSetColorAttachmentSampleCount() 152 *sampleCount != colorAttachment->GetTexture()->GetSampleCount(), in ValidateOrSetColorAttachmentSampleCount() 155 colorAttachment, colorAttachment->GetTexture()->GetSampleCount(), *sampleCount); in ValidateOrSetColorAttachmentSampleCount() 162 const RenderPassColorAttachment& colorAttachment) { in ValidateResolveTarget() argument 163 if (colorAttachment.resolveTarget == nullptr) { in ValidateResolveTarget() 167 const TextureViewBase* resolveTarget = colorAttachment.resolveTarget; in ValidateResolveTarget() 168 const TextureViewBase* attachment = colorAttachment.view; in ValidateResolveTarget() 169 DAWN_TRY(device->ValidateObject(colorAttachment.resolveTarget)); in ValidateResolveTarget() 170 DAWN_TRY(ValidateCanUseAs(colorAttachment.resolveTarget->GetTexture(), in ValidateResolveTarget() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/conditional_rendering/ |
D | vktConditionalIgnoreTests.cpp | 146 de::MovePtr<ImageWithMemory> colorAttachment; in iterate() local 171 …colorAttachment = de::MovePtr<ImageWithMemory>(new ImageWithMemory(vkd, device, alloc, imageC… in iterate() 172 …auto colorAttachmentView = makeImageView(vkd, device, colorAttachment->get(), VK_IMAGE_VIEW_TYPE… in iterate() 243 VK_IMAGE_LAYOUT_GENERAL, colorAttachment.get()->get(), colorSubresourceRange); in iterate() 251 …vkd.cmdClearColorImage(commandBuffer.get(), colorAttachment.get()->get(), VK_IMAGE_LAYOUT_GENERAL,… in iterate() 271 …vkd.cmdClearColorImage(commandBuffer2.get(), colorAttachment.get()->get(), VK_IMAGE_LAYOUT_GENERAL… in iterate() 291 …vkd.cmdClearColorImage(commandBuffer.get(), colorAttachment.get()->get(), VK_IMAGE_LAYOUT_GENERAL,… in iterate() 296 …copyImageToBuffer(vkd, commandBuffer.get(), colorAttachment.get()->get(), (*outBuffer).get(), imag… in iterate()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/conditional_rendering/ |
D | vktConditionalIgnoreTests.cpp | 146 de::MovePtr<ImageWithMemory> colorAttachment; in iterate() local 171 …colorAttachment = de::MovePtr<ImageWithMemory>(new ImageWithMemory(vkd, device, alloc, imageC… in iterate() 172 …auto colorAttachmentView = makeImageView(vkd, device, colorAttachment->get(), VK_IMAGE_VIEW_TYPE… in iterate() 243 VK_IMAGE_LAYOUT_GENERAL, colorAttachment.get()->get(), colorSubresourceRange); in iterate() 251 …vkd.cmdClearColorImage(commandBuffer.get(), colorAttachment.get()->get(), VK_IMAGE_LAYOUT_GENERAL,… in iterate() 271 …vkd.cmdClearColorImage(commandBuffer2.get(), colorAttachment.get()->get(), VK_IMAGE_LAYOUT_GENERAL… in iterate() 291 …vkd.cmdClearColorImage(commandBuffer.get(), colorAttachment.get()->get(), VK_IMAGE_LAYOUT_GENERAL,… in iterate() 296 …copyImageToBuffer(vkd, commandBuffer.get(), colorAttachment.get()->get(), (*outBuffer).get(), imag… in iterate()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/ |
D | Framebuffer.cpp | 168 bool colorAttachment) in CheckAttachmentSampleCounts() argument 172 if (colorAttachment) in CheckAttachmentSampleCounts() 206 bool colorAttachment, in CheckAttachmentSampleCompleteness() argument 248 renderToTextureSamples->value(), colorAttachment); in CheckAttachmentSampleCompleteness() 268 context, attachment.getSamples(), samples->value(), colorAttachment); in CheckAttachmentSampleCompleteness() 494 auto *colorAttachment = getFirstColorAttachment(); in getFirstNonNullAttachment() local 495 if (colorAttachment) in getFirstNonNullAttachment() 497 return colorAttachment; in getFirstNonNullAttachment() 504 for (const FramebufferAttachment &colorAttachment : mColorAttachments) in getFirstColorAttachment() local 506 if (colorAttachment.isAttached()) in getFirstColorAttachment() [all …]
|
/third_party/skia/third_party/externals/dawn/src/tests/end2end/ |
D | BufferZeroInitTests.cpp | 235 wgpu::Texture colorAttachment) { in ExpectLazyClearSubmitAndCheckOutputs() argument 246 EXPECT_PIXEL_RGBA8_EQ(kExpectedPixelValue, colorAttachment, 0, 0); in ExpectLazyClearSubmitAndCheckOutputs() 274 wgpu::Texture colorAttachment = in TestBufferZeroInitAsVertexBuffer() local 276 utils::ComboRenderPassDescriptor renderPassDescriptor({colorAttachment.CreateView()}); in TestBufferZeroInitAsVertexBuffer() 289 colorAttachment); in TestBufferZeroInitAsVertexBuffer() 321 wgpu::Texture colorAttachment = in TestBufferZeroInitAsIndexBuffer() local 323 utils::ComboRenderPassDescriptor renderPassDescriptor({colorAttachment.CreateView()}); in TestBufferZeroInitAsIndexBuffer() 337 colorAttachment); in TestBufferZeroInitAsIndexBuffer() 361 wgpu::Texture colorAttachment = in TestBufferZeroInitAsIndirectBufferForDrawIndirect() local 363 utils::ComboRenderPassDescriptor renderPassDescriptor({colorAttachment.CreateView()}); in TestBufferZeroInitAsIndirectBufferForDrawIndirect() [all …]
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/ |
D | ClearMultiviewGL.cpp | 125 GLenum colorAttachment = in attachTextures() local 128 mFunctions->framebufferTextureLayer(GL_DRAW_FRAMEBUFFER, colorAttachment, in attachTextures() 178 GLenum colorAttachment = in detachTextures() local 180 mFunctions->framebufferTextureLayer(GL_DRAW_FRAMEBUFFER, colorAttachment, 0, 0, 0); in detachTextures()
|
/third_party/skia/third_party/externals/dawn/src/utils/ |
D | WGPUHelpers.cpp | 104 for (const wgpu::TextureView& colorAttachment : colorAttachmentInfo) { in ComboRenderPassDescriptor() local 105 if (colorAttachment.Get() != nullptr) { in ComboRenderPassDescriptor() 106 cColorAttachments[colorAttachmentIndex].view = colorAttachment; in ComboRenderPassDescriptor() 152 wgpu::Texture colorAttachment, in BasicRenderPass() argument 156 color(colorAttachment), in BasicRenderPass() 158 renderPassInfo({colorAttachment.CreateView()}) { in BasicRenderPass()
|
/third_party/vk-gl-cts/external/vulkancts/framework/vulkan/ |
D | vkCmdUtil.cpp | 247 VkRenderingAttachmentInfoKHR colorAttachment in beginRendering() local 270 &colorAttachment, // const VkRenderingAttachmentInfoKHR* pColorAttachments; in beginRendering() 293 VkRenderingAttachmentInfoKHR colorAttachment in beginRendering() local 330 &colorAttachment, // const VkRenderingAttachmentInfoKHR* pColorAttachments; in beginRendering()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/dynamic_state/ |
D | vktDynamicStateInheritanceTests.cpp | 397 VkAttachmentDescription colorAttachment{}; local 398 colorAttachment.format = kFormat; 399 colorAttachment.samples = VK_SAMPLE_COUNT_1_BIT; 400 colorAttachment.loadOp = VK_ATTACHMENT_LOAD_OP_CLEAR; 401 colorAttachment.storeOp = VK_ATTACHMENT_STORE_OP_STORE; 402 colorAttachment.stencilLoadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE; 403 colorAttachment.stencilStoreOp = VK_ATTACHMENT_STORE_OP_DONT_CARE; 404 colorAttachment.initialLayout = VK_IMAGE_LAYOUT_UNDEFINED; 405 colorAttachment.finalLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; 439 VkAttachmentDescription attachments[2] = {colorAttachment, depthAttachment};
|