Skip to content

Commit

Permalink
vkreflex: Add initial implementation of Vulkan Reflex support
Browse files Browse the repository at this point in the history
  • Loading branch information
Saancreed committed Dec 18, 2024
1 parent 0197f75 commit 2252eab
Show file tree
Hide file tree
Showing 7 changed files with 467 additions and 0 deletions.
1 change: 1 addition & 0 deletions package-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ function prepare {
src/nvapi_d3d.cpp \
src/nvapi_d3d11.cpp \
src/nvapi_d3d12.cpp \
src/nvapi_vkreflex.cpp \
src/nvapi_interface.cpp \
external/nvapi/nvapi_interface.h
}
Expand Down
1 change: 1 addition & 0 deletions src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ nvapi_src = files([
'nvapi_gpu.cpp',
'nvapi_mosaic.cpp',
'nvapi_sys.cpp',
'nvapi_vkreflex.cpp',
'nvapi_interface.cpp',
])

Expand Down
8 changes: 8 additions & 0 deletions src/nvapi_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,14 @@ extern "C" {
INSERT_AND_RETURN_WHEN_EQUALS(NvAPI_D3D_Sleep)
INSERT_AND_RETURN_WHEN_EQUALS(NvAPI_D3D_GetLatency)
INSERT_AND_RETURN_WHEN_EQUALS(NvAPI_D3D_SetLatencyMarker)
INSERT_AND_RETURN_WHEN_EQUALS(NvAPI_Vulkan_InitLowLatencyDevice)
INSERT_AND_RETURN_WHEN_EQUALS(NvAPI_Vulkan_DestroyLowLatencyDevice)
INSERT_AND_RETURN_WHEN_EQUALS(NvAPI_Vulkan_GetSleepStatus)
INSERT_AND_RETURN_WHEN_EQUALS(NvAPI_Vulkan_SetSleepMode)
INSERT_AND_RETURN_WHEN_EQUALS(NvAPI_Vulkan_Sleep)
INSERT_AND_RETURN_WHEN_EQUALS(NvAPI_Vulkan_GetLatency)
INSERT_AND_RETURN_WHEN_EQUALS(NvAPI_Vulkan_SetLatencyMarker)
INSERT_AND_RETURN_WHEN_EQUALS(NvAPI_Vulkan_NotifyOutOfBandVkQueue)
INSERT_AND_RETURN_WHEN_EQUALS(NvAPI_GPU_GetConnectedDisplayIds)
INSERT_AND_RETURN_WHEN_EQUALS(NvAPI_GPU_GetCurrentPCIEDownstreamWidth)
INSERT_AND_RETURN_WHEN_EQUALS(NvAPI_GPU_GetIRQ)
Expand Down
1 change: 1 addition & 0 deletions src/nvapi_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#endif
#include <cstddef>
#include <cstdint>
#include <cstring>
#include <ctime>
#include <fstream>
#include <iomanip>
Expand Down
Loading

0 comments on commit 2252eab

Please sign in to comment.