Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ endif()

# Only <PROJECT-NAME>_SOURCE_DIR is created by the project() command above.
set(GPGMM_ROOT_DIR "${GPGMM_SOURCE_DIR}")
set(GPGMM_INCLUDE_DIR "${GPGMM_ROOT_DIR}/src/include")
set(GPGMM_INCLUDE_DIR "${GPGMM_ROOT_DIR}/include")

# ###############################################################################
# Configuration options
Expand Down
2 changes: 1 addition & 1 deletion Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ WARN_LOGFILE =
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
# Note: If this tag is empty the current directory is searched.

INPUT = src
INPUT = include

# This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ cmake --build . --config Debug

1. Copy the DLL into the `$(OutputPath)` folder and configure the VS build:
2. Highlight project in the **Solution Explorer**, and then select **Project > Properties**.
3. Under **Configuration Properties > C/C++ > General**, add `gpgmm\src\include` to **Additional Include Directories**.
3. Under **Configuration Properties > C/C++ > General**, add `gpgmm\include` to **Additional Include Directories**.
4. Under **Configuration Properties > Linker > Input**, add ``gpgmm.dll.lib`` to **Additional Dependencies**.
5. Under **Configuration Properties > Linker > General**, add the folder path to `out\Release` to **Additional Library Directories**.

Expand Down
2 changes: 1 addition & 1 deletion docs/DESIGN.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ TBD

## API Endpoints

Public (exported) functions and symbols are in `src\include` directory, where `#include <gpgmm_*.h>` defines the GPGMM API for the particular backend API (ex. `gpgmm_d3d12.h`).
Public (exported) functions and symbols are in `gpgmm/include` directory, where `#include <gpgmm_*.h>` defines the GPGMM API for the particular backend API (ex. `gpgmm_d3d12.h`).

Auto-generated API documentation:
https://intel.github.io/GPGMM/
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/gpgmm/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ source_set("gpgmm_headers") {
# public_deps = [ "${gpgmm_root_dir}/src/gpgmm:gpgmmcpp_headers" ]
all_dependent_configs =
[ "${gpgmm_root_dir}/src/gpgmm/common:gpgmm_public_config" ]
sources = [ "${gpgmm_root_dir}/src/include/gpgmm_export.h" ]
sources = [ "${gpgmm_root_dir}/include/gpgmm_export.h" ]
}

