You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to load an icon image with stb_image lib to make a imageButton, but I don't know what to pass to the creation function as texture_id parameter.
I try to use the raw image data returned by stbi_load function but failed, I try to use VkImage, VkImageView and VkDeviceMemory data but all failed.
The original image will be like this:
The result I got is:
I've read the demo file but I still don't understand what to pass.
I've read the imgui_impl_glfw_vulkan file but I got
"// Missing features:
// [ ] User texture binding. Changes of ImTextureID aren't supported by this binding! See #914
"
I'm sorry that i am new to both vulkan and imgui, I would appreciate that if anyone can help me.
The text was updated successfully, but these errors were encountered:
As noted in the comment you noticed under "Missing features", the Vulkan binding doesn't currently support changing textures in the rendering loop so everything is drawn using the imgui font atlas.
It's actually a very rather change, but we couldn't agree on which way/type to use and this issue has been stalled forever because of that.
See #914 for the discussion, you may merge the commit/branch from #914 to get the feature (which uses VkDescriptorSet here), or use whatever type makes more sense in your code base.
Version/Branch of Dear ImGui: v1.60 WIP
I'm trying to load an icon image with stb_image lib to make a imageButton, but I don't know what to pass to the creation function as texture_id parameter.
I try to use the raw image data returned by stbi_load function but failed, I try to use VkImage, VkImageView and VkDeviceMemory data but all failed.
The original image will be like this:
The result I got is:
I've read the demo file but I still don't understand what to pass.
I've read the imgui_impl_glfw_vulkan file but I got
"// Missing features:
// [ ] User texture binding. Changes of ImTextureID aren't supported by this binding! See #914
"
I'm sorry that i am new to both vulkan and imgui, I would appreciate that if anyone can help me.
The text was updated successfully, but these errors were encountered: