Skip to content

Commit

Permalink
Release v24.08 (#189)
Browse files Browse the repository at this point in the history
* Fix Image Processing Crash;
* Upgrade USD to v24.08 (along with other dependencies).
  • Loading branch information
adskWangl authored and GitHub Enterprise committed Jul 31, 2024
1 parent 3082b23 commit 9d69c45
Show file tree
Hide file tree
Showing 37 changed files with 565 additions and 522 deletions.
6 changes: 1 addition & 5 deletions Applications/Plasma/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,13 @@ PRIVATE
cxxopts::cxxopts
stb::stb
tinyobjloader::tinyobjloader
tinygltf::tinygltf
Foundation
Aurora
${WINSDK_LIB}
${CMAKE_DL_LIBS}
)

target_include_directories(${PROJECT_NAME}
PRIVATE
"${TinyGLTF_INCLUDE_DIR}"
)

if(WIN32 AND ENABLE_INTERACTIVE_PLASMA)
# set windows-specific properties including WIN32 executable (gui app)
set_target_properties(${PROJECT_NAME} PROPERTIES WIN32_EXECUTABLE TRUE)
Expand Down
2 changes: 2 additions & 0 deletions Applications/Plasma/pch.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ using namespace std;
// GLM - OpenGL Mathematics
// NOTE: This is a math library, and not specific to OpenGL.
#define GLM_FORCE_CTOR_INIT
// Enable glm experimental for transform.hpp.
#define GLM_ENABLE_EXPERIMENTAL
#pragma warning(push)
#pragma warning(disable : 4127) // nameless struct/union
#pragma warning(disable : 4201) // conditional expression is not constant
Expand Down
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.24)
# 3.24 is required to have Vulkan::shaderc_combined
cmake_minimum_required(VERSION 3.29)
# 3.29 is required to have boost 1.85


# Forbid the in-source build
Expand All @@ -17,7 +17,7 @@ if(USD_usdviewq_LIBRARY_RELEASE OR USD_usdviewq_LIBRARY_DEBUG)
endif()

# Set the project name and project variables
project(Aurora VERSION 24.03.0.0)
project(Aurora VERSION 24.08.0.0)

# Create a folder for the version header files
set(VERSION_FOLDER "${PROJECT_BINARY_DIR}/VersionFiles")
Expand Down
162 changes: 0 additions & 162 deletions Jenkinsfile

This file was deleted.

55 changes: 28 additions & 27 deletions Libraries/Aurora/API/Aurora/Aurora.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2023 Autodesk, Inc.
// Copyright 2024 Autodesk, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -59,8 +59,8 @@ namespace Aurora
/// \param pFileNameOut File name of the loaded resource containing the (used as hint for subsequent
/// processing)
/// \return True if loaded successfully.
using LoadResourceFunction =
function<bool(const string& uri, vector<unsigned char>* pBufferOut, string* pFileNameOut)>;
using LoadResourceFunction = std::function<bool(
const std::string& uri, std::vector<unsigned char>* pBufferOut, std::string* pFileNameOut)>;

// Math objects.
using vec2 = glm::vec2;
Expand Down Expand Up @@ -282,39 +282,40 @@ struct PropertyValue
}

