Device

Switch 2 only in Switch 2's NVN (NVN2) Switch 1 only in the Switch's, which NVN2 dropped; no mark: both

FunctionReturnsDescription
nvnDeviceApplyDeferredFinalizes Switch 1voidFrees the objects finalized with NVN_DEVICE_FLAG_DEFERRED_FINALIZE once they are age submissions old: no effect, ScarletNX frees nothing at a finalize
nvnDeviceBuilderGetFlagsi32Get the flags of a device builder
nvnDeviceBuilderSetDefaultsvoidSet a device builder to its defaults: no flags
nvnDeviceBuilderSetFlagsvoidSet the flags of a device builder, which the device initialized from it takes
nvnDeviceCalculateAccelerationStructureMemoryRequirements Switch 2voidGet the memory an acceleration structure needs: 0x10000 for each size (guess: made up, no ray tracing yet)
nvnDeviceCommandBufferSetCommandMemorySize Switch 2voidSet the command memory size of a device command buffer (Switch 2, API 231): kept, no effect
nvnDeviceCommandBufferSetComputeMemorySize Switch 2voidSet the compute memory size of a device command buffer (Switch 2, API 231): kept, no effect
nvnDeviceCommandBufferSetDefaults Switch 2voidSet a device command buffer to its defaults, the device kept (Switch 2, API 231)
nvnDeviceCommandBufferSetDevice Switch 2voidSet the device of a device command buffer (Switch 2, API 231)
nvnDeviceCommandBufferSetStorage Switch 2voidSet the memory of a device command buffer (Switch 2, API 231): kept, ScarletNX runs no device command buffer
nvnDeviceFinalizevoidEnd a device: its object is not valid any more, and nothing is freed
nvnDeviceFinalizeCommandHandlevoidGive up the handle of a recording: no effect, its commands stay in the game's memory
nvnDeviceGenerateDebugDomainIdi32Make the ID of a debug domain
nvnDeviceGetCurrentTimestampInNanosecondsu64Get the time of the GPU, in nanoseconds
nvnDeviceGetDepthModeNVNdepthModeGet the depth mode of a device
nvnDeviceGetImageHandleu64Get the handle of an image: its ID
nvnDeviceGetIntegervoidGet an integer of the device, such as its API version, a limit or an alignment
nvnDeviceGetSeparateSamplerHandleu64Get the handle of a sampler for a separate binding: its ID << 20
nvnDeviceGetSeparateTextureHandleu64Get the handle of a texture for a separate binding: its ID with bit 32 set
nvnDeviceGetTexelFetchHandleu64Get the handle of a texture for texel fetches: its ID with bit 32 set, as nvnDeviceGetSeparateTextureHandle
nvnDeviceGetTextureHandleu64Get a combined handle of a texture and a sampler
nvnDeviceGetTimestampInNanosecondsu64Get the timestamp of a counter, in nanoseconds. A report the GPU has not written yet is waited for
nvnDeviceGetUniformBufferHandle Switch 2u64Get the handle of a uniform buffer (Switch 2, API 231)
nvnDeviceGetWindowOriginModeNVNwindowOriginModeGet the window origin mode of a device
nvnDeviceInitializeboolMake a device from a builder: its flags, and the defaults lower-left window origin and near = -w depth
nvnDeviceInstallDebugCallbackvoidSet the function a debug layer calls with its messages: no effect, ScarletNX never calls it
nvnDeviceIsExternalDebuggerAttachedboolTell whether an external debugger is attached
nvnDeviceMessageBufferEndMessages Switch 2voidEnd the messages of a device message buffer: its begin and end are set to 0 (Switch 2, API 231)
nvnDeviceMessageBufferSetDefaults Switch 2voidSet a device message buffer to its defaults, the device kept (Switch 2, API 231)
nvnDeviceMessageBufferSetDevice Switch 2voidSet the device of a device message buffer (Switch 2, API 231)
nvnDeviceMessageBufferSetStorage Switch 2voidSet the memory of a device message buffer (Switch 2, API 231): kept, no effect
nvnDeviceRegisterFastClearColorboolRegister a color as a fast clear value, as floats (a hint for compression): no effect
nvnDeviceRegisterFastClearColoriboolRegister a color as a fast clear value, as signed integers (a hint for compression): no effect
nvnDeviceRegisterFastClearColoruiboolRegister a color as a fast clear value, as unsigned integers (a hint for compression): no effect
nvnDeviceRegisterFastClearDepthboolRegister a depth as a fast clear value (a hint for compression): no effect
nvnDeviceRegisterFastClearStencil Switch 2boolRegister a stencil as a fast clear value (a hint for compression): no effect
nvnDeviceSetAutomaticCheckpointsByDebugGroupboolTurn automatic checkpoints by debug group on or off (guess: a checkpoint at each debug group): no effect
nvnDeviceSetAutomaticCheckpointsEnableboolTurn automatic checkpoints on or off: no effect, ScarletNX records no checkpoints
nvnDeviceSetAutomaticCheckpointsMaskboolChoose what the automatic checkpoints record: no effect
nvnDeviceSetAutomaticCheckpointsSamplingIntervalboolSet how often the automatic checkpoints are taken: no effect
nvnDeviceSetCheckpointCallStacksEnableboolTurn the call stacks of the checkpoints on or off: no effect
nvnDeviceSetCheckpointMaxCallStacksDepthboolSet the deepest call stack a checkpoint keeps: no effect
nvnDeviceSetDepthModevoidSet the depth mode of a device, for the draws after it
nvnDeviceSetIntermediateShaderCachevoidTurn the intermediate shader cache of the offline shader compiler on or off: no effect
nvnDeviceSetWindowOriginModevoidSet the window origin mode of a device: where row 0 of the window is
nvnDeviceWalkDebugDatabasevoidWalk the objects of a kind the debug layer knows: no effect, ScarletNX has no debug database
nvnSetExternalDebuggerEnabledNVXvoidEnables 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).