dawn-cmake/docs
Austin Eng 0eff5987f0 Add chained DawnTextureInternalUsageDescriptor
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>
2021-07-27 19:59:58 +00:00
..
extensions Add chained DawnTextureInternalUsageDescriptor 2021-07-27 19:59:58 +00:00
building.md docs: Mention to add `use_system_xcode=true` 2020-12-02 15:59:49 +00:00
codegen.md Add helper functions to iterate over ChainedStructs 2021-04-22 17:49:42 +00:00
contributing.md docs/contributing.md: Explain how to start a review. 2021-06-01 16:08:22 +00:00
debug_markers.md Vulkan: use VK_EXT_debug_utils instead of deprecated extensions. 2021-01-20 19:19:08 +00:00
debugging.md docs: write an overview of Dawn and split README.md 2019-12-05 11:01:41 +00:00
device_facilities.md Start adding docs about device facilities. 2020-05-05 08:46:15 +00:00
fuzzing.md Update the wire-based fuzzers to always assume an injected error 2021-03-23 16:47:50 +00:00
infra.md [docs] Add documentation for Dawn's testing infrastructure 2020-01-31 03:28:56 +00:00
overview.md Add documentation for the codegen. 2021-03-24 20:29:42 +00:00
testing.md Remove MapRead/WriteAsync and CreateBufferMapped 2020-08-20 14:22:29 +00:00