Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples: DirectX12: Allow x32-bit compilation #2406

Closed
wants to merge 1 commit into from
Closed

Examples: DirectX12: Allow x32-bit compilation #2406

wants to merge 1 commit into from

Conversation

giladreich
Copy link
Contributor

Hey Omar :)
As discussed in #301 and #1641, I though it would be good idea to add this solution for now(possibly to change later), so the people that'll use the examples, will know how to compile it under x32 architecture without having to do extra research about it.
tbh, I also find this solution quiet friendly and simple for consumers to use.

@ocornut
Copy link
Owner

ocornut commented Mar 7, 2019

This solution is unfortunately invalid, as it would create a different layout for the structure containing ImTextureId depending on the compilation unit.

This is why we usually require them to be in imconfig.h.

@giladreich
Copy link
Contributor Author

Oh...Sorry about it! Haven't looked into imconfig.h yet. I'll have a look soon and see if something comes in mind.
Do you have direction of solving this though? I mean, as far as I saw, the last discussion about this problem was about a year ago, but is there any kind of mindset direction to solve this issue that I'm not aware of? Thanks! :)

@giladreich giladreich closed this Apr 5, 2019
@ocornut ocornut reopened this Apr 5, 2019
@ocornut
Copy link
Owner

ocornut commented Apr 5, 2019

I'll re-open because even if the PR is not correct in-context, the underlying problem is.
I don't have a solution yet but haven't devoted much time to the problem, sorry.

@ocornut ocornut added the dx12 label Jul 29, 2019
ras0219-msft pushed a commit to microsoft/vcpkg that referenced this pull request Jul 15, 2020
* [imgui] Split bindings to multiple features

See #12250.

I tested all the features on x86-windows, x64-windows, x64-windows-static and x64-linux triplets. Everything build fine except:
- dx12-binding on x86-windows. There's an issue opened about it here : ocornut/imgui#2406
- allegro5-binding on x64-linux, because the current allegro5 port fails to build on this platform.

Contrary to the previous port which simply copied the sources to a specific folder, bindings are now compiled with their dependencies. The only exception is Marmelade, because there's no port available for it yet.

Unfortunately, I can't test the OSX and metal bindings. If someone using this platform could test it, it would be very much appreciated. :)

* [imgui] Move port files to the correct folder

* Update ports/imgui/CONTROL

Co-authored-by: Rémy Tassoux <rt2@rasterizedworld.com>
Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
@ocornut
Copy link
Owner

ocornut commented Oct 20, 2020

Apologies @giladreich, I implemented essentially the same thing in d8d58b0 last month and forgot about this pull request. At least it's done now :)

@ocornut ocornut closed this Oct 20, 2020
@giladreich
Copy link
Contributor Author

Hi @ocornut, thanks a lot for the update and I'm glad that it's now part of the master branch! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants