百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

SPIRV-VSExtension

> 编程语言
开源

适用于 Visual Studio 的 SPIR-V 扩展

99 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

适用于 Visual Studio 的 SPIR-V 扩展

SPIR-V extension for Visual Studio (VSIX)

About

This VSIX extension adds commands to the context menu of shader files (and folders containing shaders) that let's you quickly compile to them to SPIR-V and supports both GLSL and HLSL as source.

Requirements

GLSL standalone reference compiler

The extension requires a version of the glslang reference compiler to be in your path that supports SPIR-V:

  • Install the LunartG Vulkan SDK (comes with a pre-built version)
  • Built from the sources at https://github.com/KhronosGroup/glslang

The extension will search for the glslangvalidator.exe using the paths from the following environment variables: PATH, VK_SDK_PATH and VULKAN_SDK (set by the LunarG SDK). Alternatively you can override this with an explicit location in the extensions' settings page.

DXC standalone compiler

For compiling from HLSL, the extension requires a version of the DirectX shader compiler to be in your path that supports SPIR-V:

  • Install the LunartG Vulkan SDK (comes with a pre-built version)
  • Built from the sources at https://github.com/microsoft/DirectXShaderCompiler/

The extension will search for the dxc.exe using the paths from the following environment variables: PATH, VK_SDK_PATH and VULKAN_SDK (set by the LunarG SDK). Alternatively you can override this with an explicit location in the extensions' settings page.

Supported Visual Studio versions

The extension supports all editions of Visual Studio 2022 and 2026.

Installation

The extension is available at the Visual Studio Marketplace and can be installed directly from the IDE.

New context menu entries

The context menu entries will be displayed if the current file selection or folder includes at least one shader file with a file extension supported by the GLSL reference compiler:

  • .vert (Vertex shader)
  • .tesc (Tessellation control shader)
  • .tese (Tessellation evaluation shader)
  • .geom (Geometry shader)
  • .frag (Fragment shader)
  • .comp (Compute shader)
  • .mesh (Mesh shader)
  • .task (Task shader)
  • .rgen (Ray generation shader)
  • .rint (Ray intersection shader)
  • .rahit (Ray any hit shader)
  • .rchit (Ray closest hit shader)
  • .rmiss (Ray miss shader)
  • .rcall (Ray callable shader)

These are currently fixed, but future versions may add an options pane to adjust file extensions and how they are treated.

Features

SPIR-V functions

Compile GLSL to SPIR-V (Vulkan semantics)

Compile all selected GLSL shader files to SPIR-V binary using Vulkan semantics (-V).

Compile HLSL to SPIR-V (DXC)

Compile all selected HLSL shader files to SPIR-V binary format using the SPIR-V back-end of the DirectX shader compiler.

Compile to SPIR-V (OpenGL semantics)

Compile all selected shader files to SPIR-V binary using OpenGL semantics (-G).

Note: SPIR-V for OpenGL is supported with the GL_ARB_gl_spirv extension and implemented as a binary shader format.

A C++ example for loading a binary SPIR-V shader with OpenGL can be found here.

Print human-readable SPIR-V

This will output human readable SPIR-V (-H) using Vulkan semantics and displays it in a new document window.

Error list

Compile errors are added to the error list of Visual Studio and work like regular compile errors. Double clicking on an error will open that shader and jump to the line that the error has occured.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#visual-studiovsixvulkan

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言