mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fix some comments that were mis-formatted by rustfmt
and remove TODO that is now documented as a review comment
This commit is contained in:
parent
07d3242b26
commit
132ce72246
@ -417,19 +417,19 @@ pub fn create_tri(
|
|||||||
//
|
//
|
||||||
// (NOTE: Initially considered: Creating a storage buffer to read from in the
|
// (NOTE: Initially considered: Creating a storage buffer to read from in the
|
||||||
// shader via `Device::create_buffer_init`, with `MAP_WRITE` flag to avoid
|
// shader via `Device::create_buffer_init`, with `MAP_WRITE` flag to avoid
|
||||||
// staging buffer. However, with dedicated GPUs combining usages other than
|
// staging buffer. However, with GPUs combining usages other than `COPY_SRC`
|
||||||
// `COPY_SRC` with `MAP_WRITE` may be less ideal. Plus, by copying into a
|
// with `MAP_WRITE` may be less ideal. Plus, by copying into a texture first
|
||||||
// texture first we can get free srgb conversion when fetching colors
|
// we can get free srgb conversion when fetching colors from the texture. In
|
||||||
// from the texture. In the future, we may want to branch based on the
|
// the future, we may want to branch based on the whether the GPU is
|
||||||
// whether the GPU is integrated and avoid this extra copy.)
|
// integrated and avoid this extra copy.)
|
||||||
//
|
//
|
||||||
// 2. Run render pipeline to multiply by alpha reading from this texture and
|
// 2. Run render pipeline to multiply by alpha reading from this texture and
|
||||||
// writing to the final texture (this can either be in an atlas or in an
|
// writing to the final texture (this can either be in an atlas or in an
|
||||||
// independent texture if the image is over a certain size threshold).
|
// independent texture if the image is over a certain size threshold).
|
||||||
//
|
//
|
||||||
// (NOTE: Initially considered: using a compute pipeline and writing to the
|
// (NOTE: Initially considered: using a compute pipeline and writing to the
|
||||||
// final texture as a storage texture. However, the srgb format can't be used
|
// final texture as a storage texture. However, the srgb format can't be
|
||||||
// with storage texture and there is not yet the capability to create
|
// used with storage texture and there is not yet the capability to create
|
||||||
// non-srgb views of srgb textures.)
|
// non-srgb views of srgb textures.)
|
||||||
//
|
//
|
||||||
// Info needed:
|
// Info needed:
|
||||||
|
Loading…
Reference in New Issue
Block a user