-
Notifications
You must be signed in to change notification settings - Fork 13
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
0 parents
commit 52438e1
Showing
30 changed files
with
3,579 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
variables: | ||
SampleName: FfxVariableShading | ||
GIT_SUBMODULE_STRATEGY: normal | ||
stages: | ||
- build | ||
- deploy | ||
build_dx12: | ||
tags: | ||
- windows | ||
- amd64 | ||
stage: build | ||
script: | ||
- 'cmake -S sample -B sample/build/DX12 -G "Visual Studio 15 2017" -A x64 -DGFX_API=DX12 -DBUILD_INSTALLER=ON' | ||
- 'cmake --build sample/build/DX12 --config Release' | ||
artifacts: | ||
paths: | ||
- sample/bin/ | ||
package_sample: | ||
tags: | ||
- windows | ||
- amd64 | ||
stage: deploy | ||
dependencies: | ||
- build_dx12 | ||
script: | ||
- echo "Packaging build" | ||
- echo cd .\sample\bin\ > %SampleName%_DX12.bat | ||
- echo start %SampleName%_DX12.exe >> %SampleName%_DX12.bat | ||
artifacts: | ||
name: "%SampleName%-%CI_COMMIT_TAG%-%CI_COMMIT_REF_NAME%-%CI_COMMIT_SHORT_SHA%" | ||
paths: | ||
- "sample/bin/" | ||
- "sample/media/" | ||
- "docs/" | ||
- "readme.md" | ||
- "license.txt" | ||
- "%SampleName%_DX12.bat" |
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,6 @@ | ||
[submodule "sample/libs/cauldron"] | ||
path = sample/libs/cauldron | ||
url = ../../GPUOpen-LibrariesAndSDKs/Cauldron.git | ||
[submodule "sample/media/cauldron-media"] | ||
path = sample/media/cauldron-media | ||
url = ../../GPUOpen-LibrariesAndSDKs/Cauldron-Media.git |
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,28 @@ | ||
# FidelityFX Variable Shading | ||
|
||
Copyright (c) 2020 Advanced Micro Devices, Inc. All rights reserved. | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. | ||
|
||
## Variable Shading | ||
|
||
Variable Shading is a technique to generate image based VRS based on luminance of samples in the previous frame. | ||
The directory structure is as follows: | ||
|
||
- ffx-variableshading contains the [Variable Shading library](https://github.com/GPUOpen-Effects/FidelityFX-VariableShading/tree/master/ffx-variableshading) | ||
- sample contains the [Variable Shading sample](https://github.com/GPUOpen-Effects/FidelityFX-VariableShading/tree/master/sample) | ||
|
||
You can find the binaries for FidelityFX Variable Shading in the release section on GitHub. |
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,28 @@ | ||
# | ||
# enables multithreading compilation | ||
# | ||
|
||
add_compile_options(/MP) | ||
|
||
# | ||
# includes cauldron's helper cmakes | ||
# | ||
include(${CMAKE_CURRENT_SOURCE_DIR}/../../libs/cauldron/common.cmake) | ||
|
||
# | ||
# Add manifest so the app uses the right DPI settings | ||
# | ||
function(addManifest PROJECT_NAME) | ||
IF (MSVC) | ||
IF (CMAKE_MAJOR_VERSION LESS 3) | ||
MESSAGE(WARNING "CMake version 3.0 or newer is required use build variable TARGET_FILE") | ||
ELSE() | ||
ADD_CUSTOM_COMMAND( | ||
TARGET ${PROJECT_NAME} | ||
POST_BUILD | ||
COMMAND "mt.exe" -manifest \"${CMAKE_CURRENT_SOURCE_DIR}\\dpiawarescaling.manifest\" -inputresource:\"$<TARGET_FILE:${PROJECT_NAME}>\"\;\#1 -outputresource:\"$<TARGET_FILE:${PROJECT_NAME}>\"\;\#1 | ||
COMMENT "Adding display aware manifest..." | ||
) | ||
ENDIF() | ||
ENDIF(MSVC) | ||
endfunction() |
Binary file not shown.
Binary file not shown.
Oops, something went wrong.