Accept a git checkout of the SimpleTriangle sample in reference_triangle #151
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/152"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-21T17:33:40Z.
Change
reference_triangle_hardwareandreference_triangle_warpfail for anyone who gets the pinned SimpleTriangle sample with git:Xbox-GDK-Samplesdeclares*.hlsl eol=crlfin its.gitattributes, so a checkout writes the shaders with CRLF whatevercore.autocrlfis set to.git check-attron the pinned commit reportseol: crlfforVertexShader.hlsl. The test compares a byte-for-byte SHA-256 against the LF blobs (673 and 638 bytes), and the checked-out files are 699 and 664 bytes, so the first hash check always throws.The
.hlslfiles are now hashed with CRLF folded to LF.media/image1.pngis still compared byte for byte. The expected hashes are unchanged.docs/experiments.mdgains a sparse-checkout recipe for the defaultSIMPLE_TRIANGLE_DIRlocation, which needs no cache entry.Verification
Windows 10 22H2 (19045.6466), VS Build Tools 17.14, SDK 10.0.26100, RTX 3060 (32.0.15.9636) and WARP 10.0.19041.
REFERENCE_POWERSHELLresolved to Windows PowerShell 5.1 (pwshnot installed).mainb1e77b6(CRLF)Unexpected reference version: VertexShader.hlslPixelShader.hlslUnexpected reference version: PixelShader.hlslThe passing runs print
channels=10812 source_errors_gt2=0 published_image_errors_gt24=0 mean_abs=6.88 max_abs=17on both adapters, matching the numbers already indocs/experiments.md.Evidence and follow-up
No new fixtures. The sample is Microsoft's public
Xbox-GDK-Samplesat the commit the test already pins. The hash function uses only .NET APIs that Windows PowerShell 5.1 and PowerShell 7 share. I ran it under 5.1. The CI runner'spwshcovers 7 once the sample is present there, but CI does not fetch it today. Fetching it in CI would turn these two tests on for every PR.AI-assisted (Claude Code); built and run locally on the configuration above.