microsoft / microsoft/DirectXShaderCompiler

force include file

Open
#1,627 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement low-hanging-fruit
Dominant language
C++
Stars
3.7k
Forks
900
Avg merge
2d 11h
Merged PRs (30d)
44

Description

Hello,

I haven't found a way to force an include file to be included when compiling with dxc. Is there a way to do that? I expected that there would be an -include <filename> flag when invoking dxc. If there is no way, I suppose this would be a feature request. Apologies if I missed something.

Thanks,
Janos

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by examining dxc's command-line option handling and documentation to determine whether forced include files are already supported. A complete outcome would establish whether an include option is needed and define its expected behavior before implementation.

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.