Skip to content

Commit

Permalink
nvapi: Move resource-factory
Browse files Browse the repository at this point in the history
  • Loading branch information
jp7677 committed Nov 9, 2024
1 parent b1a0a6a commit e2a2ac9
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ nvapi_src = files([
'util/util_string.cpp',
'util/util_env.cpp',
'util/util_log.cpp',
'nvapi/resource_factory.cpp',
'nvapi/lfx.cpp',
'nvapi/nvapi_d3d_instance.cpp',
'nvapi/nvapi_d3d_low_latency_device.cpp',
Expand All @@ -12,7 +13,6 @@ nvapi_src = files([
'nvapi/nvapi_output.cpp',
'nvapi/vulkan.cpp',
'nvapi/nvml.cpp',
'resource_factory.cpp',
'nvapi_globals.cpp',
'nvapi.cpp',
'nvapi_d3d.cpp',
Expand Down
2 changes: 1 addition & 1 deletion src/nvapi/nvapi_adapter_registry.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include "../nvapi_private.h"
#include "../resource_factory.h"
#include "resource_factory.h"
#include "nvapi_adapter.h"
#include "nvapi_output.h"
#include "vulkan.h"
Expand Down
2 changes: 1 addition & 1 deletion src/nvapi/nvapi_d3d_instance.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include "../nvapi_private.h"
#include "../resource_factory.h"
#include "resource_factory.h"

namespace dxvk {
class NvapiD3dInstance {
Expand Down
6 changes: 3 additions & 3 deletions src/resource_factory.cpp → src/nvapi/resource_factory.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "resource_factory.h"
#include "interfaces/dxvk_interfaces.h"
#include "util/util_string.h"
#include "util/util_log.h"
#include "../interfaces/dxvk_interfaces.h"
#include "../util/util_string.h"
#include "../util/util_log.h"

namespace dxvk {
ResourceFactory::ResourceFactory() = default;
Expand Down
10 changes: 5 additions & 5 deletions src/resource_factory.h → src/nvapi/resource_factory.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#pragma once

#include "nvapi_private.h"
#include "util/com_pointer.h"
#include "nvapi/vulkan.h"
#include "nvapi/nvml.h"
#include "nvapi/lfx.h"
#include "../nvapi_private.h"
#include "../util/com_pointer.h"
#include "vulkan.h"
#include "nvml.h"
#include "lfx.h"

namespace dxvk {
class ResourceFactory {
Expand Down
2 changes: 1 addition & 1 deletion src/nvapi_globals.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include "nvapi_private.h"
#include "resource_factory.h"
#include "nvapi/resource_factory.h"
#include "nvapi/nvapi_adapter_registry.h"
#include "nvapi/nvapi_d3d_instance.h"

Expand Down
2 changes: 1 addition & 1 deletion tests/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ nvapi_src = files([
'../src/util/util_string.cpp',
'../src/util/util_env.cpp',
'../src/util/util_log.cpp',
'../src/nvapi/resource_factory.cpp',
'../src/nvapi/vulkan.cpp',
'../src/nvapi/nvml.cpp',
'../src/nvapi/lfx.cpp',
Expand All @@ -10,7 +11,6 @@ nvapi_src = files([
'../src/nvapi/nvapi_output.cpp',
'../src/nvapi/nvapi_adapter.cpp',
'../src/nvapi/nvapi_adapter_registry.cpp',
'../src/resource_factory.cpp',
'../src/nvapi/nvapi_d3d11_device.cpp',
'../src/nvapi/nvapi_d3d12_device.cpp',
'../src/nvapi_globals.cpp',
Expand Down
2 changes: 1 addition & 1 deletion tests/mock_factory.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include "nvapi_tests_private.h"
#include "../src/resource_factory.h"
#include "../src/nvapi/resource_factory.h"

using namespace trompeloeil;

Expand Down

0 comments on commit e2a2ac9

Please sign in to comment.