authorgravatar for ashpil@pm.meashpil <ashpil@pm.me> 2025-10-07 21:07:23-07:00
committergravatar for ashpil@pm.meashpil <ashpil@pm.me> 2025-12-22 10:00:35-08:00
log0ea79c85b2b22266a0b25edf04c392add8387d5b
treec35cc707fec94068d3ba453a9bfca3fcb5fd573e
parent24e7500c33fe5945039670fe6ced312dad381d37
signaturebadge-check Signed by SSH key SHA256:TBbRxKT+n8Ud4FlUC5p0egketgOWptxhC233zHNyGxA

remove std.gpu.(binding|location)

with the extern changes, they are no longer necessary

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

lib/std/gpu.zig-24
......@@ -20,30 +20,6 @@ pub extern const global_invocation_id: @Vector(3, u32) addrspace(.input);
2020pub extern const vertex_index: u32 addrspace(.input);
2121pub extern const instance_index: u32 addrspace(.input);
2222
23/// Forms the main linkage for `input` and `output` address spaces.
24/// `ptr` must be a reference to variable or struct field.
25pub fn location(comptime ptr: anytype, comptime loc: u32) void {
26 asm volatile (
27 \\OpDecorate %ptr Location $loc
28 :
29 : [ptr] "" (ptr),
30 [loc] "c" (loc),
31 );
32}
33
34/// Forms the main linkage for `input` and `output` address spaces.
35/// `ptr` must be a reference to variable or struct field.
36pub fn binding(comptime ptr: anytype, comptime set: u32, comptime bind: u32) void {
37 asm volatile (
38 \\OpDecorate %ptr DescriptorSet $set
39 \\OpDecorate %ptr Binding $bind
40 :
41 : [ptr] "" (ptr),
42 [set] "c" (set),
43 [bind] "c" (bind),
44 );
45}
46
4723pub const ExecutionMode = union(Tag) {
4824 /// Sets origin of the framebuffer to the upper-left corner
4925 origin_upper_left,