/third_party/skia/third_party/externals/dawn/src/dawn_native/ |
D | ExternalTexture.cpp | 25 MaybeError ValidateExternalTexturePlane(const TextureViewBase* textureView, in ValidateExternalTexturePlane() argument 27 if (textureView->GetFormat().format != format) { in ValidateExternalTexturePlane() 34 (textureView->GetTexture()->GetUsage() & wgpu::TextureUsage::TextureBinding) == 0, in ValidateExternalTexturePlane() 36 textureView, textureView->GetTexture()->GetUsage(), wgpu::TextureUsage::TextureBinding); in ValidateExternalTexturePlane() 38 DAWN_INVALID_IF(textureView->GetDimension() != wgpu::TextureViewDimension::e2D, in ValidateExternalTexturePlane() 39 "The external texture plane (%s) dimension (%s) is not 2D.", textureView, in ValidateExternalTexturePlane() 40 textureView->GetDimension()); in ValidateExternalTexturePlane() 42 DAWN_INVALID_IF(textureView->GetLevelCount() > 1, in ValidateExternalTexturePlane() 44 textureView, textureView->GetLevelCount()); in ValidateExternalTexturePlane() 46 DAWN_INVALID_IF(textureView->GetTexture()->GetSampleCount() != 1, in ValidateExternalTexturePlane() [all …]
|
D | BindGroup.cpp | 41 DAWN_INVALID_IF(entry.sampler != nullptr || entry.textureView != nullptr, in ValidateBufferBinding() 122 DAWN_INVALID_IF(entry.textureView == nullptr, "Binding entry textureView not set."); in ValidateTextureBinding() 129 DAWN_TRY(device->ValidateObject(entry.textureView)); in ValidateTextureBinding() 131 TextureViewBase* view = entry.textureView; in ValidateTextureBinding() 160 entry.textureView->GetDimension() != bindingInfo.texture.viewDimension, in ValidateTextureBinding() 162 entry.textureView->GetDimension(), entry.textureView, in ValidateTextureBinding() 180 entry.textureView->GetDimension() != in ValidateTextureBinding() 183 entry.textureView->GetDimension(), entry.textureView, in ValidateTextureBinding() 186 DAWN_INVALID_IF(entry.textureView->GetLevelCount() != 1, in ValidateTextureBinding() 188 entry.textureView->GetLevelCount(), entry.textureView); in ValidateTextureBinding() [all …]
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/ |
D | BindGroupGL.cpp | 34 ASSERT(entry.textureView != nullptr); in ValidateGLBindGroupDescriptor() 35 const uint32_t textureViewLayerCount = entry.textureView->GetLayerCount(); in ValidateGLBindGroupDescriptor() 38 textureViewLayerCount != entry.textureView->GetTexture()->GetArrayLayers(), in ValidateGLBindGroupDescriptor() 41 entry.textureView, textureViewLayerCount, in ValidateGLBindGroupDescriptor() 42 entry.textureView->GetTexture()->GetArrayLayers()); in ValidateGLBindGroupDescriptor()
|
D | CommandBufferGL.cpp | 996 TextureViewBase* textureView = renderPass->colorAttachments[i].view.Get(); in ExecuteRenderPass() local 997 GLuint texture = ToBackend(textureView->GetTexture())->GetHandle(); in ExecuteRenderPass() 1002 if (textureView->GetTexture()->GetArrayLayers() == 1) { in ExecuteRenderPass() 1003 GLenum target = ToBackend(textureView->GetTexture())->GetGLTarget(); in ExecuteRenderPass() 1005 textureView->GetBaseMipLevel()); in ExecuteRenderPass() 1008 textureView->GetBaseMipLevel(), in ExecuteRenderPass() 1009 textureView->GetBaseArrayLayer()); in ExecuteRenderPass() 1018 TextureViewBase* textureView = renderPass->depthStencilAttachment.view.Get(); in ExecuteRenderPass() local 1019 GLuint texture = ToBackend(textureView->GetTexture())->GetHandle(); in ExecuteRenderPass() 1020 const Format& format = textureView->GetTexture()->GetFormat(); in ExecuteRenderPass() [all …]
|
/third_party/flutter/skia/src/gpu/dawn/ |
D | GrDawnTexture.cpp | 17 dawn::TextureView textureView, in GrDawnTexture() argument 23 , fTextureView(textureView) { in GrDawnTexture() 55 dawn::TextureView textureView = tex.CreateDefaultView(); in Make() local 57 if (!textureView) { in Make() 70 textureView, in Make() 75 result = sk_sp<GrDawnTexture>(new GrDawnTexture(gpu, size, config, textureView, info, in Make() 90 dawn::TextureView textureView = info.fTexture.CreateDefaultView(); in MakeWrapped() local 91 if (!textureView) { in MakeWrapped() 95 sk_sp<GrDawnTexture> tex(new GrDawnTexture(gpu, size, config, textureView, info, status)); in MakeWrapped()
|
D | GrDawnProgramBuilder.cpp | 265 const dawn::TextureView& textureView) { in make_bind_group_binding() argument 272 result.textureView = textureView; in make_bind_group_binding() 287 const dawn::TextureView& textureView) { in make_bind_group_binding() argument 288 return make_bind_group_binding(binding, nullptr, 0, 0, nullptr, textureView); in make_bind_group_binding() 378 dawn::TextureView textureView = tex->textureView(); in Build() local 379 bindings.push_back(make_bind_group_binding(binding++, textureView)); in Build() 388 dawn::TextureView textureView = tex->textureView(); in Build() local 389 bindings.push_back(make_bind_group_binding(binding++, textureView)); in Build()
|
D | GrDawnTextureRenderTarget.cpp | 18 dawn::TextureView textureView, in GrDawnTextureRenderTarget() argument 23 , GrDawnTexture(gpu, size, config, textureView, info, mipMapsStatus) in GrDawnTextureRenderTarget()
|
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/ |
D | BindGroup.cpp | 35 binding.textureView != nullptr) { in ValidateBufferBinding() 67 if (binding.textureView == nullptr || binding.sampler != nullptr || in ValidateTextureBinding() 71 DAWN_TRY(device->ValidateObject(binding.textureView)); in ValidateTextureBinding() 73 if (!(binding.textureView->GetTexture()->GetUsage() & requiredUsage)) { in ValidateTextureBinding() 82 if (binding.sampler == nullptr || binding.textureView != nullptr || in ValidateSamplerBinding() 182 if (binding.textureView != nullptr) { in BindGroupBase() 184 mBindings[bindingIndex] = binding.textureView; in BindGroupBase()
|
/third_party/skia/src/gpu/vk/ |
D | GrVkImage.cpp | 96 sk_sp<const GrVkImageView>* textureView) { in make_views() argument 117 *textureView = GrVkImageView::Make(gpu, in make_views() 123 if (!*textureView) { in make_views() 157 sk_sp<const GrVkImageView> textureView; in Make() local 158 if (!make_views(gpu, info, attachmentUsages, &framebufferView, &textureView)) { in Make() 171 std::move(textureView), in Make() 184 sk_sp<const GrVkImageView> textureView; in MakeWrapped() local 186 if (!make_views(gpu, info, attachmentUsages, &framebufferView, &textureView)) { in MakeWrapped() 201 std::move(textureView), in MakeWrapped() 213 sk_sp<const GrVkImageView> textureView, in GrVkImage() argument [all …]
|
D | GrVkPipelineState.cpp | 158 commandBuffer->addResource(texAttachment->textureView()); in setAndBindTextures() 180 const GrVkImageView* textureView = texAttachment->textureView(); in setAndBindTextures() local 197 imageInfo.imageView = textureView->imageView(); in setAndBindTextures() 219 commandBuffer->addResource(textureView); in setAndBindTextures()
|
D | GrVkImage.h | 102 const GrVkImageView* textureView() const { return fTextureView.get(); } in textureView() function 230 sk_sp<const GrVkImageView> textureView, 239 sk_sp<const GrVkImageView> textureView,
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/utils/ |
D | WGPUHelpers.cpp | 145 const Ref<TextureViewBase>& textureView) in BindingInitializationHelper() argument 146 : binding(binding), textureView(textureView) { in BindingInitializationHelper() 163 result.textureView = textureView.Get(); in GetAsBinding()
|
D | WGPUHelpers.h | 97 BindingInitializationHelper(uint32_t binding, const Ref<TextureViewBase>& textureView); 108 Ref<TextureViewBase> textureView; member
|
/third_party/flutter/skia/third_party/externals/dawn/src/tests/end2end/ |
D | TextureViewTests.cpp | 161 void Verify(const dawn::TextureView &textureView, const char* fragmentShader, int expected) { in Verify() argument 164 {1, textureView} in Verify() 212 dawn::TextureView textureView = mTexture.CreateView(&descriptor); in Texture2DViewTest() local 228 Verify(textureView, fragmentShader, expected); in Texture2DViewTest() 251 dawn::TextureView textureView = mTexture.CreateView(&descriptor); in Texture2DArrayViewTest() local 272 Verify(textureView, fragmentShader, expected); in Texture2DArrayViewTest() 361 dawn::TextureView textureView = mTexture.CreateDefaultView(); in TEST_P() local 380 Verify(textureView, fragmentShader, expected); in TEST_P() 489 dawn::TextureView textureView = texture.CreateView(&descriptor); in TextureLayerAsColorAttachmentTest() local 494 utils::ComboRenderPassDescriptor renderPassInfo({textureView}); in TextureLayerAsColorAttachmentTest()
|
/third_party/flutter/skia/third_party/externals/dawn/src/tests/unittests/validation/ |
D | BindGroupValidationTests.cpp | 139 binding.textureView = nullptr; in TEST_F() 157 binding.textureView = mSampledTextureView; in TEST_F() 159 binding.textureView = nullptr; in TEST_F() 189 binding.textureView = nullptr; in TEST_F() 203 binding.textureView = mSampledTextureView; in TEST_F() 209 binding.textureView = nullptr; in TEST_F() 229 binding.textureView = errorView; in TEST_F() 231 binding.textureView = nullptr; in TEST_F() 244 binding.textureView = nullptr; in TEST_F() 262 binding.textureView = mSampledTextureView; in TEST_F() [all …]
|
D | TextureValidationTests.cpp | 197 dawn::TextureView textureView = texture.CreateDefaultView(); in TEST_F() local 199 utils::ComboRenderPassDescriptor renderPass({textureView}); in TEST_F() 220 dawn::TextureView textureView = texture.CreateDefaultView(); in TEST_F() local 222 utils::ComboRenderPassDescriptor renderPass({textureView}); in TEST_F()
|
/third_party/skia/third_party/externals/dawn/src/tests/end2end/ |
D | TextureViewTests.cpp | 170 void Verify(const wgpu::TextureView& textureView, const char* fragmentShader, int expected) { in Verify() argument 181 {{0, mSampler}, {1, textureView}}); in Verify() 219 wgpu::TextureView textureView = mTexture.CreateView(&descriptor); in Texture2DViewTest() local 232 Verify(textureView, fragmentShader, expected); in Texture2DViewTest() 257 wgpu::TextureView textureView = mTexture.CreateView(&descriptor); in Texture2DArrayViewTest() local 275 Verify(textureView, fragmentShader, expected); in Texture2DArrayViewTest() 366 wgpu::TextureView textureView = mTexture.CreateView(&descriptor); in TEST_P() local 382 Verify(textureView, fragmentShader, expected); in TEST_P() 492 wgpu::TextureView textureView = texture.CreateView(&descriptor); in TextureLayerAsColorAttachmentTest() local 497 utils::ComboRenderPassDescriptor renderPassInfo({textureView}); in TextureLayerAsColorAttachmentTest()
|
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/opengl/ |
D | CommandBufferGL.cpp | 594 TextureViewBase* textureView = renderPass->colorAttachments[i].view.Get(); in ExecuteRenderPass() local 595 GLuint texture = ToBackend(textureView->GetTexture())->GetHandle(); in ExecuteRenderPass() 598 if (textureView->GetTexture()->GetArrayLayers() == 1) { in ExecuteRenderPass() 599 GLenum target = ToBackend(textureView->GetTexture())->GetGLTarget(); in ExecuteRenderPass() 601 texture, textureView->GetBaseMipLevel()); in ExecuteRenderPass() 604 texture, textureView->GetBaseMipLevel(), in ExecuteRenderPass() 605 textureView->GetBaseArrayLayer()); in ExecuteRenderPass() 612 dawn::TextureFormat format = textureView->GetTexture()->GetFormat().format; in ExecuteRenderPass() 621 TextureViewBase* textureView = renderPass->depthStencilAttachment.view.Get(); in ExecuteRenderPass() local 622 GLuint texture = ToBackend(textureView->GetTexture())->GetHandle(); in ExecuteRenderPass() [all …]
|
/third_party/flutter/skia/third_party/externals/dawn/src/utils/ |
D | DawnHelpers.cpp | 312 const dawn::TextureView& textureView) in BindingInitializationHelper() argument 313 : binding(binding), textureView(textureView) { in BindingInitializationHelper() 328 result.textureView = textureView; in GetAsBinding()
|
D | DawnHelpers.h | 111 BindingInitializationHelper(uint32_t binding, const dawn::TextureView& textureView); 121 dawn::TextureView textureView; member
|
/third_party/skia/third_party/externals/dawn/src/utils/ |
D | WGPUHelpers.cpp | 323 const wgpu::TextureView& textureView) in BindingInitializationHelper() argument 324 : binding(binding), textureView(textureView) { in BindingInitializationHelper() 346 result.textureView = textureView; in GetAsBinding()
|
/third_party/flutter/skia/src/gpu/vk/ |
D | GrVkPipelineState.cpp | 223 const GrVkImageView* textureView = texture->textureView(); in setAndBindTextures() local 236 imageInfo.imageView = textureView->imageView(); in setAndBindTextures() 258 commandBuffer->addResource(samplerBindings[i].fTexture->textureView()); in setAndBindTextures()
|
/third_party/skia/src/gpu/dawn/ |
D | GrDawnProgramBuilder.cpp | 231 const wgpu::TextureView& textureView) { in make_bind_group_entry() argument 238 result.textureView = textureView; in make_bind_group_entry() 248 const wgpu::TextureView& textureView) { in make_bind_group_entry() argument 249 return make_bind_group_entry(binding, nullptr, textureView); in make_bind_group_entry() 491 wgpu::TextureView textureView = tex->texture().CreateView(&viewDesc); in set_texture() local 492 bindings->push_back(make_bind_group_entry((*binding)++, textureView)); in set_texture()
|
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/ |
D | LabelTests.cpp | 477 wgpu::TextureView textureView = texture.CreateView(); in TEST_F() local 478 std::string readbackLabel = dawn_native::GetObjectLabelForTesting(textureView.Get()); in TEST_F() 484 wgpu::TextureView textureView = texture.CreateView(); in TEST_F() local 485 textureView.SetLabel(label.c_str()); in TEST_F() 486 std::string readbackLabel = dawn_native::GetObjectLabelForTesting(textureView.Get()); in TEST_F() 494 wgpu::TextureView textureView = texture.CreateView(&viewDescriptor); in TEST_F() local 495 std::string readbackLabel = dawn_native::GetObjectLabelForTesting(textureView.Get()); in TEST_F()
|
/third_party/skia/third_party/externals/dawn/src/tests/unittests/native/ |
D | DestroyObjectTests.cpp | 537 Ref<TextureViewBase> textureView; in TEST_F() local 540 DAWN_ASSERT_AND_ASSIGN(textureView, in TEST_F() 543 EXPECT_TRUE(textureView->IsAlive()); in TEST_F() 730 Ref<TextureViewBase> textureView; in TEST_F() local 735 DAWN_ASSERT_AND_ASSIGN(textureView, in TEST_F() 737 EXPECT_TRUE(textureView->IsAlive()); in TEST_F() 754 EXPECT_FALSE(textureView->IsAlive()); in TEST_F()
|