Skip to content

Commit

Permalink
Merge branch 'next_release'
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffamstutz committed Mar 15, 2024
2 parents d17fcf9 + 7971d9f commit c355b8a
Show file tree
Hide file tree
Showing 1,014 changed files with 8,491 additions and 2,766 deletions.
1 change: 0 additions & 1 deletion .github/workflows/anari_sdk_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,4 @@ jobs:

- name: Render Tests
working-directory: ${{github.workspace}}/build
if: ${{ matrix.config == 'Release' }}
run: ctest -R render_test -C ${{ matrix.config }}
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Copyright 2021 The Khronos Group
## Copyright 2021-2024 The Khronos Group
## SPDX-License-Identifier: Apache-2.0

cmake_minimum_required(VERSION 3.11)
Expand Down Expand Up @@ -28,7 +28,7 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake)

## Establish project

project(anari VERSION 0.8.0 LANGUAGES C CXX)
project(anari VERSION 0.9.0 LANGUAGES C CXX)

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR})
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR})
Expand Down Expand Up @@ -66,7 +66,7 @@ include(cmake/anari_sdk_fetch_project.cmake)

## Add library and executable targets

add_subdirectory(libs)
add_subdirectory(src)
add_subdirectory(external)
add_subdirectory(code_gen)
if (BUILD_EXAMPLES)
Expand Down
2 changes: 1 addition & 1 deletion cmake/Findanari.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Copyright 2022 The Khronos Group
## Copyright 2022-2024 The Khronos Group
## SPDX-License-Identifier: Apache-2.0

## NOTE: DO NOT USE THIS MODULE FILE!!! This CMake module sets up fake imported
Expand Down
2 changes: 1 addition & 1 deletion cmake/anariConfig.cmake.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Copyright 2021 The Khronos Group
## Copyright 2021-2024 The Khronos Group
## SPDX-License-Identifier: Apache-2.0

@PACKAGE_INIT@
Expand Down
2 changes: 1 addition & 1 deletion cmake/anari_generate_codegen.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Copyright 2023 The Khronos Group
## Copyright 2023-2024 The Khronos Group
## SPDX-License-Identifier: Apache-2.0

function(anari_generate_queries)
Expand Down
2 changes: 1 addition & 1 deletion cmake/anari_generate_frontend.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Copyright 2021 The Khronos Group
## Copyright 2021-2024 The Khronos Group
## SPDX-License-Identifier: Apache-2.0

function(anari_generate_frontend)
Expand Down
2 changes: 1 addition & 1 deletion cmake/anari_sdk_fetch_project.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Copyright 2023 The Khronos Group
## Copyright 2023-2024 The Khronos Group
## SPDX-License-Identifier: Apache-2.0

include(FetchContent)
Expand Down
2 changes: 1 addition & 1 deletion cmake/cmake_project_commands.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Copyright 2022 The Khronos Group
## Copyright 2022-2024 The Khronos Group
## SPDX-License-Identifier: Apache-2.0

function(project_add_executable)
Expand Down
2 changes: 1 addition & 1 deletion cmake/mark_cache_variables_as_advanced.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Copyright 2023 The Khronos Group
## Copyright 2023-2024 The Khronos Group
## SPDX-License-Identifier: Apache-2.0

function(mark_cache_variables_as_advanced)
Expand Down
2 changes: 1 addition & 1 deletion code_gen/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Copyright 2021 The Khronos Group
## Copyright 2021-2024 The Khronos Group
## SPDX-License-Identifier: Apache-2.0

