-
Notifications
You must be signed in to change notification settings - Fork 15
New tgmath #172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
New tgmath #172
Changes from all commits
Commits
Show all changes
62 commits
Select commit
Hold shift + click to select a range
ba9fde5
hlsl bxdf test dir
keptsecret 4f9dc9f
test bxdf compiles
keptsecret 2091701
minor namespace changes
keptsecret 385bcec
added bsdf test
keptsecret 5ba4dfd
Merge branch 'master' into bxdf_unit_tests
keptsecret 9212b65
fix namespace
keptsecret 32f959d
Example 62 fix
Przemog1 8128422
Merge branch 'master' into bxdf_unit_tests
keptsecret 70b28d8
working? test
keptsecret f177090
rng test util struct
keptsecret 382c862
beckmann dielectric test
keptsecret e0bde55
Updated examples
Przemog1 46c80dc
Merge branch 'master' of github.com:Devsh-Graphics-Programming/Nabla-…
Przemog1 677323b
Fixes
Przemog1 1bc825d
Merge branch 'bxdf_unit_tests' of github.com:Devsh-Graphics-Programmi…
Przemog1 76db120
Merge branch 'master' into bxdf_unit_tests
keptsecret 9de6ae8
fix syntax
keptsecret 6dbc89a
more tests (all brdfs) and utils
keptsecret 9c379eb
template tests
keptsecret 5140f85
all existing tests into templates
keptsecret fb7b31b
simplify test template and usage
keptsecret 3c415fd
diff v test
keptsecret 3524449
test metadata struct for more info
keptsecret ef188ba
smooth dielectric bsdf tests
keptsecret 17b253c
improve rng function
keptsecret 59d14c3
fix bugs in rng
keptsecret fac1ed1
fix tests, use uniform sampling
keptsecret 1ecd0c0
use new sampling
keptsecret c983141
hash to uint2 seed
keptsecret c02c9f0
use glm quaternions instead
keptsecret 0c3d657
callbacks on detect error
keptsecret 01d4799
fix callback usage bugs
keptsecret 887c3a0
changed ior, spectral_type usage in bxdf
keptsecret 9ab4e8e
use new pcg hlsl
keptsecret c8859c0
callback reruns bxdf compute
keptsecret 414f961
added bxdf names for debugging
keptsecret fe23efc
Saving work
Przemog1 cdff4c6
Merge branch 'bxdf_unit_tests' of github.com:Devsh-Graphics-Programmi…
Przemog1 55362eb
Saving work
Przemog1 138bd7f
Adjustments
Przemog1 969778f
Merge branch 'master' of github.com:Devsh-Graphics-Programming/Nabla-…
Przemog1 ae6e570
Removed test code
Przemog1 806b879
Removed `bitreverse.hlsl` references
Przemog1 daccef9
Implemented C++ side tgmath tests
Przemog1 bc4cbbe
Implemented HLSL side tgmath tests
Przemog1 e91f070
Implemented intrinsics.hlsl tests
Przemog1 a8ac36c
Implemented `logFail`
Przemog1 bcd079a
Fixed gpu tests
Przemog1 0714468
Fixes
Przemog1 c39b0df
Renamed `lerp` to `mix`
Przemog1 086987d
Added log2 tests
Przemog1 06ed533
Extened tgmath tests
Przemog1 a927463
Added tests for new intirnsics functions
Przemog1 3ad088a
Merge branch 'master' of github.com:Devsh-Graphics-Programming/Nabla-…
Przemog1 2bc6d88
Example 62 fix
Przemog1 99cb3cf
Added modfStruct and frexpStruct tests
Przemog1 ccc637a
Bug fix
Przemog1 6087653
Updated tests
Przemog1 a460800
Updated tests
Przemog1 5d6fdb9
Updated tests
Przemog1 2e3d959
Corrections
Przemog1 cfe94ab
Update
Przemog1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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,16 @@ | ||
| //// Copyright (C) 2023-2024 - DevSH Graphics Programming Sp. z O.O. | ||
| //// This file is part of the "Nabla Engine". | ||
| //// For conditions of distribution and use, see copyright notice in nabla.h | ||
| #pragma shader_stage(compute) | ||
|
|
||
| #include "common.hlsl" | ||
|
|
||
| [[vk::binding(0, 0)]] RWStructuredBuffer<IntrinsicsIntputTestValues> inputTestValues; | ||
| [[vk::binding(1, 0)]] RWStructuredBuffer<IntrinsicsTestValues> outputTestValues; | ||
|
|
||
| [numthreads(256, 1, 1)] | ||
| void main(uint3 invocationID : SV_DispatchThreadID) | ||
| { | ||
| if(invocationID.x == 0) | ||
| outputTestValues[0].fillTestValues(inputTestValues[0]); | ||
| } |
This file contains hidden or 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,16 @@ | ||
| //// Copyright (C) 2023-2024 - DevSH Graphics Programming Sp. z O.O. | ||
| //// This file is part of the "Nabla Engine". | ||
| //// For conditions of distribution and use, see copyright notice in nabla.h | ||
| #pragma shader_stage(compute) | ||
|
|
||
| #include "common.hlsl" | ||
|
|
||
| [[vk::binding(0, 0)]] RWStructuredBuffer<TgmathIntputTestValues> inputTestValues; | ||
| [[vk::binding(1, 0)]] RWStructuredBuffer<TgmathTestValues> outputTestValues; | ||
|
|
||
| [numthreads(256, 1, 1)] | ||
| void main(uint3 invocationID : SV_DispatchThreadID) | ||
| { | ||
| if(invocationID.x == 0) | ||
| outputTestValues[0].fillTestValues(inputTestValues[0]); | ||
| } | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 @@ | ||
| set(NBL_INCLUDE_SEARCH_DIRECTORIES | ||
| "${CMAKE_CURRENT_SOURCE_DIR}/include" | ||
| ) | ||
|
|
||
| include(common RESULT_VARIABLE RES) | ||
| if(NOT RES) | ||
| message(FATAL_ERROR "common.cmake not found. Should be in {repo_root}/cmake directory") | ||
| endif() | ||
|
|
||
| nbl_create_executable_project("" "" "${NBL_INCLUDE_SEARCH_DIRECTORIES}" "" "${NBL_EXECUTABLE_PROJECT_CREATION_PCH_TARGET}") | ||
|
|
||
| if(NBL_EMBED_BUILTIN_RESOURCES) | ||
| set(_BR_TARGET_ ${EXECUTABLE_NAME}_builtinResourceData) | ||
| set(RESOURCE_DIR "app_resources") | ||
|
|
||
| get_filename_component(_SEARCH_DIRECTORIES_ "${CMAKE_CURRENT_SOURCE_DIR}" ABSOLUTE) | ||
| get_filename_component(_OUTPUT_DIRECTORY_SOURCE_ "${CMAKE_CURRENT_BINARY_DIR}/src" ABSOLUTE) | ||
| get_filename_component(_OUTPUT_DIRECTORY_HEADER_ "${CMAKE_CURRENT_BINARY_DIR}/include" ABSOLUTE) | ||
|
|
||
| file(GLOB_RECURSE BUILTIN_RESOURCE_FILES RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}/${RESOURCE_DIR}" CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/${RESOURCE_DIR}/*") | ||
| foreach(RES_FILE ${BUILTIN_RESOURCE_FILES}) | ||
| LIST_BUILTIN_RESOURCE(RESOURCES_TO_EMBED "${RES_FILE}") | ||
| endforeach() | ||
|
|
||
| ADD_CUSTOM_BUILTIN_RESOURCES(${_BR_TARGET_} RESOURCES_TO_EMBED "${_SEARCH_DIRECTORIES_}" "${RESOURCE_DIR}" "nbl::this_example::builtin" "${_OUTPUT_DIRECTORY_HEADER_}" "${_OUTPUT_DIRECTORY_SOURCE_}") | ||
|
|
||
| LINK_BUILTIN_RESOURCES_TO_TARGET(${EXECUTABLE_NAME} ${_BR_TARGET_}) | ||
| endif() |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.