Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PIX: Use DebugLoc for filenames instead of file list (microsoft#4077) (…
…microsoft#4083) This fix is for shaders (in particular those for materials from Unreal Engine) that feature #line directives. In the UE case, for example, there is one source file called hlsl.hlsl, with many #line directives pointing to the original HLSL files from which the source was assembled via UE's material system. At the start of shader debugging, all the filenames from DebugLoc are returned from code near here to PIX. Those filenames are the ones from the #line directives. The previous code would iterate over source file names (which in the UE case would be just hlsl.hlsl), and fail to find the filename that PIX is now asking to find the instructions for. Instead, we now gather the filenames from the DebugLoc. Note that the filename comparison is done after the line number comparison for performance's sake.
- Loading branch information