mirror of
https://github.com/storytold/craft-libs.git
synced 2026-12-01 02:36:54 +01:00
* Extract the material graph runtime from TextureCraft Preserve its evaluator, compiler, existing verification, and format reference from TextureCraft #777 at 22a37c29. Original TextureCraft importer author: xilefenko (TextureCraft #521). * Adapt graph helpers to the shared workspace lints Preserve node evaluation and version tracking while splitting long dispatch branches. Update the EXR doctest and rule table references for the shared crate. * Read the format reference with LF endings in its test * Test that the format reference example reads the same with CRLF line endings * Make the kind versions follow module attributes, arm order, raw strings, includes and the epoch * Fix graph cache keys, publish, import and subgraph extraction; harden the graph tests * Keep the cubic sampler from panicking on NaN texels; say what RGBE drops; check NaN halves by their bits * Lower vector inputs of f_to_bool and f_vec to valid WGSL; tighten the FX-map error and pattern coverage tests; document clamping and the splatter data cutoff * Say which composite glyph placements the font reader lacks; fail the y-up text test on a blank render * Leave publish as it was; unit-test the WGSL vector lowering; document EPOCH and keep_outputs results * Satisfy clippy in the version scanner and the WGSL lowering; compare cache hits by relation
34 lines
1.8 KiB
Plaintext
34 lines
1.8 KiB
Plaintext
# Rule: a pixel processor's start state at pixel (x, y) of a W x H node: Jenkins' one-at-a-time hash over three 32-bit
|
|
# words (not bytes): the seed as an integer, then the IEEE bits of the floats u = (x + 0.5) / W and v = (y + 0.5) / H
|
|
# (computed in single precision): h = 0; for each word: h += w; h += h << 10; h ^= h >> 6; then h += h << 3; h ^= h >> 11;
|
|
# h += h << 15; low 24 bits. A value processor is the same with u = v = 0 (the bits of 0.0). The first rand draws with the
|
|
# function generator (a = 0x37573B, c = 0xC7C1; lcg_draws.tsv).
|
|
# Source: measurement "Random numbers: solved, from rendered images only".
|
|
# Tolerance: exact.
|
|
# Columns: seed; x, y = the pixel; width, height = W, H; state = the start state; first_value = the first draw.
|
|
seed x y width height state first_value
|
|
0 0 0 256 256 9533094 0.5138245820999146
|
|
0 255 255 256 256 14270721 0.9945371150970459
|
|
0 128 85 256 256 10187343 0.6483300924301147
|
|
0 36 255 256 256 1526781 0.5518503189086914
|
|
1 0 0 256 256 9055738 0.1849116086959839
|
|
1 255 255 256 256 3263445 0.5122809410095215
|
|
1 128 85 256 256 14101896 0.2870802879333496
|
|
1 36 255 256 256 7900661 0.6670260429382324
|
|
5 0 0 512 512 9342682 0.24136340618133545
|
|
5 511 511 512 512 16055843 0.35252106189727783
|
|
5 256 170 512 512 5632153 0.4461977481842041
|
|
5 73 511 512 512 6727456 0.3327045440673828
|
|
12345 0 0 128 256 15450871 0.6627148389816284
|
|
12345 127 255 128 256 5700939 0.24470579624176025
|
|
12345 64 85 128 256 1657960 0.14348936080932617
|
|
12345 18 255 128 256 5308324 0.7829368114471436
|
|
7 0 0 256 128 13000277 0.040654659271240234
|
|
7 255 127 256 128 11750370 0.6682561635971069
|
|
7 128 42 256 128 5327022 0.8189979791641235
|
|
7 36 127 256 128 13070924 0.14043068885803223
|
|
0 0 0 1 1 1130734 0.1782318353652954
|
|
0 0 0 1 1 1130734 0.1782318353652954
|
|
0 0 0 1 1 1130734 0.1782318353652954
|
|
0 0 0 1 1 1130734 0.1782318353652954
|