Skip to content

Commit

Permalink
Keep formatting from header files.
Browse files Browse the repository at this point in the history
  • Loading branch information
jp7677 committed May 28, 2021
1 parent 980de32 commit 8b3987f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/nvapi_d3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
extern "C" {
using namespace dxvk;

NvAPI_Status __cdecl NvAPI_D3D_GetObjectHandleForResource(IUnknown* pDevice, IUnknown* pResource, NVDX_ObjectHandle* pHandle) {
NvAPI_Status __cdecl NvAPI_D3D_GetObjectHandleForResource(IUnknown *pDevice, IUnknown *pResource, NVDX_ObjectHandle *pHandle) {
static bool alreadyLogged = false;
return NoImplementation("NvAPI_D3D_GetObjectHandleForResource", alreadyLogged);
}
Expand All @@ -14,7 +14,7 @@ extern "C" {
return NoImplementation("NvAPI_D3D_SetResourceHint", alreadyLogged);
}

NvAPI_Status __cdecl NvAPI_D3D_GetCurrentSLIState(IUnknown* pDevice, NV_GET_CURRENT_SLI_STATE* pSliState) {
NvAPI_Status __cdecl NvAPI_D3D_GetCurrentSLIState(IUnknown *pDevice, NV_GET_CURRENT_SLI_STATE *pSliState) {
constexpr auto n = "NvAPI_D3D_GetCurrentSLIState";

if (pDevice == nullptr || pSliState == nullptr)
Expand Down
4 changes: 2 additions & 2 deletions src/nvapi_d3d11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
extern "C" {
using namespace dxvk;

NvAPI_Status __cdecl NvAPI_D3D11_SetDepthBoundsTest(IUnknown* pDeviceOrContext, NvU32 bEnable, float fMinDepth, float fMaxDepth) {
NvAPI_Status __cdecl NvAPI_D3D11_SetDepthBoundsTest(IUnknown *pDeviceOrContext, NvU32 bEnable, float fMinDepth, float fMaxDepth) {
constexpr auto n = "NvAPI_D3D11_SetDepthBoundsTest";
static bool alreadyLogged = false;

Expand Down Expand Up @@ -72,7 +72,7 @@ extern "C" {
return Ok(n, alreadyLogged);
}

NvAPI_Status __cdecl NvAPI_D3D11_IsNvShaderExtnOpCodeSupported(IUnknown* pDeviceOrContext, NvU32 code, bool* supported) {
NvAPI_Status __cdecl NvAPI_D3D11_IsNvShaderExtnOpCodeSupported(IUnknown *pDeviceOrContext, NvU32 code, bool *supported) {
constexpr auto n = "NvAPI_D3D11_IsNvShaderExtnOpCodeSupported";

if (pDeviceOrContext == nullptr || supported == nullptr)
Expand Down
2 changes: 1 addition & 1 deletion src/nvapi_d3d12.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
extern "C" {
using namespace dxvk;

NvAPI_Status __cdecl NvAPI_D3D12_IsNvShaderExtnOpCodeSupported(ID3D12Device* pDevice, NvU32 opCode, bool* pSupported) {
NvAPI_Status __cdecl NvAPI_D3D12_IsNvShaderExtnOpCodeSupported(ID3D12Device *pDevice, NvU32 opCode, bool *pSupported) {
constexpr auto n = "NvAPI_D3D12_IsNvShaderExtnOpCodeSupported";

if (pDevice == nullptr || pSupported == nullptr)
Expand Down
4 changes: 2 additions & 2 deletions src/nvapi_disp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ extern "C" {
return Ok(str::format(n, " ", displayId));
}

NvAPI_Status __cdecl NvAPI_DISP_GetDisplayIdByDisplayName(const char *displayName, NvU32* displayId) {
NvAPI_Status __cdecl NvAPI_DISP_GetDisplayIdByDisplayName(const char *displayName, NvU32 *displayId) {
constexpr auto n = "NvAPI_DISP_GetDisplayIdByDisplayName";

if (nvapiAdapterRegistry == nullptr)
Expand All @@ -51,7 +51,7 @@ extern "C" {
return Ok(str::format(n, " ", displayName));
}

NvAPI_Status __cdecl NvAPI_DISP_GetGDIPrimaryDisplayId(NvU32* displayId) {
NvAPI_Status __cdecl NvAPI_DISP_GetGDIPrimaryDisplayId(NvU32 *displayId) {
constexpr auto n = "NvAPI_DISP_GetGDIPrimaryDisplayId";

if (displayId == nullptr)
Expand Down
2 changes: 1 addition & 1 deletion src/nvapi_gpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ extern "C" {
return Ok(n);
}

NvAPI_Status __cdecl NvAPI_GPU_GetPhysicalFrameBufferSize(NvPhysicalGpuHandle hPhysicalGpu,NvU32 *pSize) {
NvAPI_Status __cdecl NvAPI_GPU_GetPhysicalFrameBufferSize(NvPhysicalGpuHandle hPhysicalGpu, NvU32 *pSize) {
constexpr auto n = "NvAPI_GPU_GetPhysicalFrameBufferSize";

if (nvapiAdapterRegistry == nullptr)
Expand Down

0 comments on commit 8b3987f

Please sign in to comment.