Unity-Technologies / Unity-Technologies/NativeRenderingPlugin

Is there a missing #include <d3d11.h> in IUnityGraphicsD3D11.h ?

Open
#47 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
943
Forks
186
PR merge metrics
No merged PRs in 30d

Description

I wasn't sure if this was intentional or if I'm missing something but, I just had my code break when an autoformatter sorted my headers, which made my #include <d3d11.h> get declared after IUnityGraphicsD3D11.h, leading to lots of unknown type errors

Contributor guide

No contributing guide indexed for this repository

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

Open IUnityGraphicsD3D11.h and check whether its declarations require types from d3d11.h before that header is included. Reproduce the reported header-order failure with d3d11.h included afterward; done means the header works in that order without unknown type errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-graphics
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.