Home
last modified time | relevance | path

Searched refs:colorAttachment (Results 1 - 25 of 141) sorted by relevance

123456

/third_party/skia/src/gpu/vk/
H A DGrVkRenderTarget.cpp53 sk_sp<GrVkImage> colorAttachment, in GrVkRenderTarget()
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()
51 GrVkRenderTarget(GrVkGpu* gpu, SkISize dimensions, sk_sp<GrVkImage> colorAttachment, sk_sp<GrVkImage> resolveAttachment, CreateType createType) GrVkRenderTarget() argument
142 sk_sp<GrVkImage> colorAttachment; MakeWrappedRenderTarget() local
177 sk_sp<GrVkImage> colorAttachment = MakeSecondaryCBRenderTarget() local
363 GrVkImage* colorAttachment = withResolve ? this->msaaAttachment() : this->colorAttachment(); createFramebuffer() local
380 const GrVkImage* colorAttachment = getAttachmentsDescriptor() local
[all...]
H A DGrVkTextureRenderTarget.cpp29 sk_sp<GrVkImage> colorAttachment, in GrVkTextureRenderTarget()
34 , GrVkRenderTarget(gpu, dimensions, std::move(colorAttachment), in GrVkTextureRenderTarget()
52 sk_sp<GrVkImage> colorAttachment, in GrVkTextureRenderTarget()
58 , GrVkRenderTarget(gpu, dimensions, std::move(colorAttachment), in GrVkTextureRenderTarget()
66 sk_sp<GrVkImage>* colorAttachment, in create_rt_attachments()
76 *colorAttachment = sk_sp<GrVkImage>(static_cast<GrVkImage*>(msaaAttachment.release())); in create_rt_attachments()
79 *colorAttachment = std::move(texture); in create_rt_attachments()
105 sk_sp<GrVkImage> colorAttachment; in MakeNewTextureRenderTarget() local
108 &colorAttachment, &resolveAttachment)) { in MakeNewTextureRenderTarget()
111 SkASSERT(colorAttachment); in MakeNewTextureRenderTarget()
24 GrVkTextureRenderTarget( GrVkGpu* gpu, SkBudgeted budgeted, SkISize dimensions, sk_sp<GrVkImage> texture, sk_sp<GrVkImage> colorAttachment, sk_sp<GrVkImage> resolveAttachment, GrMipmapStatus mipmapStatus) GrVkTextureRenderTarget() argument
48 GrVkTextureRenderTarget( GrVkGpu* gpu, SkISize dimensions, sk_sp<GrVkImage> texture, sk_sp<GrVkImage> colorAttachment, sk_sp<GrVkImage> resolveAttachment, GrMipmapStatus mipmapStatus, GrWrapCacheable cacheable) GrVkTextureRenderTarget() argument
63 create_rt_attachments(GrVkGpu* gpu, SkISize dimensions, VkFormat format, int sampleCnt, GrProtected isProtected, sk_sp<GrVkImage> texture, sk_sp<GrVkImage>* colorAttachment, sk_sp<GrVkImage>* resolveAttachment) create_rt_attachments() argument
146 sk_sp<GrVkImage> colorAttachment; MakeWrappedTextureRenderTarget() local
[all...]
H A DGrVkFramebuffer.cpp20 GrVkImage* colorAttachment, in Make()
24 // At the very least we need a renderPass and a colorAttachment in Make()
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()
73 , fColorAttachment(std::move(colorAttachment)) in GrVkFramebuffer()
82 sk_sp<GrVkImage> colorAttachment, in GrVkFramebuffer()
86 , fColorAttachment(std::move(colorAttachment)) in GrVkFramebuffer()
16 Make( GrVkGpu* gpu, SkISize dimensions, sk_sp<const GrVkRenderPass> compatibleRenderPass, GrVkImage* colorAttachment, GrVkImage* resolveAttachment, GrVkImage* stencilAttachment, GrVkResourceProvider::CompatibleRPHandle compatibleRenderPassHandle) Make() argument
64 GrVkFramebuffer(const GrVkGpu* gpu, VkFramebuffer framebuffer, sk_sp<GrVkImage> colorAttachment, sk_sp<GrVkImage> resolveAttachment, sk_sp<GrVkImage> stencilAttachment, sk_sp<const GrVkRenderPass> compatibleRenderPass, GrVkResourceProvider::CompatibleRPHandle compatibleRPHandle) GrVkFramebuffer() argument
81 GrVkFramebuffer(const GrVkGpu* gpu, sk_sp<GrVkImage> colorAttachment, sk_sp<const GrVkRenderPass> renderPass, std::unique_ptr<GrVkSecondaryCommandBuffer> externalCommandBuffer) GrVkFramebuffer() argument
H A DGrVkOpsRenderPass.cpp81 fFramebuffer->colorAttachment()->setImageLayout( in setAttachmentLayouts()
87 fFramebuffer->colorAttachment()->setImageLayout( in setAttachmentLayouts()
188 auto dimensions = fFramebuffer->colorAttachment()->dimensions(); in beginRenderPass()
300 fFramebuffer->colorAttachment(), fFramebuffer->resolveAttachment(), in loadResolveIntoMSAA()
381 SkIRect::MakeSize(fFramebuffer->colorAttachment()->dimensions()).contains(bounds)); in set()
472 attachment.colorAttachment = 0; // this value shouldn't matter in onClearStencilClip()
495 auto dimensions = fFramebuffer->colorAttachment()->dimensions(); in onClear()
518 attachment.colorAttachment = colorIndex; in onClear()
650 auto colorAttachment = fFramebuffer->colorAttachment(); in onBindPipeline() local
681 check_sampled_texture(GrTexture* tex, GrAttachment* colorAttachment, GrVkGpu* gpu) check_sampled_texture() argument
693 auto colorAttachment = fFramebuffer->colorAttachment(); onBindTextures() local
[all...]
H A DGrVkFramebuffer.h28 GrVkImage* colorAttachment,
35 sk_sp<GrVkImage> colorAttachment,
73 GrVkImage* colorAttachment() { return fColorAttachment.get(); } in colorAttachment() function in GrVkFramebuffer
80 sk_sp<GrVkImage> colorAttachment,
H A DGrVkRenderTarget.h55 GrVkImage* colorAttachment() const { in colorAttachment() function in GrVkRenderTarget
61 return this->colorAttachment()->framebufferView(); in colorAttachmentView()
124 sk_sp<GrVkImage> colorAttachment,
H A DGrVkTextureRenderTarget.h70 sk_sp<GrVkImage> colorAttachment,
77 sk_sp<GrVkImage> colorAttachment,
/third_party/skia/third_party/externals/dawn/examples/
H A DCHelloTriangle.cpp111 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/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
H A DFramebuffer11.cpp72 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/vk-gl-cts/external/vulkancts/modules/vulkan/conditional_rendering/
H A DvktConditionalIgnoreTests.cpp148 de::MovePtr<ImageWithMemory> colorAttachment; in iterate() local
173 colorAttachment = de::MovePtr<ImageWithMemory>(new ImageWithMemory(vkd, device, alloc, imageCreateInfo, MemoryRequirement::Any)); in iterate()
174 auto colorAttachmentView = makeImageView(vkd, device, colorAttachment->get(), VK_IMAGE_VIEW_TYPE_2D, imageFormat, colorSubresourceRange); in iterate()
245 VK_IMAGE_LAYOUT_GENERAL, colorAttachment.get()->get(), colorSubresourceRange); in iterate()
253 vkd.cmdClearColorImage(commandBuffer.get(), colorAttachment.get()->get(), VK_IMAGE_LAYOUT_GENERAL, &clearColorWrong, 1, &colorSubresourceRange); in iterate()
273 vkd.cmdClearColorImage(commandBuffer2.get(), colorAttachment.get()->get(), VK_IMAGE_LAYOUT_GENERAL, &clearColor, 1, &colorSubresourceRange); in iterate()
293 vkd.cmdClearColorImage(commandBuffer.get(), colorAttachment.get()->get(), VK_IMAGE_LAYOUT_GENERAL, &clearColor, 1, &colorSubresourceRange); in iterate()
298 copyImageToBuffer(vkd, commandBuffer.get(), colorAttachment.get()->get(), (*outBuffer).get(), imageSize, in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/conditional_rendering/
H A DvktConditionalIgnoreTests.cpp146 de::MovePtr<ImageWithMemory> colorAttachment; in iterate() local
171 colorAttachment = de::MovePtr<ImageWithMemory>(new ImageWithMemory(vkd, device, alloc, imageCreateInfo, MemoryRequirement::Any)); in iterate()
172 auto colorAttachmentView = makeImageView(vkd, device, colorAttachment->get(), VK_IMAGE_VIEW_TYPE_2D, imageFormat, colorSubresourceRange); 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, &clearColorWrong, 1, &colorSubresourceRange); in iterate()
271 vkd.cmdClearColorImage(commandBuffer2.get(), colorAttachment.get()->get(), VK_IMAGE_LAYOUT_GENERAL, &clearColor, 1, &colorSubresourceRange); in iterate()
291 vkd.cmdClearColorImage(commandBuffer.get(), colorAttachment.get()->get(), VK_IMAGE_LAYOUT_GENERAL, &clearColor, 1, &colorSubresourceRange); in iterate()
296 copyImageToBuffer(vkd, commandBuffer.get(), colorAttachment.get()->get(), (*outBuffer).get(), imageSize, in iterate()
/third_party/skia/src/gpu/mtl/
H A DGrMtlFramebuffer.h19 static sk_sp<const GrMtlFramebuffer> Make(GrMtlAttachment* colorAttachment,
23 GrMtlAttachment* colorAttachment() { return fColorAttachment.get(); } in colorAttachment() function in GrMtlFramebuffer
28 GrMtlFramebuffer(sk_sp<GrMtlAttachment> colorAttachment,
H A DGrMtlRenderTarget.h38 GrMtlAttachment* colorAttachment() const { return fColorAttachment.get(); } in colorAttachment() function in GrMtlRenderTarget
63 sk_sp<GrMtlAttachment> colorAttachment,
82 sk_sp<GrMtlAttachment> colorAttachment,
H A DGrMtlTextureRenderTarget.h49 sk_sp<GrMtlAttachment> colorAttachment,
56 sk_sp<GrMtlAttachment> colorAttachment,
/third_party/skia/third_party/externals/dawn/src/dawn_native/
H A DCommandEncoder.cpp145 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()
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 in ValidateResolveTarget()
161 ValidateResolveTarget(const DeviceBase* device, const RenderPassColorAttachment& colorAttachment) ValidateResolveTarget() argument
214 ValidateRenderPassColorAttachment( DeviceBase* device, const RenderPassColorAttachment& colorAttachment, uint32_t* width, uint32_t* height, uint32_t* sampleCount) ValidateRenderPassColorAttachment() argument
[all...]
/third_party/skia/src/gpu/dawn/
H A DGrDawnOpsRenderPass.cpp64 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/angle2/src/libANGLE/
H A DFramebuffer.cpp168 bool colorAttachment) in CheckAttachmentSampleCounts()
172 if (colorAttachment) in CheckAttachmentSampleCounts()
206 bool colorAttachment, in CheckAttachmentSampleCompleteness()
248 renderToTextureSamples->value(), colorAttachment); in CheckAttachmentSampleCompleteness()
268 context, attachment.getSamples(), samples->value(), colorAttachment); in CheckAttachmentSampleCompleteness()
494 auto *colorAttachment = getFirstColorAttachment();
495 if (colorAttachment)
497 return colorAttachment;
504 for (const FramebufferAttachment &colorAttachment : mColorAttachments)
506 if (colorAttachment
165 CheckAttachmentSampleCounts(const Context *context, GLsizei currAttachmentSamples, GLsizei samples, bool colorAttachment) CheckAttachmentSampleCounts() argument
204 CheckAttachmentSampleCompleteness(const Context *context, const FramebufferAttachment &attachment, bool colorAttachment, Optional<int> *samples, Optional<bool> *fixedSampleLocations, Optional<int> *renderToTextureSamples) CheckAttachmentSampleCompleteness() argument
2430 auto &colorAttachment = mState.mColorAttachments[colorIndex]; markDrawAttachmentsInitialized() local
[all...]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/
H A DClearMultiviewGL.cpp125 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/
H A DWGPUHelpers.cpp104 for (const wgpu::TextureView& colorAttachment : colorAttachmentInfo) { in ComboRenderPassDescriptor()
105 if (colorAttachment.Get() != nullptr) { in ComboRenderPassDescriptor()
106 cColorAttachments[colorAttachmentIndex].view = colorAttachment; in ComboRenderPassDescriptor()
152 wgpu::Texture colorAttachment, in BasicRenderPass()
156 color(colorAttachment), in BasicRenderPass()
158 renderPassInfo({colorAttachment.CreateView()}) { in BasicRenderPass()
150 BasicRenderPass(uint32_t texWidth, uint32_t texHeight, wgpu::Texture colorAttachment, wgpu::TextureFormat textureFormat) BasicRenderPass() argument
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
H A DFramebufferMultiviewTest.cpp494 GLenum colorAttachment = static_cast<GLenum>(GL_COLOR_ATTACHMENT0 + i); in TEST_P() local
495 EXPECT_EQ(GLColor::transparentBlack, getLayerColor(layer, colorAttachment)); in TEST_P()
592 GLenum colorAttachment = static_cast<GLenum>(GL_COLOR_ATTACHMENT0 + i); in TEST_P() local
593 EXPECT_EQ(GLColor::transparentBlack, getLayerColor(0, colorAttachment)); in TEST_P()
594 EXPECT_EQ(GLColor::green, getLayerColor(1, colorAttachment)); in TEST_P()
595 EXPECT_EQ(GLColor::green, getLayerColor(2, colorAttachment)); in TEST_P()
596 EXPECT_EQ(GLColor::transparentBlack, getLayerColor(3, colorAttachment)); in TEST_P()
/third_party/vk-gl-cts/external/vulkancts/framework/vulkan/
H A DvkCmdUtil.cpp247 VkRenderingAttachmentInfoKHR colorAttachment in beginRendering()
270 &colorAttachment, // const VkRenderingAttachmentInfoKHR* pColorAttachments; in beginRendering()
293 VkRenderingAttachmentInfoKHR colorAttachment in beginRendering()
330 &colorAttachment, // const VkRenderingAttachmentInfoKHR* pColorAttachments; in beginRendering()
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
H A DBufferZeroInitTests.cpp235 wgpu::Texture colorAttachment) { in ExpectLazyClearSubmitAndCheckOutputs()
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 in TestBufferZeroInitAsIndirectBufferForDrawIndirect()
232 ExpectLazyClearSubmitAndCheckOutputs(wgpu::CommandEncoder encoder, wgpu::Buffer buffer, uint64_t bufferSize, wgpu::Texture colorAttachment) ExpectLazyClearSubmitAndCheckOutputs() argument
404 wgpu::Texture colorAttachment = TestBufferZeroInitAsIndirectBufferForDrawIndexedIndirect() local
1218 wgpu::Texture colorAttachment = TEST_P() local
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
H A DvktPipelineDynamicControlPoints.cpp263 de::MovePtr<vk::ImageWithMemory> colorAttachment; in iterate() local
290 colorAttachment = de::MovePtr<vk::ImageWithMemory>(new vk::ImageWithMemory(vkd, device, alloc, imageCreateInfo, vk::MemoryRequirement::Any)); in iterate()
291 auto colorAttachmentView = vk::makeImageView(vkd, device, colorAttachment->get(), vk::VK_IMAGE_VIEW_TYPE_2D, imageFormat, subresourceRange); in iterate()
294 renderPass.createFramebuffer(vkd, device, **colorAttachment, colorAttachmentView.get(), imageExtent.width, imageExtent.height); in iterate()
403 vk::copyImageToBuffer(vkd, commandBuffer.get(), colorAttachment.get()->get(), (*outBuffer).get(), imageSize); in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/dynamic_state/
H A DvktDynamicStateInheritanceTests.cpp401 VkAttachmentDescription colorAttachment{}; in createImageView()
402 colorAttachment.format = kFormat; in createImageView()
403 colorAttachment.samples = VK_SAMPLE_COUNT_1_BIT; in createImageView()
404 colorAttachment.loadOp = VK_ATTACHMENT_LOAD_OP_CLEAR; in createImageView()
405 colorAttachment.storeOp = VK_ATTACHMENT_STORE_OP_STORE; in createImageView()
406 colorAttachment.stencilLoadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE; in createImageView()
407 colorAttachment.stencilStoreOp = VK_ATTACHMENT_STORE_OP_DONT_CARE; in createImageView()
408 colorAttachment.initialLayout = VK_IMAGE_LAYOUT_UNDEFINED; in createImageView()
409 colorAttachment.finalLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; in createImageView()
443 VkAttachmentDescription attachments[2] = {colorAttachment, depthAttachmen in createImageView()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/dynamic_state/
H A DvktDynamicStateInheritanceTests.cpp397 VkAttachmentDescription colorAttachment{}; in createImageView()
398 colorAttachment.format = kFormat; in createImageView()
399 colorAttachment.samples = VK_SAMPLE_COUNT_1_BIT; in createImageView()
400 colorAttachment.loadOp = VK_ATTACHMENT_LOAD_OP_CLEAR; in createImageView()
401 colorAttachment.storeOp = VK_ATTACHMENT_STORE_OP_STORE; in createImageView()
402 colorAttachment.stencilLoadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE; in createImageView()
403 colorAttachment.stencilStoreOp = VK_ATTACHMENT_STORE_OP_DONT_CARE; in createImageView()
404 colorAttachment.initialLayout = VK_IMAGE_LAYOUT_UNDEFINED; in createImageView()
405 colorAttachment.finalLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; in createImageView()
439 VkAttachmentDescription attachments[2] = {colorAttachment, depthAttachmen in createImageView()
[all...]

Completed in 17 milliseconds

123456