KaarelKurik
KaarelKurik
A Typst document `test.typ` containing only the import statement `#import "@preview/ctheorems:1.1.2": *` will fail with pandoc 3.1.12.2, giving the message: ``` "test.typ" (line 1, column 2): "/home/kaarel/.cache/typst/packages/preview/ctheorems/1.1.2/lib.typ" (line 223, column...
**Description** `Surface::configure(..)` does not enforce lifetimes on its parameters, which allows user code to drop a device before the surface is done using it, resulting in a segfault. **Repro steps**...
``` ParameterBlock m; [shader("fragment")] float4 fragment(float4 in: SV_Position) : SV_Target { return float4(0, 0, 0, m); } ``` Using Slang release `v2025.6.1` on Linux or MacOS, the above fails to...
I'm using Slang 2025.6.3. This code compiles to invalid WGSL. ``` [shader("vertex")] float4 vertex(uint ix: SV_VertexID) : SV_Position { float4 vertices[3] = { float4(-1.0, -1.0, 0.0, 1.0), float4(3.0, -1.0, 0.0,...
Using Slang 2025.6.3. ``` [BackwardDifferentiable] func f3(x: float)->float { return 0; } [ForwardDifferentiable] func f2(x: float)->float { var yPair : DifferentialPair = diffPair(0, 0); bwd_diff(f3)(yPair, 1.0); return 0; } [ForwardDifferentiable]...
Using Slang 2025.6.3. ``` struct PartlyDiffable : IDifferentiable { int i; float q; } func breaker(x:PartlyDiffable.Differential) { return; } [shader("fragment")] float4 fragment(float4 in: SV_Position) : SV_Target { if (PartlyDiffable.Differential(0).q ==...
I'm using Slang 2025.6.4. ``` func breaker()->float { var x: float; for (int i = 0; i < 1; ++i) { if (true) { } else { x = 0.0;...
Using Slang 2025.6.4. ``` func dummy(b: StructuredBuffer)->float { return 0; } func breaker(b: StructuredBuffer)->float { var x: float = 0; for (int i = 0; i < 1; ++i) {...