upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/github-metadata-export.md
diff options
context:
space:
mode:
authorNotRexed <therealnothingfn@gmail.com>2026-11-28 20:51:36 -0500
committerNotRexed <therealnothingfn@gmail.com>2026-11-28 20:51:36 -0500
commit0807f9cbac04cbc6a72e9a7389a2811579e9ecda (patch)
tree0a408ff564580e0ceb770c55b1599f44caa1dd04 /docs/github-metadata-export.md
parent0a325350e4a9e58ca83ae43e886f4e6caa9955b5 (diff)
Sample mask: draws under OMSetSampleMaskX discard the pixels it leaves out
GTA fades between an object's levels of detail with OMSetSampleMaskX (newer list slot 142, 0x470): the two levels draw with complementary 2x2 quad masks. The slot was ignored, so both levels drew every pixel; expected to be the plants and trees that flicker (not confirmed in a run yet). A second translation of the pixel program (with_pixel_mask) discards at entry each pixel whose quad bit is clear in a root-constant dword the host sets (USER_PIXEL_MASK, 0x10a) and drops the early depth test. A draw under a mask that leaves pixels out takes its pipeline's masked twin, made on first use by a worker (the title's pipeline draws every pixel meanwhile); every other draw is unchanged. LEONIDA_SAMPLE_MASK=0 ignores the slot as before. From trustno1-coder/VIctory-NVIDIA 0938dd9 (GPL-3.0-or-later), adapted: - a pixel program without SV_Position reads the one it is given from the row the vertex or mesh program writes it in. The fork puts it after the program's other inputs, and the host refuses to link that where the vertex program writes the position first (E_INVALIDARG on an RTX 4060 Ti; a test now draws both layouts); - the twin keeps the title shader's hash (skip lists, sampler scopes and bake detection take it for that shader), and follows the bound target formats as the title's pipeline does; - the masked form has shader-cache keys of its own, one per position row; plain translations keep theirs. Tests (leonida-shader, on the card and on WARP where a device is needed): a_pixel_mask_draws_only_its_pixels_of_each_quad, a_masked_pixel_program_reads_the_position_where_the_vertex_program_writes_it, a_masked_pixel_program_reads_the_mask_and_loses_early_depth, the_sample_mask_keeps_pixels_by_their_place_in_the_quad; (leonida-gpu) the_sample_mask_reaches_the_masked_pixel_shader, the_masked_form_never_shares_a_key_with_the_plain_one, the_sample_mask_is_slot_142_of_newer_lists_and_has_a_switch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/github-metadata-export.md')
0 files changed, 0 insertions, 0 deletions