Expose GPUSamplerState to the python API GPU Module
It appears that there is no way right now to modify the sampler state of a
GPUTexture
using the python api GPU module, a feature previously available using
GLTexParameter
from the opengl module.
I have taken a small look at the source code, and it seems that all that needs to happen is for
-
GPUSamplerStateto be exposed
and either for
-
pygpu_shader_uniform_samplerto accept aGPUSamplerStateobject and callGPU_texture_bind_exinstead ofGPU_texture_bindif one was passed over -
and/or
BPyGPUTextureto expose the ability to set thesampler_statefield
1 Comment
Yes please.