mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-25 20:36:54 +01:00
shader: extract 9-bit NGG primitive vertex indices, leaving the edge flags out
This commit is contained in:
@@ -11160,6 +11160,8 @@ void TestMeshExportStorage() {
|
||||
!SpirvSourceHasInstructionUsing(source, "OpAccessChain",
|
||||
"vsharp %uint_0 %uint_4294967295"),
|
||||
"mesh draw prefix was lost or spilled shader data wrapped into push constants");
|
||||
Check(SpirvSourceHasInstructionUsing(source, "OpBitFieldUExtract", "%uint_10 %uint_9"),
|
||||
"NGG primitive vertex indices must be 9 bits; bit 9 of each field is the edge flag");
|
||||
const auto &binary = result.spirv;
|
||||
for (const auto builtin : {3u, 4u}) {
|
||||
auto expected = builtin == 3u ? std::vector<uint32_t>{0, 3}
|
||||
|
||||
Reference in New Issue
Block a user