u64 nvnDeviceGetUniformBufferHandle(NVNdevice* d, u64 address, u64 size)
Get the handle of a uniform buffer (Switch 2, API 231)
Switch 2's device command buffers and device messages (API 231)
| Parameter | Type | Description |
|---|---|---|
d | NVNdevice* | Pointer to the device, not read |
address | u64 | Buffer address, its low 4 bits dropped |
size | u64 | Size in bytes, rounded up to 16. Over 0x7FFFF0 is invalid: it does not fit the handle |
address / 16 in bits 0 to 44, the size / 16 rounded up in bits 45 to 63
| Drivers | Switch 2 (NVN2) |
|---|---|
| Declared | nvn.hook |
| Handler | nvn_DeviceGetUniformBufferHandle (nvn_object.c) |
Types as nvn.hook writes them: i32, u32, i64, u64: integers of that many bits; f32: float; bool: NVNboolean; usize, isize: size_t, ptrdiff_t.
Made from ScarletNX's Sail at 166ad3910f80. nvn.h is h1k421's reconstruction (MIT); nvn.hook, the handlers and the format table ScarletNX's (GPL-3.0-or-later). The Switch 2 marks are the drivers' procedure tables (tools/manual/nvn-drivers.txt).