Repository navigation
Releases
Sunder HLSL Workbench v2.1.0 — Delta Updates & GPU Performance
Sunder HLSL Workbench v2.1.0: verified incremental updates, higher-resolution HLSL output, GPU-native preview and faster repeat compilation.
- Standalone, persistent localhost Go server (closing a browser tab does not stop it).
- Branded Windows executable with embedded icon.
- Optional .hlsl/.hlsli Open with registration and safe on-disk editing.
- Violet IDE with shader editor, autocomplete, HLSL docs, GPU preview and diagnostics.
- Download only files whose SHA-256 differs, then confirm restart/install.
- Max FPS mode with direct WebGPU storage-buffer preview and periodic statistics.
- Framebuffer sizes 1–2048 per axis (64 MiB float4 cap and GPU device limits).
- DXC fast-edit (-O1) or optimized (-O3) modes and persistent compilation cache.
- Bundled CodeMirror, DXC and Naga: no Go, Node or PowerShell required at runtime.
The downloadable Windows x64 ZIP was rebuilt by GitHub Actions from this
release's source; Go unit tests and real DXC-to-Naga smoke translation passed.
WebGPU operation depends on the user's graphics hardware and browser.
Native GPU/driver performance remains unqualified.
HLSL Workbench v1.9.1 — Faster HLSL Runs and Interactive IntelliSense Help
HLSL Workbench v1.9.1 — Faster Runs and Usable Editor Help
This update addresses slow repeated shader compilation and animation preview overhead, while making IntelliSense and HLSL documentation usable without hunting for keyboard shortcuts.
Performance changes
- The localhost PowerShell/.NET compiler caches up to four successful DXC→Naga translations by SHA-256 of HLSL source plus entry point. Repeated builds of unchanged code skip both compiler processes. Any edit invalidates that shader's cache key; nothing is stored on disk.
- The GPU particles preset replaces costly per-pixel trigonometric hashing,
expandsqrtoperations with integer hashing and squared-radius gradients. Pixel motion and RGBA colors are still computed entirely in HLSL. The appearance may differ slightly from v1.9.0. - The RGBA preview reuses its image buffer and offscreen canvas instead of allocating a new pixel array every rendered frame. This reduces CPU allocation pressure.
- The animation now reports Compile, GPU + readback, Draw, actual FPS, frames, and elapsed time. These identify the stage responsible for delays. The GPU figure is wall time including readback, not isolated GPU shader execution time.
- When GPU work takes longer than the target frame interval, the animation advances using the actual elapsed time (up to a one-second cap), rather than artificially slowing the time uniform.
Limits: The browser still reads a float4 framebuffer back from the GPU to JavaScript on each frame. Some systems may remain slow because readback and canvas conversion have real costs. The GPU driver controls pipeline compilation; no hardware-independent FPS guarantee is possible.
Code completion and documentation
- Automatic completions begin as soon as a valid identifier character is typed (and on known vector dot members). The automatic list is bounded; Ctrl+Space still opens suggestions explicitly.
- Shortcuts are shown directly below the HLSL editor: Ctrl+Space complete, Ctrl+Shift+Space parameter help, F1 explain, right-click a recognized symbol to pin its reference, Esc to dismiss, Ctrl+Alt+[ / ] fold/unfold, Ctrl+Enter compile.
- HLSL documentation no longer vanishes immediately when moving from a highlighted token to the popup. The popup has a grace period, allows text selection and clicking its separate HLSL examples/docs link, and stays open while hovered.
- Right-click on a documented HLSL symbol opens a pinned reference and suppresses the normal browser context menu for that symbol. Right-click inside the reference keeps it pinned. Click the × button, press Esc, or click away to close. Ordinary right-clicks on unrecognized code retain the browser menu.
Complete Windows download
Download HLSL-Playground-Windows-v1.9.1.zip, extract it into a clean folder, and double-click Start-HLSL-Playground.cmd. All editor files, DXC, Naga, examples and PowerShell/.NET backend are included; no Node, Rust or Zig installation required.
Verification
- Real Chromium regression tests check folding, auto completion, HLSL function help, right-click pinning, browser-menu suppression, text-selectable documentation and full source synchronization.
- Windows CI compiles the HLSL examples with real DXC/Naga, checks cache hits and invalidation on changed shader source, and validates the tab-based localhost server lifecycle.
- The complete Windows ZIP is checked by the release pipeline. Device-specific GPU/driver performance requires local observation using the new latency counters.
HLSL Workbench v1.9.0 — Offline HLSL Code Completion and Signature Help
HLSL Workbench v1.9.0 — Offline HLSL Completion and Signature Help
This version adds code completion and IntelliSense-style editing to the existing, VS Code-style inline-folding HLSL editor. The complete Windows ZIP includes everything required: the PowerShell/.NET local compiler, DXC, Naga, CodeMirror editor, autocomplete add-on, HLSL completion engine, documentation, animated examples and startup script.
Use IntelliSense in the editor
- Ctrl+Space (or Complete in the toolbar) opens a suggestion popup at the cursor.
- Typing two or more letters, or
.after a known vector, can trigger contextual suggestions automatically. - The popup recognizes HLSL syntax, scalar/vector/matrix types, shader resource declarations, compiler intrinsics, preprocessor directives, register slots and system-value semantics.
- It also scans this shader for user-defined variables, constant-buffer fields, GPU resources,
#definenames, function declarations and parameters. It suggests those names alongside predefined HLSL symbols. - For known vectors, it offers compatible component/swizzle suggestions such as
.x,.xyz,.rgbforfloat3, without proposing a four-component.rgbaon that type. - Select suggestions with the keyboard or a single click. Completing a function inserts
function()and places the cursor between the parentheses. - While editing a call such as
smoothstep(minValue, maxValue, x), signature help displays its name and argument position. The same mechanism reads ordinary user-defined function signatures. - Ctrl+Shift+Space explicitly requests parameter hints. F1 continues to show brief HLSL documentation and a separate code example. Existing folding, editor history, compilation, and animation remain integrated.
- The dropdown and local docs do not need an internet connection;
show-hint.js,show-hint.css, and the newhlsl-intellisense.jsare packaged in the Windows ZIP.
Scope and limitations
This is IntelliSense-style lexical completion, not a full Microsoft/DXC HLSL language server. Symbol extraction is heuristic and file-local; it cannot guarantee correct overload resolution, visibility, variable scope, external includes, or semantic validation. Code that the editor can suggest might still fail DXC/Naga/WebGPU compilation. Compiler errors remain the authoritative source of truth. Some HLSL language features are unsupported by the browser's SPIR-V→WGSL conversion path.
The completion system doesn't upload source code to any cloud service. The source remains in the local browser tab and only goes to the localhost compiler endpoint when the user runs it.
Install
- Download HLSL-Playground-Windows-v1.9.0.zip from the release.
- Extract the complete ZIP into a fresh folder.
- Run Start-HLSL-Playground.cmd.
- In the Julia example type
smoothinside a function, or click Complete, and selectsmoothstep. TryFractalCto complete the shader'sFractalColorfunction. Enter a function call to see its argument signature. - Click Animate to use the existing continuous HLSL GPU animation, or Compile & Run HLSL to execute one frame.
No Node, npm, Rust, or Zig installation is needed for the distributed Windows client.
Verification
- Unit tests exercise predefined and user-defined completions, macro names, HLSL registers, semantics, compatible vector swizzles, signatures and suppression inside comments/strings.
- Real Chromium tests open the shipped editor UI, verify the popup and a click accepting a function suggestion, verify function signature help, and confirm edits reach the compiled source.
- The Windows release pipeline verifies that every offline autocomplete asset is in the packaged client and served by the local host, tests real DXC→Naga compilation, and validates packaged launcher startup and final-tab shutdown.
- Actual WebGPU rendering and driver performance still require verification on the target machine.
HLSL Workbench v1.8.3 — In-Editor VS Code-Style Folding and HLSL Hover Reference
HLSL Workbench v1.8.3 — Real In-Editor Code Folding
Replaces the v1.8.2 folding interface. The prior release presented one separate card for each code section, requiring individual "Edit section" controls. That is not how folding behaves in VS Code.
What changed
- One genuine editable code surface: A locally bundled CodeMirror 5 editor, with continuous line numbers and folding chevrons in the gutter.
- Fold functions and buffers in place: Click the arrow beside a HLSL block to collapse its body to a small inline marker. Click again to expand it. No cards, duplicated code views, or secondary textareas.
- Fold all / Unfold all operate on the same code editor. Ctrl+Alt+[ / Ctrl+Alt+] fold/unfold at the cursor.
- Preserved compilation: Folding changes only the display. The complete shader text remains the canonical source for HLSL→DXC→Naga, source export, and animation. Edits update that source immediately.
- Curated HLSL hover reference remains: Hover recognized HLSL symbols for short What / Does / Use explanations, a separate example code block, and a link to the searchable offline documentation. F1 shows the reference for the symbol under the cursor.
- Offline library: CodeMirror 5.65.21 and the C-like syntax and folding add-ons are included in the ZIP under
playground/vendor/codemirror/. CodeMirror is MIT-licensed; attribution and the full upstream LICENSE are bundled. - Fallback: If a developer opens an incomplete source checkout without the vendored files, the original native textarea remains editable. The release ZIP always includes the editor assets.
Install the complete Windows package
- Download
HLSL-Playground-Windows-v1.8.3.zip. - Extract the entire ZIP into a clean folder.
- Start
Start-HLSL-Playground.cmd. - Verify the shader is a single editor with a line-number gutter and fold arrows alongside
cbuffer WorkbenchFrame,FractalColor, andCSMain. Use those arrows or Fold all / Unfold all. - Hover
float4,RWStructuredBuffer, ornumthreadsto inspect the short tooltip and separate HLSL example.
The complete archive still includes the Windows PowerShell/.NET launcher, DXC, Naga, all sample HLSL shaders, animated Julia and particle demos, and documentation. Users do not need Node, npm, Zig or Rust.
Validation
- Real Chromium integration tests verify in-editor line numbers and folding gutter, in-place collapsed markers, full-source preservation, edits reflected in the DXC source, hover documentation, and preset reloads without stale content.
- Windows packaging checks confirm all required CodeMirror assets exist inside the complete ZIP and are served by the local PowerShell host.
- Existing GPU/animation tests, real DXC→Naga compilation tests and packaged launcher startup/shutdown checks remain in the release pipeline.
- Actual WebGPU animation still depends on local browser and GPU support.
HLSL Workbench v1.8.2 — Code Folding and Hover HLSL Reference
HLSL Workbench v1.8.2 — Foldable Code and Contextual HLSL Help
This release includes the foldable shader editor and hover-to-documentation features in the complete Windows download. Previous source versions had the editor components, but the v1.8.1 portable packaging omitted their JavaScript and documentation assets, so they did not work in the shipped client.
Code sections
- The workbench starts in Code sections mode. Top-level shader declarations, resources, functions, attributes and preprocessor directives are divided into collapsible chunks.
- Fold all, Unfold all, and Full editor switch between compact and unrestricted source views.
- Expand a chunk and select Edit section to edit that code. Changes update the same canonical HLSL source used by Compile & Run HLSL and Animate; collapsing a chunk does not remove code.
- For complex edits, use Full editor to avoid limitations of simple brace-based chunk detection.
Hover reference
- Hover a recognized HLSL keyword, type, resource, attribute, or built-in function to see three short descriptions: What, Does, and Use.
- Each hover card contains a separate HLSL code example block and a link to a local quick-reference page.
- The reference page includes a searchable index, concise explanations and independent code examples.
- Press F1 when the caret is on a recognized term in the full editor. Folded code has focusable documentation terms.
- This is a curated offline reference, not IntelliSense, a full HLSL parser, or a semantic language server. Unknown user-defined symbols do not have automatic documentation.
Installation
Download HLSL-Playground-Windows-v1.8.2.zip, extract into a new folder, and double-click Start-HLSL-Playground.cmd. The complete package includes Microsoft DXC, Naga, the PowerShell/.NET local compiler host, all JavaScript, local documentation, examples and source. No Node, Zig or Rust installation is needed.
The Julia and GPU particle examples still compute their framebuffer RGB colors directly in HLSL, with automatically supplied time and no animation JSON manifest.
Tests
Frontend checks verify folding, tooltip and documentation controls and script ordering. The packaged-client test now verifies that all four documentation assets are physically included and served by the extracted Windows package, and that the actual HTML contains the code-section and hover-reference interface. The release pipeline also compiles HLSL with real DXC/Naga and tests startup and shutdown. Browser GPU animation remains dependent on local WebGPU support.
HLSL Workbench v1.8.1 — Fixed Browser Startup and HLSL Animation
HLSL Workbench v1.8.1 — Critical Browser Startup Fix
This release supersedes v1.8.0. The v1.8.0 Windows package can show a Julia animation button selected while the editor still contains the old JavaScript particle tutorial shader. Pressing Animate then fails with an error about an absent animation JSON manifest.
Root cause and fix
The real browser threw TypeError: Cannot read properties of null (reading 'setAttribute') during startup because setActivePreset() referenced a nonexistent button ID, example-rgba-particles. This aborted loadJulia() before it populated the editor and the HLSL-only framebuffer configuration. The old inline tutorial also wrote a legacy particle shader on initial load, and the main runner separately loaded a circle preset, making startup fragile.
v1.8.1 corrects the preset ID list to match the real HTML, removes the competing legacy-shader initialization, and leaves the source-controlled Julia/particle animation script responsible for initial shader selection. Changes to the standalone JavaScript physics sandbox no longer silently overwrite a loaded framebuffer HLSL shader.
The obsolete error that simply demanded an animation JSON object is replaced with an explanation of the supported HLSL-only framebuffer convention if you actually load an incompatible shader.
How to run the complete client
- Download HLSL-Playground-Windows-v1.8.1.zip.
- Extract the entire ZIP into a new folder, not over the older release.
- Double-click Start-HLSL-Playground.cmd and use its newly opened localhost browser tab.
- Confirm the editor starts with
#define WORKBENCH_WIDTH 256,cbuffer WorkbenchFrame : register(b7)andRWStructuredBuffer<float4> Framebuffer : register(u0), rather than the oldstruct Ball/Source/Destinationshader. - Click Animate. The Julia fractal should produce time-changing RGB pixels on WebGPU; change to GPU particles to view individually colored moving procedural particles.
- The browser should not ask for an animation JSON manifest for either built-in preset.
Verified
- A real headless Chromium end-to-end test now loads the actual HTML and deferred scripts, verifies the Julia shader is present on startup, verifies the HLSL-only framebuffer spec and absence of animation JSON, switches to the GPU particles preset and back, changes the separate physics sandbox settings, and checks that no uncaught JavaScript exception or unexpected shader overwrite occurs.
- Static tests enforce that every preset referenced by the JavaScript initializer exists in the actual HTML.
- Existing mocked-WebGPU tests cover repeated dispatches, changing time values, pause/step/resume/reset and resource cleanup.
- Windows CI compiles the Julia and particle full-color HLSL shaders with real DXC→Naga, and verifies portable launcher startup, static assets and shutdown.
- Actual WebGPU rendering on every device/driver remains unverified by CI. A successful browser bootstrap does not itself guarantee WebGPU hardware support or target FPS.
The shader still computes all RGBA pixel values in HLSL, with automatic WorkbenchFrame timing; the browser controls frame scheduling and output presentation. The GPU particle preset uses independently moving procedural particles, not ball-to-ball collision physics.
The archive includes the complete portable Windows client, Microsoft DXC, Naga, launcher and shader sources. No Node, Rust or Zig installation is required; the previously quarantined custom Zig server is not included.
HLSL Workbench v1.8.0 — Manifestless HLSL RGBA Animation
HLSL Workbench v1.8.0 — Pure-HLSL Colors and Manifestless Animation
The previous particle preset produced near-zero third-channel values, rendered them as point colors, and did not show a meaningful moving scene. The animation JSON was also required merely to animate a time uniform.
v1.8.0 introduces an explicit, source-defined GPU framebuffer contract. In this mode the shader computes every RGBA pixel itself and the host supplies frame timing automatically. No animation JSON or separate input buffer is needed.
Windows: complete client
Download HLSL-Playground-Windows-v1.8.0.zip, extract everything to a new folder, and double-click Start-HLSL-Playground.cmd. The complete package includes PowerShell/.NET launcher, DXC, Naga, editor, sample shaders, and runtime. No Rust, Node or Zig installation is needed.
At startup Julia animation is selected. Press Animate, not Compile & Run HLSL (which intentionally dispatches once). The fractal now writes its own RGB channels in HLSL via FractalColor. To inspect an alternative, select GPU particles and press Animate. Each simulated pixel's color is computed in the HLSL shader and written into a float4 framebuffer; the browser is not choosing particle colors or interpreting velocities as colors.
The particle preset demonstrates procedural bouncing particle trajectories, not ball-to-ball collision physics or a persistent solver. It does nevertheless execute all visual/motion/color mathematics on the GPU.
Self-contained HLSL contract
Place these declarations inside your HLSL compute shader:
#define WORKBENCH_WIDTH 256
#define WORKBENCH_HEIGHT 256
cbuffer WorkbenchFrame : register(b7)
{
float Time;
float DeltaTime;
float Width;
float Height;
float Frame;
float Padding0;
float Padding1;
float Padding2;
};
RWStructuredBuffer<float4> Framebuffer : register(u0);Then define [numthreads(8,8,1)] void CSMain(uint3 tid : SV_DispatchThreadID) and write Framebuffer[tid.y*WORKBENCH_WIDTH+tid.x] = float4(r,g,b,a) after checking bounds.
The host detects Framebuffer:u0, WorkbenchFrame:b7 and WORKBENCH_WIDTH/HEIGHT directly from HLSL and allocates the output buffer and time uniform. u0 maps to WebGPU binding 16, and b7 to binding 39 through DXC register shifts. Workgroup dispatch is derived from the compiled shader's numthreads size. Resolution must be 32–512 pixels per dimension with no more than 4 MiB of output (RGBA float32).
Each frame, the host updates Time, DeltaTime and Frame and executes the shader again. A successful readback of Framebuffer is displayed as the actual RGB/alpha image, not a JavaScript-generated palette, velocity scatter plot or demonstration approximation. The client also reports brightness-based statistics.
This is still an API convention, not a claim that arbitrary HLSL code can create an OS animation loop: JavaScript must schedule WebGPU dispatches, and WebGPU must marshal output pixels to the browser canvas. Pure HLSL controls rendered content, pixel color and time-dependent behavior; the host owns scheduling and resource presentation.
Examples included
playground/julia-rgba.hlsl: animated Julia fractal with RGB palette code in HLSL.playground/particles-rgba.hlsl: 24 independently moving, colored procedural particles using HLSL-defined bouncing trajectories and glow.- Older compute samples and advanced manual JSON bindings remain supported for non-framebuffer shaders.
Validation
- Unit tests verify HLSL-only framebuffer inference, output resolution, b7 timing mapping, RGBA readback, and repeated WebGPU submissions with changing time and no animation JSON.
- Windows CI compiles both RGB examples using real DXC→Naga via the PowerShell compiler API.
- Windows release CI tests the full extracted package's launcher, shader compilation and shutdown.
- Browser hardware performance and correctness on your GPU still require local verification. Continuous readback can constrain achieved FPS.
- The quarantined older custom Zig
hlsl-server.exeis not shipped.
Repository: https://github.com/Cryosimorgh/HLSL-Docs
HLSL Workbench v1.7.0 — Continuous Julia GPU Animation
HLSL Workbench v1.7.0 — Real Continuous GPU Animation
This release fixes the fundamental limitation of the earlier Workbench: running an HLSL shader no longer has to produce only a static screenshot. v1.7.0 has an actual continuous GPU dispatch loop, with an animated Julia-set example.
Use it
- Download and extract HLSL-Playground-Windows-v1.7.0.zip to a new folder.
- Double-click Start-HLSL-Playground.cmd, then use the localhost tab it opens.
- The Julia animation preset is loaded by default.
- Click Animate (not the one-shot Compile & Run HLSL button).
- Watch the Julia fractal evolve. Frame and observed FPS counters change as completed WebGPU dispatches are read back.
- Pause to freeze it, Step for one dispatch, Resume to continue, or Reset to restore the initial phase.
- Adjust Julia parameters under Resource bindings & dispatch. On the next Animate/Step, changed HLSL or bindings are recompiled once.
How the live loop actually works
- The frontend calls the existing local PowerShell/.NET compiler host once per shader/configuration.
- DXC compiles the HLSL compute shader to SPIR-V; Naga translates it to WGSL. The WebGPU compute pipeline is created once.
- All GPU storage/uniform buffers are retained across animation frames. The runtime writes an updated float32 phase to a selected uniform component using
GPUQueue.writeBuffer, submits a new WebGPU compute dispatch, then copies the output to a reusable staging buffer and maps it. - Each completed GPU buffer is drawn into the preview. The Julia preset renders 128×128 samples with a deep-blue/teal/amber escape-iteration palette. The renderer uses pixel image data and one scaled canvas draw for the grid, rather than issuing thousands of CSS-colored rectangles.
- One GPU dispatch/readback is in flight at a time. The animation is paced with
requestAnimationFrameand a target FPS. If compilation, GPU work or readback are slow, actual FPS may be lower. - Closing the tab, changing presets, or stopping the session cancels scheduling and releases allocated GPU resources. Hidden tabs pause automatically.
No infinite HLSL kernel loops are required. The bounded fractal iteration is inside each compute invocation. The continuous animation itself is managed by the browser.
Animate other HLSL compute shaders
The buffer manifest supports:
"animation": {
"binding": 32,
"component": 0,
"speed": 1,
"fps": 30
}These values mean: update the first float32 value of uniform buffer binding 32 by 1 unit per elapsed second, targeting up to 30 frames/s. Supported target rates: 15, 24, 30, 60. The shader must actually reference that uniform to produce different frames; arbitrary static shaders will remain visually unchanged. For iterative simulations, writable storage buffers persist between dispatches until Reset; application-specific input/output ping-pong is not yet automatic.
The Julia HLSL source is included at playground/julia-loop.hlsl.
Validation and limitations
- JavaScript integration tests verify the animation controller: one compile, multiple real WebGPU API submissions, changing time uniforms, distinct readbacks, pause, step, resume without recompilation, reset and GPU-resource cleanup. Those tests use a mocked WebGPU device and do not demonstrate physical GPU performance.
- Windows CI compiles julia-loop.hlsl through actual DXC → Naga over the PowerShell HTTP API, and tests the complete packaged launcher, static routes and tab shutdown.
- Browser GPU execution depends on the user's driver and WebGPU support; high-FPS rendering and all Windows device/driver combinations have not been physically qualified.
- The buffer readback preview currently incurs CPU/GPU synchronization each frame. For much higher-performance simulations, a future GPU-only rendering pass is recommended.
- Only supported compute shaders and explicitly bound resources can run. This is not a universal HLSL graphics/Direct3D runtime.
The package contains Microsoft DXC and the prebuilt Naga executable and uses the Windows PowerShell/.NET host. No Rust, Node or Zig installation is required. The quarantined older custom hlsl-server.exe is not shipped.
HLSL Workbench v1.6.1 — Syntax Highlighting and Compact GPU Preview
HLSL Workbench v1.6.1 — Tighter Preview, Syntax Coloring and Clear Empty State
This release includes the complete portable Windows client with all required files and the DXC/Naga compiler binaries. It is not a patch-only download.
UI improvements
- Denser GPU output: Reduced nested container padding, expanded the preview canvas and removed oversized internal plot margins. The visualizer retains correct world-space aspect ratios for circles and non-square domains.
- HLSL syntax coloring: A lightweight built-in highlighter colors keywords, user variables, resource types, HLSL types/vectors/matrices, functions, built-in operations, numeric literals, comments, string literals, register/semantic annotations, member access and preprocessor directives.
- Editing stays native: Syntax is drawn in a noninteractive layer behind the existing textarea. Caret, selection, undo/redo, copy/paste, keyboard shortcuts, IME and source compilation continue using the unchanged editable HLSL text.
- Preset-aware highlighting: Switching among Circle mask, Array transform and Particles, and updating the example source from the simulation, refreshes the coloring immediately.
- Meaningful empty output: Removed the misleading plus-sign illustration. The new neutral plot icon and Run to preview output text describe what happens next.
- Disclosure indicators: Resource bindings, diagnostics, WGSL output and optional labs now use right/down chevrons instead of plus/minus symbols.
Run the complete client
- Download HLSL-Playground-Windows-v1.6.1.zip.
- Extract into a new folder (do not mix it with older installs).
- Double-click Start-HLSL-Playground.cmd. The launcher starts the PowerShell/.NET localhost compiler and opens your browser.
- The Circle mask example is loaded. Click Compile & Run HLSL or use Ctrl+Enter.
- View the full GPU readback visualization alongside highlighted HLSL code. To inspect details, expand Resource bindings & dispatch or Raw buffer & diagnostics.
No Rust, Node.js or Zig installation is needed for this Windows client. It contains Microsoft DXC and a prebuilt Naga shader converter, and does not bundle the previously quarantined custom Zig server.
Validation
- CI checks HLSL token categories, safe HTML escaping of user-written shader code, scroll alignment, editable-source refresh, workbench DOM structure, and GPU preview math.
- Windows CI checks static asset serving, the actual DXC → SPIR-V → Naga WGSL compiler pipeline, packaged launcher startup and session shutdown.
- Rendering still depends on the user's WebGPU-capable browser and graphics driver; CI is not a substitute for device-specific visual testing.
Repository: https://github.com/Cryosimorgh/HLSL-Docs
HLSL Workbench v1.6.0 — Focused Editor and GPU Preview
HLSL Workbench v1.6.0 — Interface Redesign
The v1.5.x interface was a long tutorial page with narrow columns, competing panels, undersized code/output text, noisy diagnostic prose and a stretched circle preview. This release replaces it with a focused compute shader workbench.
What's different
- Editor and output together: a responsive two-pane workbench. On narrow screens, the result moves below the code.
- Actual output first: the GPU readback plot is the main result. Raw buffer dumps and generated WGSL are expandable inspectors instead of large always-visible panes.
- Correct geometry: plotting preserves world-space aspect ratio; a circle on a 1×1 domain is circular, not stretched into an ellipse.
- Useful numbers without clutter: samples, mask coverage, range and mean are shown in a compact row. All-zero masks still produce an explanation.
- Subdued visual design: neutral dark surfaces, restrained warm accent, readable code typography, consistent spacing and fewer nested boxes.
- Circle mask ready on launch: the 32×32 circle shader preset loads by default. The example samples the unit square (x/y from 0 to 1), so the circle is round and easy to verify.
- Controls where they belong: preset switcher (Circle / Array / Particles), Copy/Save, Compile & Run and Ctrl+Enter shortcut live beside the editor. Resource binding JSON remains available as an expandable advanced section.
- Optional labs moved aside: the JavaScript particle sandbox, independent WGSL-only exercise and dispatch notes are collapsed under Other labs.
- Fixed inspector collision: the independent WGSL lab and the HLSL-generated WGSL panel no longer share an HTML element ID.
- Errors are still accessible: failed compile/dispatch automatically expands the raw diagnostic panel.
Run it
- Download and fully extract HLSL-Playground-Windows-v1.6.0.zip into a clean folder.
- Double-click Start-HLSL-Playground.cmd.
- In the new localhost tab, the Circle mask preset is ready. Press Compile & Run HLSL (or Ctrl+Enter while editing code).
- Observe the 2D mask in the Output pane. Expand Raw buffer & diagnostics or Generated WGSL if you need details.
- Open Resource bindings & dispatch to change the circle center, radius and edge width. Run again.
Compatibility
The compute backend is unchanged: Windows PowerShell/.NET localhost service, Microsoft DXC (HLSL→SPIR-V), prebuilt Naga (SPIR-V→WGSL) and browser WebGPU. No Rust, Zig or Node installation is required. The old quarantined Zig server is not bundled.
This is a compatible buffer-based compute shader environment, not arbitrary native DXIL/D3D12, graphics or ray-tracing execution.
Validation
CI checks frontend JavaScript syntax, unique DOM IDs, stylesheet and resource routes, pane hierarchy, circle aspect ratio, actual buffer statistics, and GPU output display logic. Windows tests validate the PowerShell server, source checkout, DXC/Naga compilation and clean tab-based shutdown; release packaging also tests the installed client.
As with prior releases, browser WebGPU execution depends on the user's GPU/driver, and GPU hardware behavior has not been qualified on every device.
Repository: https://github.com/Cryosimorgh/HLSL-Docs