Runtime docs: a block's chunks name the Unix-only sparse_block without a link
Block::_chunks is on every target, but sparse_block is #[cfg(unix)], so a private-items rustdoc
for a Windows target could not resolve the intra-doc link (found by the Direct3D 11 hand-over
lane's rustdoc of x86_64-pc-windows-gnullvm at 57dcc7f826). The field's doc now names the
function as code, on Unix, and the comment is rewrapped to 100 columns. Docs only.
Checked by a private-items rustdoc of metal2vulkan-runtime with -D warnings for
x86_64-pc-windows-gnullvm, x86_64-pc-windows-msvc and the Linux host.
This commit is contained in:
1 parent
57dcc7f826
commit
56a94f060d
1 file changed
+3
-3
@@ -510,9 +510,9 @@ pub(crate) struct Block {
|
||||
/// The block whose allocation this block's buffer is bound in ([`surface_view`]): given back
|
||||
/// after this one, so the block-maker thread destroys the buffer before it frees the memory.
|
||||
_under: Option<Arc<Block>>,
|
||||
/// An import over several dma-bufs' chunks, in order ([`sparse_block`]): given back after
|
||||
/// this one, so the block-maker thread destroys the sparse buffer before it frees any of
|
||||
/// their memory, the last of them holding the release.
|
||||
/// An import over several dma-bufs' chunks, in order (`sparse_block`, on Unix): given back
|
||||
/// after this one, so the block-maker thread destroys the sparse buffer before it frees any
|
||||
/// of their memory, the last of them holding the release.
|
||||
_chunks: Vec<Block>,
|
||||
/// Of an exported block: set once a public call hands out a device address of its memory
|
||||
/// ([`address_out`](Self::address_out)), which the textures over it read at each submission
|
||||
|
||||
Reference in new issue
Block a user