Runtime comments: coherence's module doc says a texture over a Shared buffer counts as its whole buffer
coherence.rs's list of what a command buffer may write named each texture over a Shared buffer
in an image of its own, and a texture over one as a command names it, without saying which bytes
they count for. As in the runtime README's clause (a129f2cb7f), the code counts the whole buffer
the texture lies over: TextureObject::shared_range (texture.rs:5780) is its named buffer's
BufferObject::shared_range (buffer.rs:654). Comment only; no behaviour change.
Verified: fmt --check and rustdoc -D warnings in the job that follows.
This commit is contained in:
1 parent
a129f2cb7f
commit
0ae823f5e7
1 file changed
+4
-3
@@ -33,9 +33,10 @@
|
||||
//! over one, as the command names it (a blit's destination, a binding its function's interface
|
||||
//! writes, a `use_resource` with a write, a render pass's attachment, a visibility result buffer,
|
||||
//! a synchronize's target); each heap's block it uses; and each texture over a Shared buffer in an
|
||||
//! image of its own, whose bytes the runtime's copies write back. A range a command reaches only
|
||||
//! through an address, with no binding or declaration naming it, is neither flushed nor
|
||||
//! invalidated.
|
||||
//! image of its own, whose bytes the runtime's copies write back. A texture over a Shared buffer
|
||||
//! counts as the whole buffer it lies over (`TextureObject::shared_range`), not only its own bytes
|
||||
//! in it. A range a command reaches only through an address, with no binding or declaration naming
|
||||
//! it, is neither flushed nor invalidated.
|
||||
//!
|
||||
//! Ranges are of the pool's Shared allocations and the runtime's own, which it maps whole,
|
||||
//! widened to whole multiples of the device's `nonCoherentAtomSize`: within a block, since a block
|
||||
|
||||
Reference in new issue
Block a user