authorgravatar for subocashell@gmail.comSubo2002 <subocashell@gmail.com> 2026-08-29 20:03:14+02:00
committergravatar for alichraghi@noreply.codeberg.orgAli Cheraghi <alichraghi@noreply.codeberg.org> 2026-08-29 20:03:14+02:00
log71115f0ab3039f0b6d14316d736f82222bf1107a
tree1fc0c95c1787204327e4ed672e68750fed5d2fc3
parentbb7af4df66b7d627472f219b274fcbbc7b1b65ec

std.spirv: add `setMeshOutputs()` function


1 files changed, 9 insertions(+), 0 deletions(-)

lib/std/spirv.zig+9
......@@ -261,3 +261,12 @@ pub fn imageWrite(
261261 [texel] "" (texel),
262262 );
263263}
264
265pub fn setMeshOutputs(vertex_count: u32, primitive_count: u32) void {
266 asm volatile (
267 \\OpSetMeshOutputsEXT %vertex_count %primitive_count
268 :
269 : [vertex_count] "" (vertex_count),
270 [primitive_count] "" (primitive_count),
271 );
272}