Switch 2 only in Switch 2's NVN (NVN2) Switch 1 only in the Switch's, which NVN2 dropped; no mark: both
| Function | Returns | Description |
|---|---|---|
| nvnDeviceApplyDeferredFinalizes Switch 1 | void | Frees the objects finalized with NVN_DEVICE_FLAG_DEFERRED_FINALIZE once they are age submissions old: no effect, ScarletNX frees nothing at a finalize |
| nvnDeviceBuilderGetFlags | i32 | Get the flags of a device builder |
| nvnDeviceBuilderSetDefaults | void | Set a device builder to its defaults: no flags |
| nvnDeviceBuilderSetFlags | void | Set the flags of a device builder, which the device initialized from it takes |
| nvnDeviceCalculateAccelerationStructureMemoryRequirements Switch 2 | void | Get the memory an acceleration structure needs: 0x10000 for each size (guess: made up, no ray tracing yet) |
| nvnDeviceCommandBufferSetCommandMemorySize Switch 2 | void | Set the command memory size of a device command buffer (Switch 2, API 231): kept, no effect |
| nvnDeviceCommandBufferSetComputeMemorySize Switch 2 | void | Set the compute memory size of a device command buffer (Switch 2, API 231): kept, no effect |
| nvnDeviceCommandBufferSetDefaults Switch 2 | void | Set a device command buffer to its defaults, the device kept (Switch 2, API 231) |
| nvnDeviceCommandBufferSetDevice Switch 2 | void | Set the device of a device command buffer (Switch 2, API 231) |
| nvnDeviceCommandBufferSetStorage Switch 2 | void | Set the memory of a device command buffer (Switch 2, API 231): kept, ScarletNX runs no device command buffer |
| nvnDeviceFinalize | void | End a device: its object is not valid any more, and nothing is freed |
| nvnDeviceFinalizeCommandHandle | void | Give up the handle of a recording: no effect, its commands stay in the game's memory |
| nvnDeviceGenerateDebugDomainId | i32 | Make the ID of a debug domain |
| nvnDeviceGetCurrentTimestampInNanoseconds | u64 | Get the time of the GPU, in nanoseconds |
| nvnDeviceGetDepthMode | NVNdepthMode | Get the depth mode of a device |
| nvnDeviceGetImageHandle | u64 | Get the handle of an image: its ID |
| nvnDeviceGetInteger | void | Get an integer of the device, such as its API version, a limit or an alignment |
| nvnDeviceGetSeparateSamplerHandle | u64 | Get the handle of a sampler for a separate binding: its ID << 20 |
| nvnDeviceGetSeparateTextureHandle | u64 | Get the handle of a texture for a separate binding: its ID with bit 32 set |
| nvnDeviceGetTexelFetchHandle | u64 | Get the handle of a texture for texel fetches: its ID with bit 32 set, as nvnDeviceGetSeparateTextureHandle |
| nvnDeviceGetTextureHandle | u64 | Get a combined handle of a texture and a sampler |
| nvnDeviceGetTimestampInNanoseconds | u64 | Get the timestamp of a counter, in nanoseconds. A report the GPU has not written yet is waited for |
| nvnDeviceGetUniformBufferHandle Switch 2 | u64 | Get the handle of a uniform buffer (Switch 2, API 231) |
| nvnDeviceGetWindowOriginMode | NVNwindowOriginMode | Get the window origin mode of a device |
| nvnDeviceInitialize | bool | Make a device from a builder: its flags, and the defaults lower-left window origin and near = -w depth |
| nvnDeviceInstallDebugCallback | void | Set the function a debug layer calls with its messages: no effect, ScarletNX never calls it |
| nvnDeviceIsExternalDebuggerAttached | bool | Tell whether an external debugger is attached |
| nvnDeviceMessageBufferEndMessages Switch 2 | void | End the messages of a device message buffer: its begin and end are set to 0 (Switch 2, API 231) |
| nvnDeviceMessageBufferSetDefaults Switch 2 | void | Set a device message buffer to its defaults, the device kept (Switch 2, API 231) |
| nvnDeviceMessageBufferSetDevice Switch 2 | void | Set the device of a device message buffer (Switch 2, API 231) |
| nvnDeviceMessageBufferSetStorage Switch 2 | void | Set the memory of a device message buffer (Switch 2, API 231): kept, no effect |
| nvnDeviceRegisterFastClearColor | bool | Register a color as a fast clear value, as floats (a hint for compression): no effect |
| nvnDeviceRegisterFastClearColori | bool | Register a color as a fast clear value, as signed integers (a hint for compression): no effect |
| nvnDeviceRegisterFastClearColorui | bool | Register a color as a fast clear value, as unsigned integers (a hint for compression): no effect |
| nvnDeviceRegisterFastClearDepth | bool | Register a depth as a fast clear value (a hint for compression): no effect |
| nvnDeviceRegisterFastClearStencil Switch 2 | bool | Register a stencil as a fast clear value (a hint for compression): no effect |
| nvnDeviceSetAutomaticCheckpointsByDebugGroup | bool | Turn automatic checkpoints by debug group on or off (guess: a checkpoint at each debug group): no effect |
| nvnDeviceSetAutomaticCheckpointsEnable | bool | Turn automatic checkpoints on or off: no effect, ScarletNX records no checkpoints |
| nvnDeviceSetAutomaticCheckpointsMask | bool | Choose what the automatic checkpoints record: no effect |
| nvnDeviceSetAutomaticCheckpointsSamplingInterval | bool | Set how often the automatic checkpoints are taken: no effect |
| nvnDeviceSetCheckpointCallStacksEnable | bool | Turn the call stacks of the checkpoints on or off: no effect |
| nvnDeviceSetCheckpointMaxCallStacksDepth | bool | Set the deepest call stack a checkpoint keeps: no effect |
| nvnDeviceSetDepthMode | void | Set the depth mode of a device, for the draws after it |
| nvnDeviceSetIntermediateShaderCache | void | Turn the intermediate shader cache of the offline shader compiler on or off: no effect |
| nvnDeviceSetWindowOriginMode | void | Set the window origin mode of a device: where row 0 of the window is |
| nvnDeviceWalkDebugDatabase | void | Walk the objects of a kind the debug layer knows: no effect, ScarletNX has no debug database |
| nvnSetExternalDebuggerEnabledNVX | void | Enables the external debugger: no effect, ScarletNX has none |
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).