Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Target environment #29

Merged
merged 15 commits into from
Apr 21, 2023
Merged

Conversation

nolanderc
Copy link
Collaborator

Allows the user to specify which API to target (OpenGL/Vulkan) and the version of SPIR-V. These influence certain aspects of the diagnostics, and may unlock new builtin identifiers. For example, when Vulkan, we are allowed to use local_size_x_id, but only when targeting recent SPIR-V versions. This adds two new CLI flags --target-env and --target-spv to change these values, respectively.

This supercedes #24, as it keeps support open for OpenGL, without forcing Vulkan rules upon them.

As with my other recent PRs, this builds upon the previous #28, which should be merged first.

Mirkopoj and others added 15 commits January 21, 2023 16:12
The LSP spec allows implementations to ignore notifications if they
want. This way glslls doesn't start emitting errors when new
notifications are added in the future.
This fixes svenstaro#19.

As an added benifit, neovim sends a "shutdown" message when closing,
waiting about 1 second until the language server responds before
terminating to give the server a chance to respond. Previously, this
caused a slight hiccup whenever neovim was closed.

By clearly stating that the "shutdown" message is not implemented by
using the "id" field, neovim now closes immediately.
We supply a custom includer which looks for files in the current
workspace, or adding them if they do not exist.
@nolanderc nolanderc mentioned this pull request Apr 20, 2023
@nolanderc nolanderc merged commit 5ee9115 into svenstaro:master Apr 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants