Skip to content
Snippets Groups Projects

shaders: add pl_shader_info to replace pl_dispatch_info.shader

Closed Niklas Haas requested to merge sh_res into master
  1. Mar 19, 2023
    • Niklas Haas's avatar
      demos/plplay: refactor pass display · 5daf200a
      Niklas Haas authored
      Make this UI more compact by default, but allow expanding it to provide
      a more detailed view.
      5daf200a
    • Niklas Haas's avatar
      demos/plplay: switch to pl_shader_info · a273f3d5
      Niklas Haas authored
      We can now ref this struct directly instead of needing to manually
      strcpy.
      a273f3d5
    • Niklas Haas's avatar
      shaders: add pl_shader_info to replace pl_dispatch_info.shader · 46b5deb1
      Niklas Haas authored
      The `pl_dispatch_info` had a number of serious shortcomings. One of
      these was the fact that it referenced `pl_shader_res`, which was not
      only preventing me from deprecating/replacing this API internally, but
      more importantly, was clumsy and required users to make manual
      deepcopies of this struct.
      
      Replace it by a new `pl_shader_info`, which is also refcounted, to allow
      users to pass it around more easily.
      
      As an aside, this commit fixes a bug where the `steps` array would
      sometimes contain NULL entries as a consequence of the way the shader
      description was generated.
      46b5deb1
    • Niklas Haas's avatar
      renderer: improve description of frame mixing shader · b74ba288
      Niklas Haas authored
      Since this is based on a fixed maximum we can avoid having to go through
      asprintf here by just using a static table.
      b74ba288
Loading