Skip to content

Commit e09060f

Browse files
authored
Adds NPREffect to library (#644)
1 parent 710760e commit e09060f

23 files changed

Lines changed: 1539 additions & 54 deletions

.github/copilot-instructions.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,43 @@ When reviewing documentation, do the following:
319319
- Read the documentation on the wiki located in [this git repository](https://github.com/microsoft/DirectXTK.wiki.git).
320320
- Report any specific gaps in the documentation compared to the public interface.
321321

322+
## Code Change Rules
323+
324+
- Make precise, surgical changes that **fully** address the request. Don't modify unrelated code, but ensure changes are complete and correct.
325+
- Don't fix pre-existing issues unrelated to your task. However, if you discover bugs directly caused by or tightly coupled to the code you're changing, fix those too.
326+
- Update documentation if it is directly related to the changes you are making.
327+
- Always validate that your changes don't break existing behavior.
328+
329+
### Linting, Building, Testing
330+
331+
- Only run linters, builds and tests that already exist. Do not add new linting, building or testing tools unless necessary for the task.
332+
- Use the smallest targeted test, build, or lint command that covers the changed behavior. When related targeted selectors use the same runner, include them in one invocation; escalate to full-suite or baseline runs only when targeted validation shows they are needed.
333+
- Documentation changes do not need to be linted, built or tested unless there are specific tests for documentation.
334+
335+
### Using Ecosystem Tools
336+
337+
- Prefer ecosystem tools (package managers, scaffolding, refactoring tools, linters) over manual changes.
338+
- Install packages only when changing dependencies or after a missing-dependency failure.
339+
340+
### Code Commenting Style
341+
342+
- Only comment code that needs a bit of clarification. Do not comment otherwise.
343+
322344
## Release Process
323345

324346
The release process is documented in the [release skill](.github/skills/release/SKILL.md). Invoke the `release` skill for step-by-step guidance when performing a release.
347+
348+
## CoPilot Skills
349+
350+
The project includes published CoPilot skills for developers:
351+
352+
- **Release-Process**: Guide for performing the DirectX Tool Kit release process. Invoked when asked to help with releasing a new version, publishing packages, or updating ports. See [Release Process skill](.github/skills/release/SKILL.md) for details.
353+
- **directxtk-usage**: Provides usage guidance for the DirectX Tool Kit for DX11 library. Located in the `skills/directxtk-usage/` directory.
354+
- **directxtk-tutorial**: Provides an interactive tutorial which can create a project, add the toolkit, and implement features in a step-by-step fashion. Located in the `skills/directxtk-tutorial` directory.
355+
356+
To use these skills in the Copilot CLI:
357+
358+
```bash
359+
/skills list
360+
/skills search directxtk
361+
```

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ set(LIBRARY_SOURCES
119119
Src/DDSTextureLoader.cpp
120120
Src/DebugEffect.cpp
121121
Src/DGSLEffect.cpp
122+
Src/NPREffect.cpp
122123
Src/DGSLEffectFactory.cpp
123124
Src/DirectXHelpers.cpp
124125
Src/DualPostProcess.cpp
@@ -150,6 +151,7 @@ set(SHADER_SOURCES
150151
Src/Shaders/AlphaTestEffect.fx
151152
Src/Shaders/BasicEffect.fx
152153
Src/Shaders/DebugEffect.fx
154+
Src/Shaders/NPREffect.fx
153155
Src/Shaders/DGSLEffect.fx
154156
Src/Shaders/DGSLLambert.hlsl
155157
Src/Shaders/DGSLPhong.hlsl

DirectXTK_Desktop_2022.vcxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
<ClCompile Include="Src\CommonStates.cpp" />
7676
<ClCompile Include="Src\DDSTextureLoader.cpp" />
7777
<ClCompile Include="Src\DebugEffect.cpp" />
78+
<ClCompile Include="Src\NPREffect.cpp" />
7879
<ClCompile Include="Src\DGSLEffect.cpp" />
7980
<ClCompile Include="Src\DGSLEffectFactory.cpp" />
8081
<ClCompile Include="Src\DirectXHelpers.cpp" />
@@ -179,6 +180,9 @@
179180
<None Include="Src\Shaders\DebugEffect.fx">
180181
<FileType>Document</FileType>
181182
</None>
183+
<None Include="Src\Shaders\NPREffect.fx">
184+
<FileType>Document</FileType>
185+
</None>
182186
</ItemGroup>
183187
<PropertyGroup Label="Globals">
184188
<ProjectGuid>{E0B52AE7-E160-4D32-BF3F-910B785E5A8E}</ProjectGuid>

DirectXTK_Desktop_2022.vcxproj.filters

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,9 @@
248248
<ClCompile Include="Src\DebugEffect.cpp">
249249
<Filter>Src</Filter>
250250
</ClCompile>
251+
<ClCompile Include="Src\NPREffect.cpp">
252+
<Filter>Src</Filter>
253+
</ClCompile>
251254
<ClCompile Include="Src\PBREffectFactory.cpp">
252255
<Filter>Src</Filter>
253256
</ClCompile>
@@ -352,6 +355,9 @@
352355
<None Include="Src\Shaders\DebugEffect.fx">
353356
<Filter>Src\Shaders</Filter>
354357
</None>
358+
<None Include="Src\Shaders\NPREffect.fx">
359+
<Filter>Src\Shaders</Filter>
360+
</None>
355361
<None Include="Src\Shaders\PixelPacking_Velocity.hlsli">
356362
<Filter>Src\Shaders\Shared</Filter>
357363
</None>

DirectXTK_Desktop_2022_Win10.vcxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
<ClCompile Include="Src\CommonStates.cpp" />
8484
<ClCompile Include="Src\DDSTextureLoader.cpp" />
8585
<ClCompile Include="Src\DebugEffect.cpp" />
86+
<ClCompile Include="Src\NPREffect.cpp" />
8687
<ClCompile Include="Src\DGSLEffect.cpp" />
8788
<ClCompile Include="Src\DGSLEffectFactory.cpp" />
8889
<ClCompile Include="Src\DirectXHelpers.cpp" />
@@ -189,6 +190,9 @@
189190
<None Include="Src\Shaders\DebugEffect.fx">
190191
<FileType>Document</FileType>
191192
</None>
193+
<None Include="Src\Shaders\NPREffect.fx">
194+
<FileType>Document</FileType>
195+
</None>
192196
</ItemGroup>
193197
<PropertyGroup Label="Globals">
194198
<ProjectGuid>{E0B52AE7-E160-4D32-BF3F-910B785E5A8E}</ProjectGuid>

DirectXTK_Desktop_2022_Win10.vcxproj.filters

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,9 @@
272272
<ClCompile Include="Src\DebugEffect.cpp">
273273
<Filter>Src</Filter>
274274
</ClCompile>
275+
<ClCompile Include="Src\NPREffect.cpp">
276+
<Filter>Src</Filter>
277+
</ClCompile>
275278
<ClCompile Include="Src\PBREffectFactory.cpp">
276279
<Filter>Src</Filter>
277280
</ClCompile>
@@ -352,6 +355,9 @@
352355
<None Include="Src\Shaders\DebugEffect.fx">
353356
<Filter>Src\Shaders</Filter>
354357
</None>
358+
<None Include="Src\Shaders\NPREffect.fx">
359+
<Filter>Src\Shaders</Filter>
360+
</None>
355361
<None Include="Src\Shaders\PixelPacking_Velocity.hlsli">
356362
<Filter>Src\Shaders\Shared</Filter>
357363
</None>

DirectXTK_Desktop_2026.vcxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
<ClCompile Include="Src\CommonStates.cpp" />
8484
<ClCompile Include="Src\DDSTextureLoader.cpp" />
8585
<ClCompile Include="Src\DebugEffect.cpp" />
86+
<ClCompile Include="Src\NPREffect.cpp" />
8687
<ClCompile Include="Src\DGSLEffect.cpp" />
8788
<ClCompile Include="Src\DGSLEffectFactory.cpp" />
8889
<ClCompile Include="Src\DirectXHelpers.cpp" />
@@ -189,6 +190,9 @@
189190
<None Include="Src\Shaders\DebugEffect.fx">
190191
<FileType>Document</FileType>
191192
</None>
193+
<None Include="Src\Shaders\NPREffect.fx">
194+
<FileType>Document</FileType>
195+
</None>
192196
</ItemGroup>
193197
<PropertyGroup Label="Globals">
194198
<ProjectGuid>{E0B52AE7-E160-4D32-BF3F-910B785E5A8E}</ProjectGuid>

DirectXTK_Desktop_2026.vcxproj.filters

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,9 @@
272272
<ClCompile Include="Src\DebugEffect.cpp">
273273
<Filter>Src</Filter>
274274
</ClCompile>
275+
<ClCompile Include="Src\NPREffect.cpp">
276+
<Filter>Src</Filter>
277+
</ClCompile>
275278
<ClCompile Include="Src\PBREffectFactory.cpp">
276279
<Filter>Src</Filter>
277280
</ClCompile>
@@ -352,6 +355,9 @@
352355
<None Include="Src\Shaders\DebugEffect.fx">
353356
<Filter>Src\Shaders</Filter>
354357
</None>
358+
<None Include="Src\Shaders\NPREffect.fx">
359+
<Filter>Src\Shaders</Filter>
360+
</None>
355361
<None Include="Src\Shaders\PixelPacking_Velocity.hlsli">
356362
<Filter>Src\Shaders\Shared</Filter>
357363
</None>

DirectXTK_GDKW_2022.vcxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@
403403
<ClCompile Include="Src\CommonStates.cpp" />
404404
<ClCompile Include="Src\DDSTextureLoader.cpp" />
405405
<ClCompile Include="Src\DebugEffect.cpp" />
406+
<ClCompile Include="Src\NPREffect.cpp" />
406407
<ClCompile Include="Src\DGSLEffect.cpp" />
407408
<ClCompile Include="Src\DGSLEffectFactory.cpp" />
408409
<ClCompile Include="Src\DirectXHelpers.cpp" />
@@ -469,6 +470,7 @@
469470
<None Include="Src\Shaders\ToneMap.fx" />
470471
<None Include="Src\Shaders\PBREffect.fx" />
471472
<None Include="Src\Shaders\DebugEffect.fx" />
473+
<None Include="Src\Shaders\NPREffect.fx" />
472474
</ItemGroup>
473475
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
474476
<ImportGroup Label="ExtensionTargets" />

DirectXTK_GDKW_2022.vcxproj.filters

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,9 @@
274274
<ClCompile Include="Src\DebugEffect.cpp">
275275
<Filter>Src</Filter>
276276
</ClCompile>
277+
<ClCompile Include="Src\NPREffect.cpp">
278+
<Filter>Src</Filter>
279+
</ClCompile>
277280
<ClCompile Include="Src\PBREffectFactory.cpp">
278281
<Filter>Src</Filter>
279282
</ClCompile>
@@ -354,6 +357,9 @@
354357
<None Include="Src\Shaders\DebugEffect.fx">
355358
<Filter>Src\Shaders</Filter>
356359
</None>
360+
<None Include="Src\Shaders\NPREffect.fx">
361+
<Filter>Src\Shaders</Filter>
362+
</None>
357363
<None Include="Src\Shaders\PixelPacking_Velocity.hlsli">
358364
<Filter>Src\Shaders\Shared</Filter>
359365
</None>

0 commit comments

Comments
 (0)