mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-07 13:39:55 +00:00
A pixel shader whose stencil export is replayed gets a push constant block that ends with the stencil reference word. When its shader data is not in push constants (registration modules give a shader with an image a shader data buffer, and data over the stage push range goes there too), the block holds only that word, and buildPrepare took any non-empty block to mean the guest buffer offsets are in push constants: the draw threw "guest buffer offset lies outside the shader's push constants". Only the stencilReferenceDword words before the reference now count as shader data in push constants; with none, the offsets go to the shader data buffer, where the shader reads them. Co-Authored-By: Claude Opus 5.5 <[email protected]>