JX-Master / LunaSDK

Luna SDK is a C++ software development framework for real-time rendering applications.
Other
124 stars 8 forks source link

Add support for passing samplers along with texture in `ImGui::Image` #72

Closed JX-Master closed 2 months ago

JX-Master commented 2 months ago

The current version of ImGui::Image accepts RHI::ITexture* only, and the sampler mode is forced to Filter::linear and TextureAddressMode::clamp in render code. We need one method to pass the sampler along with texture so that we can sample the texture using different samplers when using ImGui.