Skip to content
Snippets Groups Projects
  • Giovanni Mascellani's avatar
    dd96fe50
    vkd3d-shader: Dump shaders as soon as possible. · dd96fe50
    Giovanni Mascellani authored and Alexandre Julliard's avatar Alexandre Julliard committed
    So that they are dumped even if parsing fails, which is a circumstance
    in which one likely wants to see the problematic shader.
    
    The downside of that is that for shader types other than HLSL
    the profile is not written any more in the filename. This should
    not be a big problem, because in those cases the shader describes
    its own type.
    
    When dumping an HLSL shader, the id is brought in front of the profile
    in the file name, in order to make it more tab-friendly: when dealing
    with a directory full of shaders it's likely that the id determines
    the profile, but the other way around.
    dd96fe50
    History
    vkd3d-shader: Dump shaders as soon as possible.
    Giovanni Mascellani authored and Alexandre Julliard's avatar Alexandre Julliard committed
    So that they are dumped even if parsing fails, which is a circumstance
    in which one likely wants to see the problematic shader.
    
    The downside of that is that for shader types other than HLSL
    the profile is not written any more in the filename. This should
    not be a big problem, because in those cases the shader describes
    its own type.
    
    When dumping an HLSL shader, the id is brought in front of the profile
    in the file name, in order to make it more tab-friendly: when dealing
    with a directory full of shaders it's likely that the id determines
    the profile, but the other way around.