0eff5987f0
This chained struct can be used for internally adding usages to Dawn textures. It will affect how the texture is allocated, but not affect frontend validation. One use case for this is so that Chromium can use an internal copyTextureToTexture command to implement copies from a WebGPU texture-backed canvas to other Web platform primitives when the swapchain texture was not explicitly created with CopySrc usage in Javascript. Usage: wgpu::DawnTextureInternalUsageDescriptor internalDesc = {}; internalDesc.internalUsage = wgpu::TextureUsage::CopySrc; wgpu::TextureDescriptor desc = {}; // set properties of desc. desc.nextInChain = &internalDesc; device.createTexture(&desc); Fixed: dawn:1027 Change-Id: Id4d08b5588d4960d150d559aa11502c69f40a674 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/58140 Commit-Queue: Austin Eng <enga@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> |
||
---|---|---|
.. | ||
dawn_internal_usages.md |