/third_party/flutter/skia/third_party/externals/dawn/src/tests/unittests/validation/ |
D | RenderPipelineValidationTests.cpp | 164 dawn::TextureDescriptor textureDescriptor = baseTextureDescriptor; in TEST_F() local 165 textureDescriptor.format = kColorFormat; in TEST_F() 166 textureDescriptor.sampleCount = kMultisampledCount; in TEST_F() 167 dawn::Texture multisampledColorTexture = device.CreateTexture(&textureDescriptor); in TEST_F() 180 dawn::TextureDescriptor textureDescriptor = baseTextureDescriptor; in TEST_F() local 181 textureDescriptor.sampleCount = kMultisampledCount; in TEST_F() 182 textureDescriptor.format = kDepthStencilFormat; in TEST_F() 184 device.CreateTexture(&textureDescriptor); in TEST_F() 200 dawn::TextureDescriptor textureDescriptor = baseTextureDescriptor; in TEST_F() local 201 textureDescriptor.format = kColorFormat; in TEST_F() [all …]
|
D | CommandBufferValidationTests.cpp | 239 dawn::TextureDescriptor textureDescriptor; in TEST_F() local 240 …textureDescriptor.usage = dawn::TextureUsageBit::Sampled | dawn::TextureUsageBit::OutputAttachment; in TEST_F() 241 textureDescriptor.format = dawn::TextureFormat::RGBA8Unorm; in TEST_F() 242 textureDescriptor.dimension = dawn::TextureDimension::e2D; in TEST_F() 243 textureDescriptor.size = {1, 1, 1}; in TEST_F() 244 textureDescriptor.arrayLayerCount = 1; in TEST_F() 245 textureDescriptor.sampleCount = 1; in TEST_F() 246 textureDescriptor.mipLevelCount = 1; in TEST_F() 247 dawn::Texture texture = device.CreateTexture(&textureDescriptor); in TEST_F()
|
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/ |
D | ExternalTextureTests.cpp | 59 wgpu::TextureDescriptor textureDescriptor = CreateDefaultTextureDescriptor(); in TEST_F() local 60 wgpu::Texture texture = device.CreateTexture(&textureDescriptor); in TEST_F() 70 wgpu::TextureDescriptor textureDescriptor = CreateDefaultTextureDescriptor(); in TEST_F() local 71 textureDescriptor.format = wgpu::TextureFormat::RGBA8Uint; in TEST_F() 72 wgpu::Texture texture = device.CreateTexture(&textureDescriptor); in TEST_F() 82 wgpu::TextureDescriptor textureDescriptor = CreateDefaultTextureDescriptor(); in TEST_F() local 83 textureDescriptor.dimension = wgpu::TextureDimension::e3D; in TEST_F() 84 wgpu::Texture internalTexture = device.CreateTexture(&textureDescriptor); in TEST_F() 94 wgpu::TextureDescriptor textureDescriptor = CreateDefaultTextureDescriptor(); in TEST_F() local 95 textureDescriptor.mipLevelCount = 2; in TEST_F() [all …]
|
D | LabelTests.cpp | 218 wgpu::TextureDescriptor textureDescriptor; in TEST_F() local 219 textureDescriptor.size.width = 1; in TEST_F() 220 textureDescriptor.size.height = 1; in TEST_F() 221 textureDescriptor.size.depthOrArrayLayers = 1; in TEST_F() 222 textureDescriptor.mipLevelCount = 1; in TEST_F() 223 textureDescriptor.sampleCount = 1; in TEST_F() 224 textureDescriptor.dimension = wgpu::TextureDimension::e2D; in TEST_F() 225 textureDescriptor.format = wgpu::TextureFormat::RGBA8Unorm; in TEST_F() 226 textureDescriptor.usage = in TEST_F() 228 wgpu::Texture texture = device.CreateTexture(&textureDescriptor); in TEST_F() [all …]
|
D | PipelineAndPassCompatibilityTests.cpp | 59 wgpu::TextureDescriptor textureDescriptor = {}; in CreateRenderPassDescriptor() local 60 textureDescriptor.size = {kSize, kSize, 1}; in CreateRenderPassDescriptor() 61 textureDescriptor.format = format; in CreateRenderPassDescriptor() 62 textureDescriptor.usage = wgpu::TextureUsage::RenderAttachment; in CreateRenderPassDescriptor() 63 wgpu::Texture depthStencilTexture = device.CreateTexture(&textureDescriptor); in CreateRenderPassDescriptor()
|
D | RenderPipelineValidationTests.cpp | 468 wgpu::TextureDescriptor textureDescriptor = baseTextureDescriptor; in TEST_F() local 469 textureDescriptor.format = kColorFormat; in TEST_F() 470 textureDescriptor.sampleCount = kMultisampledCount; in TEST_F() 471 wgpu::Texture multisampledColorTexture = device.CreateTexture(&textureDescriptor); in TEST_F() 484 wgpu::TextureDescriptor textureDescriptor = baseTextureDescriptor; in TEST_F() local 485 textureDescriptor.sampleCount = kMultisampledCount; in TEST_F() 486 textureDescriptor.format = kDepthStencilFormat; in TEST_F() 487 wgpu::Texture multisampledDepthStencilTexture = device.CreateTexture(&textureDescriptor); in TEST_F() 501 wgpu::TextureDescriptor textureDescriptor = baseTextureDescriptor; in TEST_F() local 502 textureDescriptor.format = kColorFormat; in TEST_F() [all …]
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/ |
D | D3D12Backend.cpp | 87 TextureDescriptor textureDescriptor = {}; in ProduceTexture() local 88 textureDescriptor.usage = static_cast<wgpu::TextureUsage>(descriptor->usage); in ProduceTexture() 89 textureDescriptor.dimension = static_cast<wgpu::TextureDimension>(mDimension); in ProduceTexture() 90 textureDescriptor.size = {mSize.width, mSize.height, mSize.depthOrArrayLayers}; in ProduceTexture() 91 textureDescriptor.format = static_cast<wgpu::TextureFormat>(mFormat); in ProduceTexture() 92 textureDescriptor.mipLevelCount = mMipLevelCount; in ProduceTexture() 93 textureDescriptor.sampleCount = mSampleCount; in ProduceTexture() 97 textureDescriptor.nextInChain = &internalDesc; in ProduceTexture() 110 &textureDescriptor, mD3D12Resource, std::move(d3d11on12Resource), in ProduceTexture() 130 const TextureDescriptor* textureDescriptor = FromAPI(descriptor->cTextureDescriptor); in Create() local [all …]
|
/third_party/skia/third_party/externals/dawn/src/tests/end2end/ |
D | IOSurfaceWrappingTests.cpp | 301 wgpu::TextureDescriptor textureDescriptor; in DoSampleTest() local 302 textureDescriptor.dimension = wgpu::TextureDimension::e2D; in DoSampleTest() 303 textureDescriptor.format = format; in DoSampleTest() 304 textureDescriptor.size = {1, 1, 1}; in DoSampleTest() 305 textureDescriptor.sampleCount = 1; in DoSampleTest() 306 textureDescriptor.mipLevelCount = 1; in DoSampleTest() 307 textureDescriptor.usage = wgpu::TextureUsage::TextureBinding; in DoSampleTest() 308 wgpu::Texture wrappingTexture = WrapIOSurface(&textureDescriptor, ioSurface, 0); in DoSampleTest() 341 wgpu::TextureDescriptor textureDescriptor; in DoClearTest() local 342 textureDescriptor.dimension = wgpu::TextureDimension::e2D; in DoClearTest() [all …]
|
D | ClipSpaceTests.cpp | 53 wgpu::TextureDescriptor textureDescriptor; in Create2DTextureForTest() local 54 textureDescriptor.dimension = wgpu::TextureDimension::e2D; in Create2DTextureForTest() 55 textureDescriptor.format = format; in Create2DTextureForTest() 56 textureDescriptor.usage = in Create2DTextureForTest() 58 textureDescriptor.mipLevelCount = 1; in Create2DTextureForTest() 59 textureDescriptor.sampleCount = 1; in Create2DTextureForTest() 60 textureDescriptor.size = {kSize, kSize, 1}; in Create2DTextureForTest() 61 return device.CreateTexture(&textureDescriptor); in Create2DTextureForTest()
|
D | CompressedTextureFormatTests.cpp | 27 wgpu::TextureDescriptor textureDescriptor; member 82 utils::GetTexelBlockSizeInBytes(copyConfig.textureDescriptor.format); in UploadData() 266 wgpu::Texture texture = device.CreateTexture(&config.textureDescriptor); in CreateTextureWithCompressedData() 289 wgpu::Texture dstTexture = device.CreateTexture(&dstConfig.textureDescriptor); in CreateTextureFromTexture() 595 config.textureDescriptor.format = GetParam().mTextureFormat; in GetDefaultFullConfig() 596 config.textureDescriptor.usage = kDefaultFormatTextureUsage; in GetDefaultFullConfig() 597 config.textureDescriptor.size = GetTextureSizeWithNumBlocks( in GetDefaultFullConfig() 599 config.textureDescriptor.mipLevelCount = kMipmapLevelCount; in GetDefaultFullConfig() 613 config.textureDescriptor.format = GetParam().mTextureFormat; in GetDefaultSmallConfig() 614 config.textureDescriptor.usage = kDefaultFormatTextureUsage; in GetDefaultSmallConfig() [all …]
|
D | CullingTests.cpp | 60 wgpu::TextureDescriptor textureDescriptor; in Create2DTextureForTest() local 61 textureDescriptor.dimension = wgpu::TextureDimension::e2D; in Create2DTextureForTest() 62 textureDescriptor.format = format; in Create2DTextureForTest() 63 textureDescriptor.usage = in Create2DTextureForTest() 65 textureDescriptor.mipLevelCount = 1; in Create2DTextureForTest() 66 textureDescriptor.sampleCount = 1; in Create2DTextureForTest() 67 textureDescriptor.size = {kSize, kSize, 1}; in Create2DTextureForTest() 68 return device.CreateTexture(&textureDescriptor); in Create2DTextureForTest()
|
D | CreatePipelineAsyncTests.cpp | 74 wgpu::TextureDescriptor textureDescriptor; in ValidateCreateRenderPipelineAsync() local 75 textureDescriptor.size = {1, 1, 1}; in ValidateCreateRenderPipelineAsync() 76 textureDescriptor.format = kRenderAttachmentFormat; in ValidateCreateRenderPipelineAsync() 77 textureDescriptor.usage = in ValidateCreateRenderPipelineAsync() 79 wgpu::Texture outputTexture = device.CreateTexture(&textureDescriptor); in ValidateCreateRenderPipelineAsync() 288 wgpu::TextureDescriptor textureDescriptor; in TEST_P() local 289 textureDescriptor.size = {1, 1, 1}; in TEST_P() 290 textureDescriptor.format = kRenderAttachmentFormat; in TEST_P() 291 textureDescriptor.usage = wgpu::TextureUsage::RenderAttachment | wgpu::TextureUsage::CopySrc; in TEST_P() 292 wgpu::Texture outputTexture = device.CreateTexture(&textureDescriptor); in TEST_P() [all …]
|
D | TextureZeroInitTests.cpp | 1738 wgpu::TextureDescriptor textureDescriptor, in InitializeDataInCompressedTextureAndExpectLazyClear() argument 1746 Align(copyWidthInBlock * utils::GetTexelBlockSizeInBytes(textureDescriptor.format), in InitializeDataInCompressedTextureAndExpectLazyClear() 1751 textureDescriptor.format), in InitializeDataInCompressedTextureAndExpectLazyClear() 1773 wgpu::TextureDescriptor textureDescriptor, in TestCopyRegionIntoBCFormatTexturesAndCheckSubresourceIsInitialized() argument 1780 wgpu::Texture bcTexture = device.CreateTexture(&textureDescriptor); in TestCopyRegionIntoBCFormatTexturesAndCheckSubresourceIsInitialized() 1781 InitializeDataInCompressedTextureAndExpectLazyClear(bcTexture, textureDescriptor, in TestCopyRegionIntoBCFormatTexturesAndCheckSubresourceIsInitialized() 1785 SampleCompressedTextureAndVerifyColor(bcTexture, textureDescriptor, copyExtent3D, in TestCopyRegionIntoBCFormatTexturesAndCheckSubresourceIsInitialized() 1791 wgpu::TextureDescriptor textureDescriptor, in SampleCompressedTextureAndVerifyColor() argument 1799 utils::CreateBasicRenderPass(device, textureDescriptor.size.width >> viewMipmapLevel, in SampleCompressedTextureAndVerifyColor() 1800 textureDescriptor.size.height >> viewMipmapLevel); in SampleCompressedTextureAndVerifyColor() [all …]
|
D | RenderPassLoadOpTests.cpp | 106 wgpu::TextureDescriptor textureDescriptor; in TestIntegerClearColor() local 107 textureDescriptor.dimension = wgpu::TextureDimension::e2D; in TestIntegerClearColor() 108 textureDescriptor.size = kTextureSize; in TestIntegerClearColor() 109 textureDescriptor.usage = in TestIntegerClearColor() 111 textureDescriptor.format = format; in TestIntegerClearColor() 112 wgpu::Texture texture = device.CreateTexture(&textureDescriptor); in TestIntegerClearColor()
|
D | QueueTests.cpp | 641 wgpu::TextureDescriptor textureDescriptor; in TEST_P() local 642 textureDescriptor.format = wgpu::TextureFormat::Depth24PlusStencil8; in TEST_P() 643 textureDescriptor.usage = wgpu::TextureUsage::CopySrc | wgpu::TextureUsage::CopyDst; in TEST_P() 644 textureDescriptor.size = {1, 1, 1}; in TEST_P() 645 wgpu::Texture dstTexture1 = device.CreateTexture(&textureDescriptor); in TEST_P() 646 wgpu::Texture dstTexture2 = device.CreateTexture(&textureDescriptor); in TEST_P()
|
D | TextureViewTests.cpp | 173 utils::ComboRenderPipelineDescriptor textureDescriptor; in Verify() local 174 textureDescriptor.vertex.module = mVSModule; in Verify() 175 textureDescriptor.cFragment.module = fsModule; in Verify() 176 textureDescriptor.cTargets[0].format = mRenderPass.colorFormat; in Verify() 178 wgpu::RenderPipeline pipeline = device.CreateRenderPipeline(&textureDescriptor); in Verify()
|
/third_party/flutter/skia/third_party/externals/dawn/src/tests/end2end/ |
D | ClipSpaceTests.cpp | 58 dawn::TextureDescriptor textureDescriptor; in Create2DTextureForTest() local 59 textureDescriptor.dimension = dawn::TextureDimension::e2D; in Create2DTextureForTest() 60 textureDescriptor.format = format; in Create2DTextureForTest() 61 textureDescriptor.usage = in Create2DTextureForTest() 63 textureDescriptor.arrayLayerCount = 1; in Create2DTextureForTest() 64 textureDescriptor.mipLevelCount = 1; in Create2DTextureForTest() 65 textureDescriptor.sampleCount = 1; in Create2DTextureForTest() 66 textureDescriptor.size = {kSize, kSize, 1}; in Create2DTextureForTest() 67 return device.CreateTexture(&textureDescriptor); in Create2DTextureForTest()
|
D | IOSurfaceWrappingTests.cpp | 244 dawn::TextureDescriptor textureDescriptor; in DoSampleTest() local 245 textureDescriptor.dimension = dawn::TextureDimension::e2D; in DoSampleTest() 246 textureDescriptor.format = format; in DoSampleTest() 247 textureDescriptor.size = {1, 1, 1}; in DoSampleTest() 248 textureDescriptor.sampleCount = 1; in DoSampleTest() 249 textureDescriptor.arrayLayerCount = 1; in DoSampleTest() 250 textureDescriptor.mipLevelCount = 1; in DoSampleTest() 251 textureDescriptor.usage = dawn::TextureUsageBit::Sampled; in DoSampleTest() 252 dawn::Texture wrappingTexture = WrapIOSurface(&textureDescriptor, ioSurface, 0); in DoSampleTest() 337 dawn::TextureDescriptor textureDescriptor; in DoClearTest() local [all …]
|
D | CullingTests.cpp | 62 dawn::TextureDescriptor textureDescriptor; in Create2DTextureForTest() local 63 textureDescriptor.dimension = dawn::TextureDimension::e2D; in Create2DTextureForTest() 64 textureDescriptor.format = format; in Create2DTextureForTest() 65 textureDescriptor.usage = in Create2DTextureForTest() 67 textureDescriptor.arrayLayerCount = 1; in Create2DTextureForTest() 68 textureDescriptor.mipLevelCount = 1; in Create2DTextureForTest() 69 textureDescriptor.sampleCount = 1; in Create2DTextureForTest() 70 textureDescriptor.size = {kSize, kSize, 1}; in Create2DTextureForTest() 71 return device.CreateTexture(&textureDescriptor); in Create2DTextureForTest()
|
D | ViewportTests.cpp | 67 dawn::TextureDescriptor textureDescriptor; in Create2DTextureForTest() local 68 textureDescriptor.dimension = dawn::TextureDimension::e2D; in Create2DTextureForTest() 69 textureDescriptor.format = format; in Create2DTextureForTest() 70 textureDescriptor.usage = in Create2DTextureForTest() 72 textureDescriptor.arrayLayerCount = 1; in Create2DTextureForTest() 73 textureDescriptor.mipLevelCount = 1; in Create2DTextureForTest() 74 textureDescriptor.sampleCount = 1; in Create2DTextureForTest() 75 textureDescriptor.size = {kSize, kSize, 1}; in Create2DTextureForTest() 76 return device.CreateTexture(&textureDescriptor); in Create2DTextureForTest()
|
D | BindGroupTests.cpp | 131 utils::ComboRenderPipelineDescriptor textureDescriptor(device); in TEST_P() local 132 textureDescriptor.layout = pipelineLayout; in TEST_P() 133 textureDescriptor.cVertexStage.module = vsModule; in TEST_P() 134 textureDescriptor.cFragmentStage.module = fsModule; in TEST_P() 135 textureDescriptor.cColorStates[0]->format = renderPass.colorFormat; in TEST_P() 137 dawn::RenderPipeline pipeline = device.CreateRenderPipeline(&textureDescriptor); in TEST_P() 337 utils::ComboRenderPipelineDescriptor textureDescriptor(device); in TEST_P() local 338 textureDescriptor.layout = pipelineLayout; in TEST_P() 339 textureDescriptor.cVertexStage.module = vsModule; in TEST_P() 340 textureDescriptor.cFragmentStage.module = fsModule; in TEST_P() [all …]
|
D | TextureViewTests.cpp | 170 utils::ComboRenderPipelineDescriptor textureDescriptor(device); in Verify() local 171 textureDescriptor.cVertexStage.module = mVSModule; in Verify() 172 textureDescriptor.cFragmentStage.module = fsModule; in Verify() 173 textureDescriptor.layout = mPipelineLayout; in Verify() 174 textureDescriptor.cColorStates[0]->format = mRenderPass.colorFormat; in Verify() 176 dawn::RenderPipeline pipeline = device.CreateRenderPipeline(&textureDescriptor); in Verify()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/ |
D | DeviceGL.cpp | 206 const TextureDescriptor* textureDescriptor = FromAPI(descriptor->cTextureDescriptor); in CreateTextureWrappingEGLImage() local 208 if (ConsumedError(ValidateTextureDescriptor(this, textureDescriptor))) { in CreateTextureWrappingEGLImage() 211 if (ConsumedError(ValidateEGLImageCanBeWrapped(textureDescriptor, image))) { in CreateTextureWrappingEGLImage() 225 if (textureDescriptor->size.width != static_cast<uint32_t>(width) || in CreateTextureWrappingEGLImage() 226 textureDescriptor->size.height != static_cast<uint32_t>(height) || in CreateTextureWrappingEGLImage() 227 textureDescriptor->size.depthOrArrayLayers != 1) { in CreateTextureWrappingEGLImage() 230 width, height, &textureDescriptor->size)); in CreateTextureWrappingEGLImage() 237 return new Texture(this, textureDescriptor, tex, TextureBase::TextureState::OwnedInternal); in CreateTextureWrappingEGLImage()
|
/third_party/skia/third_party/externals/dawn/src/tests/white_box/ |
D | EGLImageWrappingTests.cpp | 307 wgpu::TextureDescriptor textureDescriptor; in DoClearTest() local 308 textureDescriptor.dimension = wgpu::TextureDimension::e2D; in DoClearTest() 309 textureDescriptor.format = format; in DoClearTest() 310 textureDescriptor.size = {1, 1, 1}; in DoClearTest() 311 textureDescriptor.sampleCount = 1; in DoClearTest() 312 textureDescriptor.mipLevelCount = 1; in DoClearTest() 313 textureDescriptor.usage = wgpu::TextureUsage::RenderAttachment; in DoClearTest() 316 textureDescriptor.nextInChain = &internalDesc; in DoClearTest() 320 wgpu::Texture eglImageTexture = WrapEGLImage(&textureDescriptor, eglImage); in DoClearTest()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/ |
D | DeviceVk.cpp | 722 const TextureDescriptor* textureDescriptor = FromAPI(descriptor->cTextureDescriptor); in ImportExternalImage() local 725 FindInChain(textureDescriptor->nextInChain, &internalUsageDesc); in ImportExternalImage() 727 wgpu::TextureUsage usage = textureDescriptor->usage; in ImportExternalImage() 738 VulkanImageFormat(this, textureDescriptor->format), VK_IMAGE_TYPE_2D, in ImportExternalImage() 740 VulkanImageUsage(usage, GetValidInternalFormat(textureDescriptor->format)), in ImportExternalImage() 796 const TextureDescriptor* textureDescriptor = FromAPI(descriptor->cTextureDescriptor); in CreateTextureWrappingVulkanImage() local 799 if (ConsumedError(ValidateTextureDescriptor(this, textureDescriptor))) { in CreateTextureWrappingVulkanImage() 802 if (ConsumedError(ValidateVulkanImageCanBeWrapped(this, textureDescriptor), in CreateTextureWrappingVulkanImage() 804 textureDescriptor)) { in CreateTextureWrappingVulkanImage() 817 if (ConsumedError(Texture::CreateFromExternal(this, descriptor, textureDescriptor, in CreateTextureWrappingVulkanImage()
|