microsoft / DirectXShaderCompiler

This repo hosts the source for the DirectX Shader Compiler which is based on LLVM/Clang.
Other
2.98k stars 665 forks source link

Add warning when vk::offset is not correctly aligned #6694

Closed s-perron closed 2 weeks ago

s-perron commented 2 weeks ago

We will start issues a warning when vk::offset is not correctly aligned to make it easier for users to understand why their spir-v will not validate. Note that we do not treat this as an error because we want to allow someone to have the flexibility to do other things. For example, they could be targeting an API that does not follow any of the existing rules, which is why they are using vk::offset.

Fixes #6171