shaders/sampling: generalize PL_SHADER_SIG_SAMPLER2D
This allows us to accept sampler types other than sampler2D. In principle, any sampler type is supported, but due to shaders/sampling being the only user of this API, we can restrict ourselves to only 2D samplers in the implementation. Notably, though, we also support e.g. PL_SAMPLER_RECT.
Showing
- meson.build 1 addition, 1 deletionmeson.build
- src/include/libplacebo/shaders.h 2 additions, 1 deletionsrc/include/libplacebo/shaders.h
- src/include/libplacebo/shaders/sampling.h 6 additions, 4 deletionssrc/include/libplacebo/shaders/sampling.h
- src/shaders.c 25 additions, 5 deletionssrc/shaders.c
- src/shaders.h 2 additions, 0 deletionssrc/shaders.h
- src/shaders/sampling.c 33 additions, 12 deletionssrc/shaders/sampling.c
- src/tests/dummy.c 6 additions, 2 deletionssrc/tests/dummy.c
Loading
Please register or sign in to comment