Wgpu

0.1.0

GPU compute, rendering and shader tools for PowerShell through wgpu 30, compiled into the module with Direct3D 12, Vulkan, OpenGL and Metal. Get-WgpuAdapter lists every adapter with its features and limits, and Open-WgpuDevice opens one with all of them but wgpu's experimental features. Buffers and textures stay on the GPU between calls: New-WgpuBuffer takes an array
GPU compute, rendering and shader tools for PowerShell through wgpu 30, compiled into the module with Direct3D 12, Vulkan, OpenGL and Metal. Get-WgpuAdapter lists every adapter with its features and limits, and Open-WgpuDevice opens one with all of them but wgpu's experimental features. Buffers and textures stay on the GPU between calls: New-WgpuBuffer takes an array of any numeric type, and Invoke-WgpuCompute runs a WGSL, GLSL or SPIR-V compute shader over arrays or buffers, binding them by position, by name or by group and binding as the shader declares them. Invoke-WgpuMap runs an expression over arrays and Measure-WgpuArray reduces them on the GPU. Textures load from and save to PNG, JPEG and other image files, and Invoke-WgpuRender draws offscreen into them. Test-WgpuShader, Get-WgpuShaderInfo and ConvertTo-WgpuShader validate, inspect and translate WGSL, GLSL and SPIR-V shaders into WGSL, SPIR-V, GLSL, HLSL and MSL with no GPU at all. Every cmdlet also has a Gpu name (Invoke-GpuCompute), and every object has methods for scripts that hold it. Bound directly to Rust with PoWerRuSt (pwrs), Rust bindings for writing PowerShell binary modules in the spirit of PyO3: the cmdlets are the library, not a wrapper over a command line. Windows x64 and Arm64, Linux x64 and Arm64 (glibc 2.35 and newer), macOS arm64 and x64, and FreeBSD x64 in one module, on PowerShell 7.6 or later and, on Windows, Windows PowerShell 5.1. Source and issues at https://github.com/Variably-Constant/Wgpu; the binding framework at https://github.com/Variably-Constant/PWRS and https://crates.io/crates/PoWerRuSt.
Show more

Minimum PowerShell version

5.1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name Wgpu

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name Wgpu

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2026 Mark Newton

Package Details

FileList

Version History

Version Downloads Last updated
0.1.0 (current version) 10 11/30/2026