nvnDeviceGetTextureHandle

Device

u64 nvnDeviceGetTextureHandle(const NVNdevice* d, i32 texture, i32 sampler)

Get a combined handle of a texture and a sampler

Parameters

ParameterTypeDescription
dconst NVNdevice*Pointer to the device, not read
texturei32Texture ID: the bits past its 20 low ones overlap the sampler's
sampleri32Sampler ID

Returns

texture | sampler << 20

DriversSwitch and Switch 2
Declarednvn.hook
Handlernvn_DeviceGetTextureHandle (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).