# The meat of the compilation for gpgmm so that we can cheaply have
Expand Down
2 changes: 1 addition & 1 deletion src/gpgmm/common/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ if (build_with_chromium) {
###############################################################################

config("gpgmm_public_config") {
include_dirs = [ "${gpgmm_root_dir}/src/include" ]
include_dirs = [ "${gpgmm_root_dir}/include" ]
}

config("gpgmm_common_config") {
Expand Down
3 changes: 2 additions & 1 deletion src/gpgmm/common/Memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@

#include "gpgmm/common/Object.h"
#include "gpgmm/utils/RefCount.h"
#include "include/gpgmm.h"

#include <gpgmm.h>

namespace gpgmm {

Expand Down
3 changes: 2 additions & 1 deletion src/gpgmm/common/MemoryAllocation.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
#define GPGMM_COMMON_MEMORYALLOCATION_H_

#include "gpgmm/utils/Limits.h"
#include "include/gpgmm.h"

#include <gpgmm.h>

namespace gpgmm {

Expand Down
3 changes: 2 additions & 1 deletion src/gpgmm/common/MemoryAllocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
#include "gpgmm/utils/Limits.h"
#include "gpgmm/utils/LinkedList.h"
#include "gpgmm/utils/Log.h"
#include "include/gpgmm.h"

#include <gpgmm.h>

#include <memory>
#include <mutex>
Expand Down
3 changes: 2 additions & 1 deletion src/gpgmm/common/MemoryPool.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@

#include "gpgmm/common/MemoryAllocation.h"
#include "gpgmm/utils/Limits.h"
#include "include/gpgmm.h"

#include <gpgmm.h>

#include <memory>

Expand Down
4 changes: 1 addition & 3 deletions src/gpgmm/d3d12/HeapD3D12.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@
#include "gpgmm/d3d12/IUnknownImplD3D12.h"
#include "gpgmm/utils/Limits.h"
#include "gpgmm/utils/LinkedList.h"
#include "include/gpgmm_d3d12.h"

#include <functional> // for std::function
#include <memory>
#include <gpgmm_d3d12.h>

namespace gpgmm::d3d12 {

Expand Down
3 changes: 2 additions & 1 deletion src/gpgmm/d3d12/JSONSerializerD3D12.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@

#include "gpgmm/common/JSONSerializer.h"
#include "gpgmm/d3d12/d3d12_platform.h"
#include "include/gpgmm_d3d12.h"

#include <gpgmm_d3d12.h>

namespace gpgmm::d3d12 {

Expand Down
3 changes: 2 additions & 1 deletion src/gpgmm/d3d12/ResidencyListD3D12.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@

#include "gpgmm/d3d12/IUnknownImplD3D12.h"
#include "gpgmm/d3d12/d3d12_platform.h"
#include "include/gpgmm_d3d12.h"

#include <gpgmm_d3d12.h>

#include <vector>

Expand Down
3 changes: 2 additions & 1 deletion src/gpgmm/d3d12/ResidencyManagerD3D12.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
#include "gpgmm/d3d12/IUnknownImplD3D12.h"
#include "gpgmm/utils/EnumFlags.h"
#include "gpgmm/utils/LinkedList.h"
#include "include/gpgmm_d3d12.h"

#include <gpgmm_d3d12.h>

#include <memory>
#include <mutex>
Expand Down
3 changes: 2 additions & 1 deletion src/gpgmm/d3d12/ResourceAllocationD3D12.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
#include "gpgmm/d3d12/DebugObjectD3D12.h"
#include "gpgmm/d3d12/IUnknownImplD3D12.h"
#include "gpgmm/d3d12/d3d12_platform.h"
#include "include/gpgmm_d3d12.h"

#include <gpgmm_d3d12.h>

namespace gpgmm::d3d12 {

Expand Down
3 changes: 2 additions & 1 deletion src/gpgmm/d3d12/ResourceAllocatorD3D12.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
#include "gpgmm/common/MemoryAllocator.h"
#include "gpgmm/d3d12/IUnknownImplD3D12.h"
#include "gpgmm/utils/EnumFlags.h"
#include "include/gpgmm_d3d12.h"

#include <gpgmm_d3d12.h>

#include <array>
#include <memory>
Expand Down
3 changes: 2 additions & 1 deletion src/gpgmm/vk/ResourceAllocatorVk.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@

#include "gpgmm/common/MemoryAllocator.h"
#include "gpgmm/vk/FunctionsVk.h"
#include "include/gpgmm_vk.h"

#include <gpgmm_vk.h>

#include <vector>

Expand Down
4 changes: 2 additions & 2 deletions src/samples/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ source_set("gpgmm_mvi") {
"${gpgmm_root_dir}/src/mvi/gpgmm_mvi.cpp",
"${gpgmm_root_dir}/src/mvi/gpgmm_mvi.h",
]
include_dirs = [ "${gpgmm_root_dir}/src/include" ]
include_dirs = [ "${gpgmm_root_dir}/include" ]
}

executable("D3D12SampleMVI") {
deps = [ ":gpgmm_mvi" ]
defines = [ "GPGMM_D3D12_HEADERS_ALREADY_INCLUDED" ]
sources = [ "D3D12Sample.cpp" ]
include_dirs = [ "${gpgmm_root_dir}/src/include" ]
include_dirs = [ "${gpgmm_root_dir}/include" ]
libs = [
"d3d12.lib",
"dxgi.lib",
Expand Down
2 changes: 1 addition & 1 deletion src/samples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if (GPGMM_ENABLE_D3D12)

# Target explaination:
# gpgmm_common_config target fixes duplicate min/max symbol error (on Windows).
# gpgmm_public_config target adds include paths to src/ and src/include.
# gpgmm_public_config target adds include paths.
# gpgmm is the main library target.
target_link_libraries(D3D12Sample PRIVATE
gpgmm_common_config
Expand Down