Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESIGN.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
| **Date** | 2026-07-13 |
| **Scope** | Java bindings for the Slang shading-language compiler ([shader-slang/slang](https://github.com/shader-slang/slang)) |
| **Java baseline** | JDK 25 LTS, FFM (java.lang.foreign) |
| **Slang baseline** | v2026.13 release binaries (pinned, upgradable) |
| **Slang baseline** | v2026.14.1 release binaries (pinned, upgradable) |
| **Platforms** | Windows, macOS, Linux — x86_64 and aarch64 |

This document was written against a structural scan of `include/slang.h` at tag-adjacent
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ directly. Windows, macOS, and Linux, on x86_64 and aarch64. Requires JDK 25+.

| Artifact | Purpose |
|--------------------------------------------------------|---|
| `io.github.refux:slang-java:0.0.6` | The library: compiler API, reflection, Java file systems |
| `io.github.refux:slang-java-natives:0.0.6:<os>-<arch>` | The official Slang binaries, as one classifier per platform: `windows`, `linux`, or `macos` × `x86_64` or `aarch64` |
| `io.github.refux:slang-java:0.0.7` | The library: compiler API, reflection, Java file systems |
| `io.github.refux:slang-java-natives:0.0.7:<os>-<arch>` | The official Slang binaries, as one classifier per platform: `windows`, `linux`, or `macos` × `x86_64` or `aarch64` |

The library version tracks slang-java's own API, not Slang's. To see which Slang release a jar
binds, read its manifest — no resolving, no running:

```bash
unzip -p slang-java-0.0.6.jar META-INF/MANIFEST.MF
unzip -p slang-java-0.0.7.jar META-INF/MANIFEST.MF
```

`Slang-Version` there is a **floor**, not a lockstep: it names the release the bindings were
Expand All @@ -46,8 +46,8 @@ val slangNatives = "${
}-${if (System.getProperty("os.arch") in listOf("aarch64", "arm64")) "aarch64" else "x86_64"}"

dependencies {
implementation("io.github.refux:slang-java:0.0.6")
runtimeOnly("io.github.refux:slang-java-natives:0.0.6:$slangNatives")
implementation("io.github.refux:slang-java:0.0.7")
runtimeOnly("io.github.refux:slang-java-natives:0.0.7:$slangNatives")
}

tasks.withType<JavaExec> {
Expand All @@ -60,10 +60,10 @@ classpath together and the loader picks the host's at runtime (LWJGL-style):

```kotlin
dependencies {
implementation("io.github.refux:slang-java:0.0.6")
runtimeOnly("io.github.refux:slang-java-natives:0.0.6:macos-aarch64")
runtimeOnly("io.github.refux:slang-java-natives:0.0.6:windows-x86_64")
runtimeOnly("io.github.refux:slang-java-natives:0.0.6:linux-x86_64")
implementation("io.github.refux:slang-java:0.0.7")
runtimeOnly("io.github.refux:slang-java-natives:0.0.7:macos-aarch64")
runtimeOnly("io.github.refux:slang-java-natives:0.0.7:windows-x86_64")
runtimeOnly("io.github.refux:slang-java-natives:0.0.7:linux-x86_64")
}
```

Expand Down
6 changes: 4 additions & 2 deletions api/slang-abi.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# slang-java ABI lock -- append-only; regenerated by extract_api.py
# slang 2026.13
# slang 2026.14.1
enum BindingType BaseMask 255
enum BindingType CombinedTextureSampler 7
enum BindingType ConstantBuffer 3
Expand Down Expand Up @@ -30,9 +30,10 @@ enum CompilerOptionName Capability 39
enum CompilerOptionName CompileCoreModule 97
enum CompilerOptionName CompilerPath 61
enum CompilerOptionName CompilerVersion 153
enum CompilerOptionName CountOf 156
enum CompilerOptionName CountOf 158
enum CompilerOptionName CountOfParsableOptions 111
enum CompilerOptionName CoverageManifestOutput 150
enum CompilerOptionName DebugInfoIncludeSource 157
enum CompilerOptionName DebugInformation 44
enum CompilerOptionName DebugInformationFormat 112
enum CompilerOptionName DefaultDownstreamCompiler 62
Expand Down Expand Up @@ -142,6 +143,7 @@ enum CompilerOptionName SPIRVUnifiedDescriptorHeapStride 154
enum CompilerOptionName SaveCoreModule 102
enum CompilerOptionName SaveCoreModuleBinSource 103
enum CompilerOptionName SaveGLSLModuleBinSource 119
enum CompilerOptionName SeparateDebugInfoOutput 156
enum CompilerOptionName SkipCodeGen 80
enum CompilerOptionName SkipDownstreamLinking 120
enum CompilerOptionName SkipSPIRVValidation 29
Expand Down
Loading