/// Convert value to string.
string toString() const
std::string toString() const
{
// Compare based on type value.
switch (type)
{
case Type::Bool:
return to_string(_bool);
return std::to_string(_bool);
case Type::Int:
return to_string(_int);
return std::to_string(_int);
case Type::Float:
return to_string(_float);
return std::to_string(_float);
case Type::Float2:
return to_string(_float2.x) + ", " + to_string(_float2.y);
return std::to_string(_float2.x) + ", " + std::to_string(_float2.y);
case Type::Float3:
return to_string(_float3.x) + ", " + to_string(_float3.y) + ", " + to_string(_float3.z);
return std::to_string(_float3.x) + ", " + std::to_string(_float3.y) + ", " +
std::to_string(_float3.z);
case Type::Float4:
return to_string(_float4.x) + ", " + to_string(_float4.y) + ", " +
to_string(_float4.z) + ", " + to_string(_float4.w);
return std::to_string(_float4.x) + ", " + std::to_string(_float4.y) + ", " +
std::to_string(_float4.z) + ", " + std::to_string(_float4.w);
case Type::Matrix4:
return to_string(_matrix4[0][0]) + ", " + to_string(_matrix4[0][1]) + ", " +
to_string(_matrix4[0][2]) + ", " + to_string(_matrix4[0][3]) + ", " +
to_string(_matrix4[1][0]) + ", " + to_string(_matrix4[1][1]) + ", " +
to_string(_matrix4[1][2]) + ", " + to_string(_matrix4[1][3]) + ", " +
to_string(_matrix4[2][0]) + ", " + to_string(_matrix4[2][1]) + ", " +
to_string(_matrix4[2][2]) + ", " + to_string(_matrix4[2][3]) + ", " +
to_string(_matrix4[3][0]) + ", " + to_string(_matrix4[3][1]) + ", " +
to_string(_matrix4[3][2]) + ", " + to_string(_matrix4[3][3]);
return std::to_string(_matrix4[0][0]) + ", " + std::to_string(_matrix4[0][1]) + ", " +
std::to_string(_matrix4[0][2]) + ", " + std::to_string(_matrix4[0][3]) + ", " +
std::to_string(_matrix4[1][0]) + ", " + std::to_string(_matrix4[1][1]) + ", " +
std::to_string(_matrix4[1][2]) + ", " + std::to_string(_matrix4[1][3]) + ", " +
std::to_string(_matrix4[2][0]) + ", " + std::to_string(_matrix4[2][1]) + ", " +
std::to_string(_matrix4[2][2]) + ", " + std::to_string(_matrix4[2][3]) + ", " +
std::to_string(_matrix4[3][0]) + ", " + std::to_string(_matrix4[3][1]) + ", " +
std::to_string(_matrix4[3][2]) + ", " + std::to_string(_matrix4[3][3]);

case Type::String:
return _string;
case Type::Strings:
{
string res;
std::string res;
// If any string does not match equality is false.
for (size_t i = 0; i < _strings.size(); i++)
{
Expand Down Expand Up @@ -456,7 +457,7 @@ struct VertexDescription
/// GetAttributeDataFunction.
struct AttributeData
{
/// Pointer to actual vertex or index atttribute data.
/// Pointer to actual vertex or index attribute data.
const void* address = nullptr;

/// Offset in bytes to start of attribute data.
Expand Down Expand Up @@ -812,10 +813,10 @@ class AURORA_API IMaterial
MAKE_AURORA_PTR(IMaterial);

// Definition of an instance layer (material+geometry)
using LayerDefinition = pair<IMaterialPtr, IGeometryPtr>;
using LayerDefinition = std::pair<IMaterialPtr, IGeometryPtr>;

// Array of layer definitions.
using LayerDefinitions = vector<LayerDefinition>;
using LayerDefinitions = std::vector<LayerDefinition>;

/// A class representing an instance of geometry, including a per-instance material and transform.
class AURORA_API IInstance
Expand Down Expand Up @@ -900,7 +901,7 @@ class AURORA_API IScene
///
/// \param atPath The Aurora path at which the image will be created.
/// \param filePath The path to the image file, if the string is empty, then atPath is used.
virtual void setImageFromFilePath(const Path& atPath, const string& filePath = "",
virtual void setImageFromFilePath(const Path& atPath, const std::string& filePath = "",
bool linearize = true, bool isEnvironment = false) = 0;

/// Set the properties for sampler with given path.
Expand Down Expand Up @@ -1024,7 +1025,7 @@ class AURORA_API IScene
/// \param lightType Type of light (one of strings in
/// Aurora::Names::LightTypes).
/// \return A smart pointer to the new lights.
virtual ILightPtr addLightPointer(const string& lightType) = 0;
virtual ILightPtr addLightPointer(const std::string& lightType) = 0;

protected:
virtual ~IScene() = default; // hidden destructor
Expand Down Expand Up @@ -1174,7 +1175,7 @@ class AURORA_API IRenderer
virtual const std::vector<std::string>& builtInMaterials() = 0;

/// \desc Set the callback function used to load resources, such as textures, from a URI.
/// \param func Callback function to be used for all subsquent loading.
/// \param func Callback function to be used for all subsequent loading.
virtual void setLoadResourceFunction(LoadResourceFunction func) = 0;

protected:
Expand All @@ -1185,7 +1186,7 @@ MAKE_AURORA_PTR(IRenderer);
// Gets the logger for the Aurora library, used to report console output and errors.
AURORA_API Foundation::Log& logger();

// Creates a renderer with the specified baclend and number of simultaneously active tasks.
// Creates a renderer with the specified backend and number of simultaneously active tasks.
AURORA_API IRendererPtr createRenderer(
IRenderer::Backend type = IRenderer::Backend::Default, uint32_t taskCount = 3);

Expand Down
2 changes: 1 addition & 1 deletion Libraries/Aurora/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ target_compile_definitions(${PROJECT_NAME} PRIVATE ${DEFAULT_COMPILE_DEFINITIONS
if(ENABLE_DIRECTX_BACKEND)
# Compile the standalone compute shaders.
# NOTE: These are compiled with DXC at build time unlike all the other shaders.
# TODO: Runtime compile this too, see OGSMOD-1215.
# TODO: Runtime compile this too.
set_source_files_properties(Source/DirectX/Shaders/Accumulation.hlsl PROPERTIES
VS_SHADER_TYPE Compute
VS_SHADER_MODEL 6.3
Expand Down
4 changes: 2 additions & 2 deletions Libraries/Aurora/Source/MaterialX/BSDFCodeGenerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include <MaterialXCore/Generated.h>

// Forward declare MaterialX types.
namespace MaterialX_v1_38_8
namespace MaterialX_v1_38_10
{
class Document;
class FileSearchPath;
Expand All @@ -26,7 +26,7 @@ class UnitConverterRegistry;
class UnitSystem;
class ShaderNode;
class TypeDesc;
} // namespace MaterialX_v1_38_8
} // namespace MaterialX_v1_38_10

#include "Properties.h"

Expand Down
1 change: 0 additions & 1 deletion Libraries/Aurora/Source/RendererBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ class RendererBase : public IRenderer, public FixedValues

// TODO: Destruction via shared_ptr is not safe, we should have some kind of kill list system, but
// can't seem to get it to work.
// See OGSMOD-1912
#if 0
vector<IImagePtr> _imageDestroyList;
#endif
Expand Down
Loading

0 comments on commit 9d69c45

Please sign in to comment.