RPRSharp 3.1.5-alpha-2
dotnet add package RPRSharp --version 3.1.5-alpha-2
NuGet\Install-Package RPRSharp -Version 3.1.5-alpha-2
<PackageReference Include="RPRSharp" Version="3.1.5-alpha-2" />
paket add RPRSharp --version 3.1.5-alpha-2
#r "nuget: RPRSharp, 3.1.5-alpha-2"
// Install RPRSharp as a Cake Addin #addin nuget:?package=RPRSharp&version=3.1.5-alpha-2&prerelease // Install RPRSharp as a Cake Tool #tool nuget:?package=RPRSharp&version=3.1.5-alpha-2&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,
};
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. 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. |
-
net7.0
- No dependencies.
-
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 | 86 | 2/20/2024 |
3.1.5-alpha-1 | 81 | 2/6/2024 |
3.1.5-alpha | 76 | 1/31/2024 |