Docs: the texture buffer word, the formats held as words, their notes; test vectors of the texture buffer word
RESOURCE-ID.md gains the texture buffer word (TextureWord::of_texture_buffer: bits 0-1 padding, 2-7 the code, 8-9 texels per word, 10 a texel of two words; the 39 codes in order) and drops its stale line that a texture buffer has no index. The runtime's README says which formats a texture buffer holds as words and which it still refuses; the KosmicKrisp BGRA8Unorm gap is gone. API.md and PrecisionNote's docs say a texture buffer held as words records SrgbTexelDecode and DevicePackConversion for its float reads and writes, and that its other conversions are exact. tests/resource_words.rs writes texture buffer lines (format, width, word); the table is blessed in a later commit. REFUSALS.md regenerated (one more TextureFormat site).
This commit is contained in:
1 parent
4208d6ca84
commit
0ad55e1468
6 files changed
+120
-38
No files matched your search
+13
-3
@@ -269,7 +269,9 @@ and so do the command line, the compile worker and every validation tool. It hol
|
||||
`first` its run's first element, `PushField::TextureLevelBase`:
|
||||
[RESOURCE-ID.md](RESOURCE-ID.md)), reads, writes and updates atomically its texture buffers, slots and
|
||||
argument buffers' members alike (a uniform texel buffer where it reads one, a storage texel
|
||||
buffer where it writes one, the element of set 1's texel-buffer array at its ID's index), and
|
||||
buffer where it writes one, the element of set 1's texel-buffer array at its ID's index; where
|
||||
the ID's word says the texture buffer is held as words, that element is a view of `R32_UINT`
|
||||
and the function converts its texels itself: RESOURCE-ID.md, the texture buffer word), and
|
||||
samples its texture slots
|
||||
through its runtime sampler slots and its constexpr samplers and reads them through those (MSL
|
||||
4.1's `read(sampler, coord)`, its border texel from bits 0-11 of the ID's word). Any other
|
||||
@@ -2061,7 +2063,9 @@ bound.
|
||||
device holds the format as its UNORM twin, or a storage texture holds it through its UNORM
|
||||
alias (at a slot, or held by an argument buffer), the module decodes the codes (or the
|
||||
device's filter of them) by the MSL transfer through the device's `Pow`, at every such access on
|
||||
every device.
|
||||
every device. A `float` read of a texture buffer held as words decodes an 8-bit sRGB colour code
|
||||
the same way, and records the note outright: its routine reads every format the texture
|
||||
buffer's word may name.
|
||||
- `metal2vulkan-degrade-function-storage-assumed` (precision).
|
||||
`PrecisionNote::FunctionStorageAssumed`: A vertex or fragment function keeps more private memory
|
||||
(its `alloca`s, a call stack among them, or constants held as `Private` variables) than the floor,
|
||||
@@ -2548,7 +2552,13 @@ bound.
|
||||
function decodes the same way: such a stage records the note as a specialized note, holding
|
||||
where a texture its handles can name is one (`SpecKey::HeapRawTextures`, which a runtime gives
|
||||
from the textures the command makes resident or binds), so a reading of the module alone
|
||||
holds it, and so does a command that can name one.
|
||||
holds it, and so does a command that can name one. A texture buffer held as words converts its
|
||||
extended-range texels the same way, and encodes a write's 8-bit sRGB colour by
|
||||
`unorm4x8_srgb`'s pack; its `float` read and write record the note outright, the routine
|
||||
converting every format the texture buffer's word may name. Its other conversions are exact: a
|
||||
normalized code to its correctly rounded quotient, a value to the exact product's code rounded
|
||||
to nearest even, a half or small float exactly, and a write's half or small float toward zero,
|
||||
as Metal's kernel writes.
|
||||
- `metal2vulkan-degrade-device-fragment-runs` (precision). `PrecisionNote::DeviceFragmentRuns`: A
|
||||
fragment function that writes memory (`StageInterface::writes_memory`) in a render pipeline of
|
||||
more than one sample, which the pipeline's compile records on its fragment stage, decided by the
|
||||
|
||||
Reference in new issue
Block a user