renderer: merge pl_image and pl_render_target into pl_frame
This is motivated by these two structs, essentially, having conglomerated into unity. Drop the deprecated fields from each and just go ahead with the big search & replace. This also allows us to unify a couple of helper functions, quite pleasingly. The only really annoying thing is that `target.av1_grain` makes zero sense, but whatever. We also provide a new helper function to bridge the "functionality gap" in the `pl_render_target_partial` / `pl_tex_clear` checks. An attempt was made to preserve backwards compatibility, for what it's worth.
parent
19068f4b
This commit is part of merge request !124. Comments created here will be created in the context of that merge request.
Showing
- demos/plplay.c 5 additions, 6 deletionsdemos/plplay.c
- demos/sdl2.c 7 additions, 7 deletionsdemos/sdl2.c
- meson.build 1 addition, 1 deletionmeson.build
- src/include/libplacebo/renderer.h 76 additions, 160 deletionssrc/include/libplacebo/renderer.h
- src/include/libplacebo/shaders/custom.h 3 additions, 3 deletionssrc/include/libplacebo/shaders/custom.h
- src/include/libplacebo/utils/libav.h 9 additions, 18 deletionssrc/include/libplacebo/utils/libav.h
- src/include/libplacebo/utils/libav_internal.h 50 additions, 122 deletionssrc/include/libplacebo/utils/libav_internal.h
- src/include/libplacebo/utils/upload.h 1 addition, 1 deletionsrc/include/libplacebo/utils/upload.h
- src/renderer.c 127 additions, 156 deletionssrc/renderer.c
- src/tests/gpu_tests.h 7 additions, 8 deletionssrc/tests/gpu_tests.h
- src/tests/libav.c 4 additions, 9 deletionssrc/tests/libav.c
- src/tests/opengl_surfaceless.c 2 additions, 2 deletionssrc/tests/opengl_surfaceless.c
- src/tests/vulkan.c 2 additions, 2 deletionssrc/tests/vulkan.c
Loading
Please register or sign in to comment