KStocky / ShaderTestFramework

An automation testing framework for testing shader code
MIT License
20 stars 1 forks source link

Use header guards instead of pragma once #46

Closed KStocky closed 2 months ago

KStocky commented 5 months ago

Describe the bug There is currently a bug in PIX that will mean that I can not use Edit-And-Continue. This seems to come from the combination of the following:

  1. pragma once

  2. virtual shader directory mappings

If I was to switch to using header guards in HLSL rather than pragma once, then I would be able to use edit and continue again. I am not aware of a public bug to track this issue in PIX to know when it has been fixed.

To Reproduce Use pragma once and includes that have virtual shader directory mappings together in HLSL.

Expected behavior To be able to use edit and continue

Additional context https://discord.com/channels/590611987420020747/614545184591446027/1202058895149760653 image