-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* correctly handle the error case where ANARI_LIBRARY is queried but empty * simplify direct linking tutorial, add 'environment' library tutorial * general CMake cleanups * remove reliance on match3D + CPM for fetching dependencies * MSVC build fixes * python API updates for latest spec changes * Update jsons to spec state * Fix some generator issues and updated with new jsons * implement background images in helide * bump version number * update readme * tutorial cleanups * update render tests for more robustness and less console output * Fix header file generation for queries --------- Co-authored-by: Jakob Progsch <jprogsch@nvidia.com>
- Loading branch information
1 parent
e40c3d9
commit 8a67d54
Showing
89 changed files
with
33,260 additions
and
11,313 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 |
---|---|---|
|
@@ -8,6 +8,7 @@ docs/out/* | |
out | ||
CMakeSettings.json | ||
.match3D | ||
.anari_deps | ||
|
||
# cts | ||
cts/anari_library_debug* | ||
|
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,35 @@ | ||
## Copyright 2023 The Khronos Group | ||
## SPDX-License-Identifier: Apache-2.0 | ||
|
||
include(FetchContent) | ||
|
||
function(anari_sdk_fetch_project) | ||
cmake_parse_arguments(FETCH_SOURCE | ||
"ADD_SUBDIR" # options | ||
"NAME;URL;MD5" # single-arg options | ||
"" # multi-arg options | ||
${ARGN} | ||
) | ||
|
||
if (FETCH_SOURCE_MD5) | ||
set(FETCH_SOURCE_MD5_COMMAND URL_MD5 ${FETCH_SOURCE_MD5}) | ||
endif() | ||
|
||
set(SOURCE ${CMAKE_BINARY_DIR}/deps/source/${FETCH_SOURCE_NAME}) | ||
|
||
FetchContent_Populate(${FETCH_SOURCE_NAME} | ||
URL ${FETCH_SOURCE_URL} | ||
DOWNLOAD_DIR ${CMAKE_SOURCE_DIR}/.anari_deps/${FETCH_SOURCE_NAME} | ||
${FETCH_SOURCE_MD5_COMMAND} | ||
SOURCE_DIR ${SOURCE} | ||
) | ||
|
||
set("${FETCH_SOURCE_NAME}_LOCATION" ${SOURCE} PARENT_SCOPE) | ||
|
||
if (FETCH_SOURCE_ADD_SUBDIR) | ||
add_subdirectory( | ||
${SOURCE} | ||
${CMAKE_BINARY_DIR}/deps/build/${FETCH_SOURCE_NAME} | ||
) | ||
endif() | ||
endfunction() |
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,29 @@ | ||
{ | ||
"info" : { | ||
"name" : "KHR_CAMERA_DEPTH_OF_FIELD", | ||
"type" : "extension", | ||
"dependencies" : [] | ||
}, | ||
|
||
"objects" : [ | ||
{ | ||
"type" : "ANARI_CAMERA", | ||
"name" : "default", | ||
"parameters" : [ | ||
{ | ||
"name" : "apertureRadius", | ||
"types" : ["ANARI_FLOAT32"], | ||
"tags" : [], | ||
"default" : 0, | ||
"description" : "aperture radius" | ||
}, { | ||
"name" : "focusDistance", | ||
"types" : ["ANARI_FLOAT32"], | ||
"tags" : [], | ||
"default" : 1, | ||
"description" : "focus distance" | ||
} | ||
] | ||
} | ||
] | ||
} |
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,47 @@ | ||
{ | ||
"info" : { | ||
"name" : "KHR_CAMERA_MOTION_TRANSFORMATION", | ||
"type" : "extension", | ||
"dependencies" : [] | ||
}, | ||
|
||
"objects" : [ | ||
{ | ||
"type" : "ANARI_CAMERA", | ||
"name" : "default", | ||
"parameters" : [ | ||
{ | ||
"name" : "motion.transform", | ||
"types" : ["ANARI_ARRAY1D"], | ||
"elementType" : ["ANARI_FLOAT32_MAT4"], | ||
"tags" : [], | ||
"description" : "world space transforms uniformly distributed in time" | ||
}, { | ||
"name" : "motion.scale", | ||
"types" : ["ANARI_ARRAY1D"], | ||
"elementType" : ["ANARI_FLOAT32_VEC3"], | ||
"tags" : [], | ||
"description" : "scaling uniformly distributed in time" | ||
}, { | ||
"name" : "motion.rotation", | ||
"types" : ["ANARI_ARRAY1D"], | ||
"elementType" : ["ANARI_FLOAT32_QUAT_IJKW"], | ||
"tags" : [], | ||
"description" : "rotations uniformly distributed in time" | ||
}, { | ||
"name" : "motion.translation", | ||
"types" : ["ANARI_ARRAY1D"], | ||
"elementType" : ["ANARI_FLOAT32_VEC3"], | ||
"tags" : [], | ||
"description" : "translations uniformly distributed in time" | ||
}, { | ||
"name" : "time", | ||
"types" : ["ANARI_FLOAT32_BOX1"], | ||
"tags" : [], | ||
"default" : [0.0, 1.0], | ||
"description" : "time associated with the first and laste entry in the motion.transform array" | ||
} | ||
] | ||
} | ||
] | ||
} |
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.