KhronosGroup / KhronosGroup/glslang

-fvk-use-dx-layout

Open
#2,248 2 comments 2 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.