Repository navigation
The full 3.9.0 notes describe each of the release's 297 changes.
Breaking Changes
- Without
--backend, the single-file command refuses an output file whose extension names no language CrossTL writes, such asshader.spvorkernel.cl, where it used to write CrossGL into it; pass--backend cglfor that. - The target chooses the GLSL profile:
openglwrites desktop GLSL, also from a GLSL ES source, and the newglestarget writes GLSL ES 3.x. Each refuses an#extensionits profile has no form of. - Rust output writes
#![no_std]rust-gpu kernels instead of host Rust, and refuses what it cannot lower yet.
Added
- CrossTL reads WGSL, and reads GLSL ES 3.00 (WebGL 2) under the source names
webgl,webgl2,esslandglsl-es. - CrossGL has a
nodestage for D3D12 work-graph node shaders, which HLSL input and output translate; workgroup collectives andworkgroupUniformLoad; partitioned wave reductions and scans (WaveMulti*); subgroup rotations;gcd,lcm,factorial,combandperm;powiandpowif; and biased depth comparisons, depth-compare gathers of one component and multisample positions. - GLSL, SPIR-V and HLSL output compute
exp,exp2,log,log2andpowofdoublevalues in binary64, within one ulp. - CUDA and HIP input translate the
__syncthreads_count,__syncthreads_andand__syncthreads_orvotes, the directed-rounding intrinsics with their exact IEEE 754 results, and function templates. CUDA and HIP output read texel buffers withtex1Dfetch. - HLSL output writes debug prints as
printf, and HLSL input and output carry the Shader Model 6.10 previewDebugBreak()andTriangleObjectPositions(),SampleCmpBias, the one-componentGatherCmp*forms,GetSamplePosition, and residencyStatusreads withCheckAccessFullyMapped. - Metal output translates fragment shader interlock to raster order groups, tessellation evaluation shaders to post-tessellation vertex functions, and ray intersection stages to bounding-box intersection functions. Metal input imports intersection functions, the quad-group functions and the anonymous union and struct members of ggml's quantized blocks.
- Rust output lowers constant blocks, textures, samplers, storage images, atomics, inline ray queries and wave operations to rust-gpu. Mojo output lowers wave and subgroup operations and writes more of
std.math,std.bitandstd.atomic. - Slang output writes more of the built-ins, system values, wave functions and clock reads of Slang's core module, and Slang input imports
InterlockedCompare*FloatBitwiseand rasterizer-ordered views. - SPIR-V output lowers KHR cooperative matrices,
interpolateAt*andQuadReadLaneAtlanes chosen at run time. WGSL output writes clip distances, pointer locals, subgroup and quad built-ins, texture gathers and queries, and multisampled textures. GLSL output writesQuadAllandQuadAny. - The coverage report has a GLSL ES row and validates WGSL output with Tint as well as naga, and the documentation and the
coveragebranch have a page per language.
Improved
crosstl shader.metal -o shader.hlsltakes the target from the output file's extension, andcrosstl.translate_artifactsimports a source once for all the artifacts its target needs.- Translation takes less time, with byte-identical output, Metal input most: on 154 corpus units the import takes 22 % less CPU time.
- OpenGL output's software subgroups accept more loop shapes, such as a strided loop that starts from a workgroup-uniform value plus the subgroup index.
- Coverage runs more compute probes on a GPU and on Direct3D 12 WARP, and compares the host interface of each Metal translation with the native probe's.
Fixed
- 229 fixes, mainly to Metal, GLSL, CUDA, HIP, HLSL, Slang and WGSL output and to Metal, CUDA, HIP and OpenCL C input. Many keep the shared storage of C unions, the width of 8- and 16-bit integer arithmetic and the order of rasterizer-ordered resources; others concern bindings and argument tables, module-scope variables and constants, array constructors, atomics and atomic counters, wave and quad operations, deeply nested calls, and tessellation, mesh and ray tracing stages.