KhronosGroup / KhronosGroup/glslang
-fvk-use-dx-layout
Open
enhancement
HLSL
- Dominant language
- C++
- Stars
- 3.6k
- Forks
- 989
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 31
Description
Does glslang have an option like `-fvk-use-dx-layout` from DirectXShaderCompiler?
I need dx behavior for `RWStructuredBuffer`.
`-fvk-use-dx-layout` changes ArrayStride from 16 to 12.
Can I do it with glslang or it possible only with DirectXShaderCompiler?
Contributor guide
Research direction
Start by comparing glslang's handling of RWStructuredBuffer layout with DirectXShaderCompiler's -fvk-use-dx-layout behavior. Determine whether an equivalent glslang option exists and verify whether the generated ArrayStride changes from 16 to 12; the issue provides no file or test entry point.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100