Skip to content

Unable to decompile shaders that write to depth #9

@RaphaelK12

Description

@RaphaelK12

Hello, I'm having errors in the pixel shaders that write depth.

Unhandled exception. System.Collections.Generic.KeyNotFoundException: The given key 'DepthOut0' was not present in the dictionary.
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at HlslDecompiler.Hlsl.RegisterState.GetRegisterName(RegisterKey registerKey) in F:\Dev\HlslDecompiler\Hlsl\Compiler\RegisterState.cs:line 168
   at HlslDecompiler.Hlsl.RegisterState.GetDestinationName(Instruction instruction) in F:\Dev\HlslDecompiler\Hlsl\Compiler\RegisterState.cs:line 48
   at HlslDecompiler.HlslWriter.GetDestinationName(Instruction instruction) in F:\Dev\HlslDecompiler\Hlsl\HlslWriter.cs:line 45
   at HlslDecompiler.HlslSimpleWriter.WriteInstruction(D3D9Instruction instruction) in F:\Dev\HlslDecompiler\Hlsl\HlslSimpleWriter.cs:line 230
   at HlslDecompiler.HlslSimpleWriter.WriteMethodBody() in F:\Dev\HlslDecompiler\Hlsl\HlslSimpleWriter.cs:line 28
   at HlslDecompiler.HlslWriter.Write(String hlslFilename) in F:\Dev\HlslDecompiler\Hlsl\HlslWriter.cs:line 124
   at HlslDecompiler.Program.ReadRgxa(String baseFilename, FileStream inputStream, Boolean doAstAnalysis) in F:\Dev\HlslDecompiler\Program.cs:line 91
   at HlslDecompiler.Program.Main(String[] args) in F:\Dev\HlslDecompiler\Program.cs:line 30

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions