Compare commits

...

3 Commits

Author SHA1 Message Date
JPikachu
b0778e1687 Revert "feat(shader): implement geometry shader invocation info"
This reverts commit fcec7995af.
2025-06-21 20:21:02 +01:00
JPikachu
da22ff6eb5 Revert the revert
/dies
2025-06-21 20:18:20 +01:00
JPikachu
54e432049c Revert "Add InputTopologyVertices from torzu adapted to eden"
This reverts commit 44dc152a2b.
2025-06-21 15:39:21 +01:00

View File

@@ -556,9 +556,8 @@ Id EmitInvocationInfo(EmitContext& ctx) {
switch (ctx.stage) {
case Stage::TessellationControl:
case Stage::TessellationEval:
return ctx.OpShiftLeftLogical(ctx.U32[1], ctx.OpLoad(ctx.U32[1], ctx.patch_vertices_in), ctx.Const(16u));
case Stage::Geometry:
return ctx.OpShiftLeftLogical(ctx.U32[1], ctx.Const(InputTopologyVertices::vertices(ctx.runtime_info.input_topology)), ctx.Const(16u));
return ctx.OpShiftLeftLogical(ctx.U32[1], ctx.OpLoad(ctx.U32[1], ctx.patch_vertices_in),
ctx.Const(16u));
default:
LOG_WARNING(Shader, "(STUBBED) called");
return ctx.Const(0x00ff0000u);