Wgpu

0.1.1

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), and macOS arm64 and 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

Author(s)

  • Mark Newton

Tags

pwrs powershell wgpu gpu compute shader wgsl vulkan directx metal opengl Windows Linux MacOS

Cmdlets

Get-WgpuAdapter Open-WgpuDevice Get-WgpuDevice Close-WgpuDevice Wait-WgpuDevice Set-WgpuLog New-WgpuBuffer Read-WgpuBuffer Write-WgpuBuffer Copy-WgpuBuffer Clear-WgpuBuffer Remove-WgpuBuffer New-WgpuShader Test-WgpuShader Get-WgpuShaderInfo ConvertTo-WgpuShader New-WgpuComputePipeline New-WgpuBindGroup Invoke-WgpuCompute Invoke-WgpuMap Measure-WgpuArray New-WgpuCommandEncoder Submit-WgpuCommand New-WgpuQuerySet New-WgpuTexture Read-WgpuTexture Write-WgpuTexture Import-WgpuImage Export-WgpuImage Resize-WgpuTexture Convert-WgpuTexture ConvertTo-WgpuNormalMap ConvertTo-WgpuCubeMap ConvertFrom-WgpuCubeMap ConvertTo-WgpuIrradianceMap ConvertTo-WgpuSpecularMap New-WgpuBrdfTable Join-WgpuTexture Compare-WgpuTexture Measure-WgpuTexture New-WgpuSampler Get-WgpuTextureFormat New-WgpuRenderPipeline Invoke-WgpuRender

PSEditions

Desktop Core

Dependencies

This module has no dependencies.

Release Notes

Wgpu 0.1.0, signed: every script, manifest, format file and Windows library of the module carries a timestamped Authenticode signature from Variably Constant (the libraries from Microsoft, the .NET ones and the DirectX shader compiler, keep Microsoft's), and a signed catalog, Wgpu.cat, covers every file, so the module imports where the execution policy is AllSigned. The code is 0.1.0's, unchanged, so its log files and the KTX2 files it writes still name Wgpu 0.1.0. The description no longer names FreeBSD x64, which 0.1.0's named but did not carry. What is in it: https://github.com/Variably-Constant/Wgpu/blob/main/CHANGELOG.md

FileList

Version History

Version Downloads Last updated
0.1.1 (current version) 11 12/5/2026
0.1.0 15 11/30/2026