RPRSharp 3.1.5-alpha-1

This is a prerelease version of RPRSharp.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package RPRSharp --version 3.1.5-alpha-1                
NuGet\Install-Package RPRSharp -Version 3.1.5-alpha-1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RPRSharp" Version="3.1.5-alpha-1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RPRSharp --version 3.1.5-alpha-1                
#r "nuget: RPRSharp, 3.1.5-alpha-1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install RPRSharp as a Cake Addin
#addin nuget:?package=RPRSharp&version=3.1.5-alpha-1&prerelease

// Install RPRSharp as a Cake Tool
#tool nuget:?package=RPRSharp&version=3.1.5-alpha-1&prerelease                

RPRSharp

This repository is developed based on the C# bindings provided by RadeonProRenderSDK, improving its enums and structs to make the calling method more suitable for C# developers.

The repository code uses ClangSharp to perform semantic analysis and generation on the RadeonProRender_v2.h file, and refactors it using the Camel-Case naming convention.
Note: Some enumerations and structures may have names that do not match their original meanings.

The interface code has been double-checked on the RadeonProRender_v2.h file provided by the RadeonProRenderSDK repository, and all the interfaces have been implemented. The current code version is 3.1.5.

The code is currently in the early stages of development, and it cannot be guaranteed that all interfaces are functional. I will continue to improve the code based on the tutorial examples provided by RadeonProRenderSDK, and I also welcome contributions from the community.

Usage:

Call the Core.Init() function in the program entry point and provide a callback function for registering dependency libraries.

static void Main(string[] _)
{
    Core.Init(RegisterLibrary);

    // code
    Rpr.Create....;
}

private static void RegisterLibrary(Platform platform, out string rprPath)
{
    string dir = Path.Combine(AppContext.BaseDirectory, "AMD Radeon ProRender SDK");

    rprPath = platform switch
    {
        Platform.CentOS => Path.Combine(dir, "binCentOS7", "libRadeonProRender64.so"),
        Platform.Ubuntu => Path.Combine(dir, "binUbuntu20", "libRadeonProRender64.so"),
        Platform.MacOS => Path.Combine(dir, "binMacOS", "libRadeonProRender64.dylib"),
        Platform.Windows => Path.Combine(dir, "binWin64", "RadeonProRender64.dll"),
        _ => string.Empty,
    };
}

Example:

00_context_creation image

03_parameters_enumeration image

05_basic_scene image

12_transform_motion_blur image

13_deformation_motion_blur image

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.1.5-alpha-2 87 2/20/2024
3.1.5-alpha-1 82 2/6/2024
3.1.5-alpha 77 1/31/2024