-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #587 from novelrt/feature/rendering-abstraction-v2
Modernise Graphics file structure.
- Loading branch information
Showing
109 changed files
with
334 additions
and
199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
add_library(NovelRT-Graphics STATIC | ||
GraphicsMemoryBlock.cpp | ||
GraphicsMemoryBlockCollection.cpp | ||
GraphicsPipeline.cpp | ||
GraphicsPipelineInput.cpp | ||
GraphicsPipelineInputElement.cpp | ||
GraphicsPipelineResource.cpp | ||
GraphicsPipelineSignature.cpp | ||
GraphicsResourceManager.cpp | ||
ShaderProgram.cpp | ||
Vulkan/VulkanGraphicsAdapter.cpp | ||
Vulkan/VulkanGraphicsAdapterSelector.cpp | ||
Vulkan/VulkanGraphicsBuffer.cpp | ||
Vulkan/VulkanGraphicsContext.cpp | ||
Vulkan/VulkanGraphicsDevice.cpp | ||
Vulkan/VulkanGraphicsFence.cpp | ||
Vulkan/VulkanGraphicsMemoryAllocator.cpp | ||
Vulkan/VulkanGraphicsMemoryBlock.cpp | ||
Vulkan/VulkanGraphicsMemoryBlockCollection.cpp | ||
Vulkan/VulkanGraphicsPipeline.cpp | ||
Vulkan/VulkanGraphicsPipelineSignature.cpp | ||
Vulkan/VulkanGraphicsPluginProvider.cpp | ||
Vulkan/VulkanGraphicsProvider.cpp | ||
Vulkan/VulkanGraphicsSurfaceContext.cpp | ||
Vulkan/VulkanGraphicsTexture.cpp | ||
Vulkan/VulkanShaderProgram.cpp | ||
) | ||
|
||
target_sources(NovelRT-Graphics | ||
PUBLIC | ||
FILE_SET public_headers | ||
TYPE HEADERS | ||
BASE_DIRS include | ||
FILES | ||
include/NovelRT/Graphics/Graphics.hpp | ||
include/NovelRT/Graphics/GraphicsAdapter.hpp | ||
include/NovelRT/Graphics/GraphicsBuffer.hpp | ||
include/NovelRT/Graphics/GraphicsBufferKind.hpp | ||
include/NovelRT/Graphics/GraphicsContext.hpp | ||
include/NovelRT/Graphics/GraphicsDevice.hpp | ||
include/NovelRT/Graphics/GraphicsDeviceObject.hpp | ||
include/NovelRT/Graphics/GraphicsFence.hpp | ||
include/NovelRT/Graphics/GraphicsMemoryAllocator.hpp | ||
include/NovelRT/Graphics/GraphicsMemoryAllocatorSettings.hpp | ||
include/NovelRT/Graphics/GraphicsMemoryBlock.hpp | ||
include/NovelRT/Graphics/GraphicsMemoryBlockCollection.hpp | ||
include/NovelRT/Graphics/GraphicsMemoryBudget.hpp | ||
include/NovelRT/Graphics/GraphicsMemoryRegion.hpp | ||
include/NovelRT/Graphics/GraphicsMemoryRegionAllocationFlags.hpp | ||
include/NovelRT/Graphics/GraphicsPipeline.hpp | ||
include/NovelRT/Graphics/GraphicsPipelineBlendFactor.hpp | ||
include/NovelRT/Graphics/GraphicsPipelineInput.hpp | ||
include/NovelRT/Graphics/GraphicsPipelineInputElement.hpp | ||
include/NovelRT/Graphics/GraphicsPipelineInputElementKind.hpp | ||
include/NovelRT/Graphics/GraphicsPipelineResource.hpp | ||
include/NovelRT/Graphics/GraphicsPipelineResourceKind.hpp | ||
include/NovelRT/Graphics/GraphicsPipelineSignature.hpp | ||
include/NovelRT/Graphics/GraphicsPrimitive.hpp | ||
include/NovelRT/Graphics/GraphicsProvider.hpp | ||
include/NovelRT/Graphics/GraphicsResource.hpp | ||
include/NovelRT/Graphics/GraphicsResourceAccess.hpp | ||
include/NovelRT/Graphics/GraphicsResourceManager.hpp | ||
include/NovelRT/Graphics/GraphicsSurfaceContext.hpp | ||
include/NovelRT/Graphics/GraphicsSurfaceKind.hpp | ||
include/NovelRT/Graphics/GraphicsTexture.hpp | ||
include/NovelRT/Graphics/GraphicsTextureAddressMode.hpp | ||
include/NovelRT/Graphics/GraphicsTextureKind.hpp | ||
include/NovelRT/Graphics/IGraphicsAdapterSelector.hpp | ||
include/NovelRT/Graphics/IGraphicsMemoryRegionCollection.hpp | ||
include/NovelRT/Graphics/IGraphicsSurface.hpp | ||
include/NovelRT/Graphics/RGBAColour.hpp | ||
include/NovelRT/Graphics/ShaderProgram.hpp | ||
include/NovelRT/Graphics/ShaderProgramKind.hpp | ||
include/NovelRT/Graphics/ShaderProgramVisibility.hpp | ||
include/NovelRT/Graphics/TexelFormat.hpp | ||
include/NovelRT/Graphics/D3D12/Graphics.D3D12.hpp | ||
include/NovelRT/Graphics/D3D12/Utilities/Graphics.D3D12.Utilities.hpp | ||
include/NovelRT/Graphics/D3D12/Utilities/PipelineBlendFactor.hpp | ||
include/NovelRT/Graphics/Metal/Graphics.Metal.hpp | ||
include/NovelRT/Graphics/Metal/Utilities/Graphics.Metal.Utilities.hpp | ||
include/NovelRT/Graphics/Metal/Utilities/PipelineBlendFactor.hpp | ||
include/NovelRT/Graphics/Vulkan/Graphics.Vulkan.hpp | ||
include/NovelRT/Graphics/Vulkan/QueueFamilyIndices.hpp | ||
include/NovelRT/Graphics/Vulkan/SwapChainSupportDetails.hpp | ||
include/NovelRT/Graphics/Vulkan/VulkanGraphicsAdapter.hpp | ||
include/NovelRT/Graphics/Vulkan/VulkanGraphicsAdapterSelector.hpp | ||
include/NovelRT/Graphics/Vulkan/VulkanGraphicsBuffer.hpp | ||
include/NovelRT/Graphics/Vulkan/VulkanGraphicsContext.hpp | ||
include/NovelRT/Graphics/Vulkan/VulkanGraphicsDevice.hpp | ||
include/NovelRT/Graphics/Vulkan/VulkanGraphicsFence.hpp | ||
include/NovelRT/Graphics/Vulkan/VulkanGraphicsMemoryAllocator.hpp | ||
include/NovelRT/Graphics/Vulkan/VulkanGraphicsMemoryBlock.hpp | ||
include/NovelRT/Graphics/Vulkan/VulkanGraphicsMemoryBlockCollection.hpp | ||
include/NovelRT/Graphics/Vulkan/VulkanGraphicsPipeline.hpp | ||
include/NovelRT/Graphics/Vulkan/VulkanGraphicsPipelineSignature.hpp | ||
include/NovelRT/Graphics/Vulkan/VulkanGraphicsPluginProvider.hpp | ||
include/NovelRT/Graphics/Vulkan/VulkanGraphicsPrimitive.hpp | ||
include/NovelRT/Graphics/Vulkan/VulkanGraphicsProvider.hpp | ||
include/NovelRT/Graphics/Vulkan/VulkanGraphicsSurfaceContext.hpp | ||
include/NovelRT/Graphics/Vulkan/VulkanGraphicsTexture.hpp | ||
include/NovelRT/Graphics/Vulkan/VulkanShaderProgram.hpp | ||
include/NovelRT/Graphics/Vulkan/Utilities/BufferUsageKind.hpp | ||
include/NovelRT/Graphics/Vulkan/Utilities/Graphics.Vulkan.Utilities.hpp | ||
include/NovelRT/Graphics/Vulkan/Utilities/PipelineBlendFactor.hpp | ||
include/NovelRT/Graphics/Vulkan/Utilities/Support.hpp | ||
include/NovelRT/Graphics/Vulkan/Utilities/Texel.hpp | ||
include/NovelRT/Graphics/Vulkan/Utilities/TextureAddressMode.hpp | ||
) | ||
|
||
set_target_properties(NovelRT-Graphics | ||
PROPERTIES | ||
EXPORT_NAME Graphics | ||
POSITION_INDEPENDENT_CODE ON | ||
) | ||
|
||
target_compile_features(NovelRT-Graphics | ||
PUBLIC | ||
cxx_std_17 | ||
) | ||
|
||
target_compile_options(NovelRT-Graphics | ||
PRIVATE | ||
$<$<CXX_COMPILER_ID:GNU>:-Wall> | ||
$<$<CXX_COMPILER_ID:GNU>:-Wabi> | ||
$<$<CXX_COMPILER_ID:GNU>:-Werror> | ||
$<$<CXX_COMPILER_ID:GNU>:-Wextra> | ||
$<$<CXX_COMPILER_ID:GNU>:-Wpedantic> | ||
$<$<CXX_COMPILER_ID:GNU>:-pedantic-errors> | ||
|
||
$<$<CXX_COMPILER_ID:Clang>:-Wall> | ||
$<$<CXX_COMPILER_ID:Clang>:-Werror> | ||
$<$<CXX_COMPILER_ID:Clang>:-Wextra> | ||
$<$<CXX_COMPILER_ID:Clang>:-Wpedantic> | ||
$<$<CXX_COMPILER_ID:Clang>:-pedantic-errors> | ||
|
||
$<$<CXX_COMPILER_ID:MSVC>:/W4> | ||
$<$<CXX_COMPILER_ID:MSVC>:/WX> | ||
$<$<CXX_COMPILER_ID:MSVC>:/permissive-> | ||
) | ||
|
||
target_include_directories(NovelRT-Graphics PRIVATE "$<TARGET_PROPERTY:Engine,INCLUDE_DIRECTORIES>") | ||
target_link_libraries(NovelRT-Graphics | ||
PUBLIC | ||
spdlog | ||
tbb | ||
Vulkan::Vulkan | ||
VulkanMemoryAllocator | ||
) | ||
|
||
install( | ||
TARGETS NovelRT-Graphics | ||
EXPORT NovelRTConfig | ||
LIBRARY DESTINATION lib | ||
FILE_SET public_headers DESTINATION include | ||
) |
2 changes: 1 addition & 1 deletion
2
src/NovelRT/Graphics/GraphicsMemoryBlock.cpp → graphics/GraphicsMemoryBlock.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...raphics/GraphicsMemoryBlockCollection.cpp → graphics/GraphicsMemoryBlockCollection.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/NovelRT/Graphics/GraphicsPipeline.cpp → graphics/GraphicsPipeline.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ovelRT/Graphics/GraphicsPipelineInput.cpp → graphics/GraphicsPipelineInput.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...Graphics/GraphicsPipelineInputElement.cpp → graphics/GraphicsPipelineInputElement.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...lRT/Graphics/GraphicsPipelineResource.cpp → graphics/GraphicsPipelineResource.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...RT/Graphics/GraphicsPipelineSignature.cpp → graphics/GraphicsPipelineSignature.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...elRT/Graphics/GraphicsResourceManager.cpp → graphics/GraphicsResourceManager.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/NovelRT/Graphics/ShaderProgram.cpp → graphics/ShaderProgram.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...Graphics/Vulkan/VulkanGraphicsAdapter.cpp → graphics/Vulkan/VulkanGraphicsAdapter.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../Vulkan/VulkanGraphicsAdapterSelector.cpp → .../Vulkan/VulkanGraphicsAdapterSelector.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../Graphics/Vulkan/VulkanGraphicsBuffer.cpp → graphics/Vulkan/VulkanGraphicsBuffer.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...Graphics/Vulkan/VulkanGraphicsContext.cpp → graphics/Vulkan/VulkanGraphicsContext.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../Graphics/Vulkan/VulkanGraphicsDevice.cpp → graphics/Vulkan/VulkanGraphicsDevice.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...T/Graphics/Vulkan/VulkanGraphicsFence.cpp → graphics/Vulkan/VulkanGraphicsFence.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../Vulkan/VulkanGraphicsMemoryAllocator.cpp → .../Vulkan/VulkanGraphicsMemoryAllocator.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...hics/Vulkan/VulkanGraphicsMemoryBlock.cpp → ...hics/Vulkan/VulkanGraphicsMemoryBlock.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...n/VulkanGraphicsMemoryBlockCollection.cpp → ...n/VulkanGraphicsMemoryBlockCollection.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...raphics/Vulkan/VulkanGraphicsPipeline.cpp → graphics/Vulkan/VulkanGraphicsPipeline.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ulkan/VulkanGraphicsPipelineSignature.cpp → ...ulkan/VulkanGraphicsPipelineSignature.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...s/Vulkan/VulkanGraphicsPluginProvider.cpp → ...s/Vulkan/VulkanGraphicsPluginProvider.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...raphics/Vulkan/VulkanGraphicsProvider.cpp → graphics/Vulkan/VulkanGraphicsProvider.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...s/Vulkan/VulkanGraphicsSurfaceContext.cpp → ...s/Vulkan/VulkanGraphicsSurfaceContext.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...Graphics/Vulkan/VulkanGraphicsTexture.cpp → graphics/Vulkan/VulkanGraphicsTexture.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...T/Graphics/Vulkan/VulkanShaderProgram.cpp → graphics/Vulkan/VulkanShaderProgram.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.