Skip to content

ShaderTools: Update GLSLangUtil's includeLocal to match the DXC/FXC behavior.#799

Open
hzqst wants to merge 5 commits into
DiligentGraphics:masterfrom
hzqst:RTXPT-5
Open

ShaderTools: Update GLSLangUtil's includeLocal to match the DXC/FXC behavior.#799
hzqst wants to merge 5 commits into
DiligentGraphics:masterfrom
hzqst:RTXPT-5

Conversation

@hzqst

@hzqst hzqst commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Also with a test to cover the nested directory-relative include cases.
This is a subsequent task of #798.

@hzqst
hzqst requested a review from TheMostDiligent as a code owner June 24, 2026 14:24
@TheMostDiligent
TheMostDiligent force-pushed the development branch 8 times, most recently from 13622a5 to c7c690c Compare June 27, 2026 15:44
hzqst and others added 5 commits July 18, 2026 15:20
Preserve local and system include semantics when processing and
unrolling shader includes. Support both path separators for
memory-backed source factories and add regression tests.
Add PathRootType and GetPathRootType() to distinguish Unix, Windows
drive, and UNC roots regardless of the host platform.
Add JoinPath() to combine a base path with a relative path fragment,
normalize boundary separators, and preserve Unix, drive, and UNC roots.
Normalize shader source paths across filesystem, memory, and compound
stream factories.

Resolve local includes relative to the including source while preserving
Unix, drive, and UNC roots.
Pass source names to glslang and resolve local includes relative to the
including file. Normalize resolved paths before querying shader source
factories while preserving root lookup for system includes.
@TheMostDiligent
TheMostDiligent changed the base branch from development to master July 19, 2026 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants