Function binding [src]

Forms the main linkage for input and output address spaces. ptr must be a reference to variable or struct field.

Prototype

pub fn binding(comptime ptr: anytype, comptime set: u32, comptime bind: u32) void

Parameters

set: u32bind: u32

Source

pub fn binding(comptime ptr: anytype, comptime set: u32, comptime bind: u32) void { asm volatile ( \\OpDecorate %ptr DescriptorSet $set \\OpDecorate %ptr Binding $bind : : [ptr] "" (ptr), [set] "c" (set), [bind] "c" (bind), ); }