if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.12")
Expand Down
25 changes: 25 additions & 0 deletions code_gen/api/khr_geometry_cone.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,31 @@
"types" : ["ANARI_STRING"],
"tags" : [],
"description" : "optional object name"
}, {
"name" : "color",
"types" : ["ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "uniform color"
}, {
"name" : "attribute0",
"types" : ["ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "uniform attribute0"
}, {
"name" : "attribute1",
"types" : ["ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "uniform attribute1"
}, {
"name" : "attribute2",
"types" : ["ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "uniform attribute2"
}, {
"name" : "attribute3",
"types" : ["ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "uniform attribute3"
}, {
"name" : "primitive.color",
"types" : ["ANARI_ARRAY1D"],
Expand Down
25 changes: 25 additions & 0 deletions code_gen/api/khr_geometry_curve.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,31 @@
"types" : ["ANARI_STRING"],
"tags" : [],
"description" : "optional object name"
}, {
"name" : "color",
"types" : ["ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "uniform color"
}, {
"name" : "attribute0",
"types" : ["ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "uniform attribute0"
}, {
"name" : "attribute1",
"types" : ["ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "uniform attribute1"
}, {
"name" : "attribute2",
"types" : ["ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "uniform attribute2"
}, {
"name" : "attribute3",
"types" : ["ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "uniform attribute3"
}, {
"name" : "primitive.color",
"types" : ["ANARI_ARRAY1D"],
Expand Down
25 changes: 25 additions & 0 deletions code_gen/api/khr_geometry_cylinder.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,31 @@
"types" : ["ANARI_STRING"],
"tags" : [],
"description" : "optional object name"
}, {
"name" : "color",
"types" : ["ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "uniform color"
}, {
"name" : "attribute0",
"types" : ["ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "uniform attribute0"
}, {
"name" : "attribute1",
"types" : ["ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "uniform attribute1"
}, {
"name" : "attribute2",
"types" : ["ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "uniform attribute2"
}, {
"name" : "attribute3",
"types" : ["ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "uniform attribute3"
}, {
"name" : "primitive.color",
"types" : ["ANARI_ARRAY1D"],
Expand Down
25 changes: 25 additions & 0 deletions code_gen/api/khr_geometry_quad.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,31 @@
"types" : ["ANARI_STRING"],
"tags" : [],
"description" : "optional object name"
}, {
"name" : "color",
"types" : ["ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "uniform color"
}, {
"name" : "attribute0",
"types" : ["ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "uniform attribute0"
}, {
"name" : "attribute1",
"types" : ["ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "uniform attribute1"
}, {
"name" : "attribute2",
"types" : ["ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "uniform attribute2"
}, {
"name" : "attribute3",
"types" : ["ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "uniform attribute3"
}, {
"name" : "primitive.color",
"types" : ["ANARI_ARRAY1D"],
Expand Down
25 changes: 25 additions & 0 deletions code_gen/api/khr_geometry_sphere.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,31 @@
"types" : ["ANARI_STRING"],
"tags" : [],
"description" : "optional object name"
}, {
"name" : "color",
"types" : ["ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "uniform color"
}, {
"name" : "attribute0",
"types" : ["ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "uniform attribute0"
}, {
"name" : "attribute1",
"types" : ["ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "uniform attribute1"
}, {
"name" : "attribute2",
"types" : ["ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "uniform attribute2"
}, {
"name" : "attribute3",
"types" : ["ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "uniform attribute3"
}, {
"name" : "primitive.color",
"types" : ["ANARI_ARRAY1D"],
Expand Down
25 changes: 25 additions & 0 deletions code_gen/api/khr_geometry_triangle.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,31 @@
"types" : ["ANARI_STRING"],
"tags" : [],
"description" : "optional object name"
}, {
"name" : "color",
"types" : ["ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "uniform color"
}, {
"name" : "attribute0",
"types" : ["ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "uniform attribute0"
}, {
"name" : "attribute1",
"types" : ["ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "uniform attribute1"
}, {
"name" : "attribute2",
"types" : ["ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "uniform attribute2"
}, {
"name" : "attribute3",
"types" : ["ANARI_FLOAT32_VEC4"],
"tags" : [],
"description" : "uniform attribute3"
}, {
"name" : "primitive.color",
"types" : ["ANARI_ARRAY1D"],
Expand Down
2 changes: 1 addition & 1 deletion code_gen/generate_device_frontend.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 The Khronos Group
# Copyright 2021-2024 The Khronos Group
# SPDX-License-Identifier: Apache-2.0

import sys
Expand Down
4 changes: 2 additions & 2 deletions code_gen/generate_extension_utility.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 The Khronos Group
# Copyright 2021-2024 The Khronos Group
# SPDX-License-Identifier: Apache-2.0

import sys
Expand Down Expand Up @@ -124,7 +124,7 @@ def end_namespaces(args):


with open(args.outdir/"anari_extension_utility.h", mode='w') as f:
f.write("// Copyright 2021 The Khronos Group\n")
f.write("// Copyright 2021-2024 The Khronos Group\n")
f.write("// SPDX-License-Identifier: Apache-2.0\n\n")
f.write("// This file was generated by "+os.path.basename(__file__)+"\n")
f.write("// Don't make changes to this directly\n\n")
Expand Down
9 changes: 4 additions & 5 deletions code_gen/generate_headers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 The Khronos Group
# Copyright 2021-2024 The Khronos Group
# SPDX-License-Identifier: Apache-2.0

import sys
Expand All @@ -11,7 +11,7 @@ def write_anari_enums(filename, anari):
os.makedirs(os.path.dirname(filename), exist_ok=True)
with open(filename, mode='w') as f:

f.write("// Copyright 2021 The Khronos Group\n")
f.write("// Copyright 2024 The Khronos Group\n")
f.write("// SPDX-License-Identifier: Apache-2.0\n\n")
f.write("// This file was generated by "+os.path.basename(__file__)+"\n")
f.write("// Don't make changes to this directly\n\n")
Expand All @@ -24,7 +24,6 @@ def write_anari_enums(filename, anari):
ANARIDataType() = default;
constexpr ANARIDataType(int v) noexcept : value(v) {}
constexpr operator int() const noexcept { return value; }
constexpr bool operator==(int v) const noexcept { return v == value; }
private:
int value;
};
Expand Down Expand Up @@ -53,7 +52,7 @@ def write_anari_header(filename, anari):
os.makedirs(os.path.dirname(filename), exist_ok=True)

with open(filename, mode='w') as f:
f.write("// Copyright 2021 The Khronos Group\n")
f.write("// Copyright 2021-2024 The Khronos Group\n")
f.write("// SPDX-License-Identifier: Apache-2.0\n\n")
f.write("// This file was generated by "+os.path.basename(__file__)+"\n")
f.write("// Don't make changes to this directly\n\n")
Expand Down Expand Up @@ -198,7 +197,7 @@ def write_anari_type_query_helper(filename, anari):
os.makedirs(os.path.dirname(filename), exist_ok=True)

with open(filename, mode='w') as f:
f.write("// Copyright 2021 The Khronos Group\n")
f.write("// Copyright 2021-2024 The Khronos Group\n")
f.write("// SPDX-License-Identifier: Apache-2.0\n\n")
f.write("// This file was generated by "+os.path.basename(__file__)+"\n")
f.write("// Don't make changes to this directly\n\n")
Expand Down
6 changes: 3 additions & 3 deletions code_gen/generate_queries.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 The Khronos Group
# Copyright 2021-2024 The Khronos Group
# SPDX-License-Identifier: Apache-2.0

import sys
Expand Down Expand Up @@ -457,7 +457,7 @@ def end_namespaces(args):
return output

with open(args.outdir/(args.prefix + "Queries.cpp"), mode='w') as f:
f.write("// Copyright 2021 The Khronos Group\n")
f.write("// Copyright 2024 The Khronos Group\n")
f.write("// SPDX-License-Identifier: Apache-2.0\n\n")
f.write("// This file was generated by "+os.path.basename(__file__)+"\n")
f.write("// Don't make changes to this directly\n\n")
Expand All @@ -475,7 +475,7 @@ def end_namespaces(args):


with open(args.outdir/(args.prefix + "Queries.h"), mode='w') as f:
f.write("// Copyright 2021 The Khronos Group\n")
f.write("// Copyright 2024 The Khronos Group\n")
f.write("// SPDX-License-Identifier: Apache-2.0\n\n")
f.write("// This file was generated by "+os.path.basename(__file__)+"\n")
f.write("// Don't make changes to this directly\n\n")
Expand Down
2 changes: 1 addition & 1 deletion code_gen/hash_gen.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 The Khronos Group
# Copyright 2021-2024 The Khronos Group
# SPDX-License-Identifier: Apache-2.0

import sys
Expand Down
7 changes: 4 additions & 3 deletions code_gen/merge_anari.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2021 The Khronos Group
# Copyright 2021-2024 The Khronos Group
# SPDX-License-Identifier: Apache-2.0

import json
Expand Down Expand Up @@ -41,8 +41,9 @@ def merge_parameters(core, extension):
name = param["name"]
c = next((x for x in core if x["name"] == name), None)
if c:
c["types"].extend(param["types"])
if "values" in c:
if "types" in c and "types" in param:
c["types"].extend(param["types"])
if "values" in c and "values" in param:
c["values"].extend(param["values"])
else:
core.append(param)
Expand Down
Loading

0 comments on commit c355b8a

Please sign in to comment.