bevy icon indicating copy to clipboard operation
bevy copied to clipboard

Documenting `Texture`, `TextureView` and `Sampler`.

Open bzm3r opened this issue 1 year ago • 1 comments

Objective

Texture documentation is a little sparse, and it is difficult to say to what extent it can be improved, since it is ultimately a fairly light wrapper around wgpu's GpuTexture. Still, improvements could be made by adding relevant links to Texture related structures: for example, Image and TextureDescriptor.

Solution

Added a small blurb describing what Textures are used for, and noting its tight connection to Image. Also added a sentence noting that creating a texture usually requires setting up a TextureDescriptor. Similar light improvements were made to other related data structures.

bzm3r avatar Jul 25 '22 22:07 bzm3r

@superdump Curious, as always, to hear your comments, if you have time!

bzm3r avatar Jul 25 '22 22:07 bzm3r