-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
51236cc
commit 0f81d7a
Showing
77 changed files
with
9,104 additions
and
5 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
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
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
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,142 @@ | ||
cmake_minimum_required (VERSION 3.10) | ||
|
||
project(Diligent-GraphicsEngineWebGPU CXX) | ||
|
||
set(INCLUDE | ||
include/AttachmentCleanerWebGPU.hpp | ||
include/BufferViewWebGPUImpl.hpp | ||
include/BufferWebGPUImpl.hpp | ||
include/DeviceContextWebGPUImpl.hpp | ||
include/EngineWebGPUImplTraits.hpp | ||
include/FenceWebGPUImpl.hpp | ||
include/FramebufferWebGPUImpl.hpp | ||
include/pch.h | ||
include/PipelineResourceAttribsWebGPU.hpp | ||
include/PipelineResourceSignatureWebGPUImpl.hpp | ||
include/PipelineStateWebGPUImpl.hpp | ||
include/QueryManagerWebGPU.hpp | ||
include/QueryWebGPUImpl.hpp | ||
include/QueueSignalPoolWebGPU.hpp | ||
include/RenderDeviceWebGPUImpl.hpp | ||
include/RenderPassWebGPUImpl.hpp | ||
include/SamplerWebGPUImpl.hpp | ||
include/ShaderResourceBindingWebGPUImpl.hpp | ||
include/ShaderResourceCacheWebGPU.hpp | ||
include/ShaderVariableManagerWebGPU.hpp | ||
include/ShaderWebGPUImpl.hpp | ||
include/SharedMemoryManagerWebGPU.hpp | ||
include/SwapChainWebGPUImpl.hpp | ||
include/TextureViewWebGPUImpl.hpp | ||
include/TextureWebGPUImpl.hpp | ||
include/WebGPUObjectWrappers.hpp | ||
include/WebGPUTypeConversions.hpp | ||
) | ||
|
||
set(INTERFACE | ||
interface/BufferWebGPU.h | ||
interface/DeviceContextWebGPU.h | ||
interface/EngineFactoryWebGPU.h | ||
interface/RenderDeviceWebGPU.h | ||
interface/SamplerWebGPU.h | ||
interface/SwapChainWebGPU.h | ||
interface/TextureViewWebGPU.h | ||
interface/TextureWebGPU.h | ||
) | ||
|
||
set(SRC | ||
src/AttachmentCleanerWebGPU.cpp | ||
src/BufferViewWebGPUImpl.cpp | ||
src/BufferWebGPUImpl.cpp | ||
src/DeviceContextWebGPUImpl.cpp | ||
src/EngineFactoryWebGPU.cpp | ||
src/FenceWebGPUImpl.cpp | ||
src/FramebufferWebGPUImpl.cpp | ||
src/QueryManagerWebGPU.cpp | ||
src/QueryWebGPUImpl.cpp | ||
src/RenderDeviceWebGPUImpl.cpp | ||
src/RenderPassWebGPUImpl.cpp | ||
src/SamplerWebGPUImpl.cpp | ||
src/SharedMemoryManagerWebGPU.cpp | ||
src/SwapChainWebGPUImpl.cpp | ||
src/TextureViewWebGPUImpl.cpp | ||
src/TextureWebGPUImpl.cpp | ||
src/WebGPUTypeConversions.cpp | ||
) | ||
|
||
set(DLL_SRC | ||
src/DLLMain.cpp | ||
src/GraphicsEngineWebGPU.def | ||
) | ||
|
||
add_library(Diligent-GraphicsEngineWebGPUInterface INTERFACE) | ||
target_link_libraries (Diligent-GraphicsEngineWebGPUInterface INTERFACE Diligent-GraphicsEngineInterface) | ||
target_include_directories(Diligent-GraphicsEngineWebGPUInterface INTERFACE interface) | ||
|
||
add_library(Diligent-GraphicsEngineWebGPU-static STATIC | ||
${SRC} ${INTERFACE} ${INCLUDE} | ||
readme.md | ||
) | ||
|
||
target_precompile_headers(Diligent-GraphicsEngineWebGPU-static PRIVATE include/pch.h) | ||
|
||
add_library(Diligent-GraphicsEngineWebGPU-shared SHARED | ||
readme.md | ||
) | ||
|
||
if(MSVC) | ||
target_sources(Diligent-GraphicsEngineWebGPU-shared PRIVATE ${DLL_SRC}) | ||
endif() | ||
|
||
set_dll_output_name(Diligent-GraphicsEngineWebGPU-shared GraphicsEngineWebGPU) | ||
|
||
set_common_target_properties(Diligent-GraphicsEngineWebGPU-shared) | ||
set_common_target_properties(Diligent-GraphicsEngineWebGPU-static) | ||
|
||
target_include_directories(Diligent-GraphicsEngineWebGPU-static | ||
PRIVATE | ||
include | ||
) | ||
|
||
target_link_libraries(Diligent-GraphicsEngineWebGPU-static | ||
PRIVATE | ||
Diligent-BuildSettings | ||
Diligent-TargetPlatform | ||
Diligent-Common | ||
Diligent-GraphicsEngine | ||
Diligent-GraphicsEngineNextGenBase | ||
Diligent-ShaderTools | ||
webgpu | ||
PUBLIC | ||
Diligent-GraphicsEngineWebGPUInterface | ||
) | ||
|
||
target_link_libraries(Diligent-GraphicsEngineWebGPU-shared | ||
PRIVATE | ||
Diligent-BuildSettings | ||
Diligent-GraphicsEngineWebGPU-static | ||
PUBLIC | ||
Diligent-GraphicsEngineWebGPUInterface | ||
) | ||
target_compile_definitions(Diligent-GraphicsEngineWebGPU-shared PUBLIC ENGINE_DLL=1) | ||
target_copy_webgpu_binaries(Diligent-GraphicsEngineWebGPU-shared) | ||
|
||
source_group("src" FILES ${SRC}) | ||
source_group("dll" FILES ${DLL_SRC}) | ||
source_group("include" FILES ${INCLUDE}) | ||
source_group("interface" FILES ${INTERFACE}) | ||
|
||
set_target_properties(Diligent-GraphicsEngineWebGPU-static PROPERTIES | ||
FOLDER DiligentCore/Graphics | ||
) | ||
set_target_properties(Diligent-GraphicsEngineWebGPU-shared PROPERTIES | ||
FOLDER DiligentCore/Graphics | ||
) | ||
|
||
set_source_files_properties( | ||
readme.md PROPERTIES HEADER_FILE_ONLY TRUE | ||
) | ||
|
||
if(DILIGENT_INSTALL_CORE) | ||
install_core_lib(Diligent-GraphicsEngineWebGPU-shared) | ||
install_core_lib(Diligent-GraphicsEngineWebGPU-static) | ||
endif() |
Oops, something went wrong.