Function fragmentOrigin [src]

The coordinates appear to originate in the specified origin. Only valid with the Fragment calling convention.

Prototype

pub fn fragmentOrigin(comptime entry_point: anytype, comptime origin: Origin) void

Parameters

origin: Origin

Source

pub fn fragmentOrigin(comptime entry_point: anytype, comptime origin: Origin) void { asm volatile ( \\OpExecutionMode %entry_point $origin : : [entry_point] "" (entry_point), [origin] "c" (@intFromEnum(origin)), ); }