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

Functions missing from QQuickRenderTarget #89

Closed
programmer3481 opened this issue Oct 13, 2022 · 4 comments
Closed

Functions missing from QQuickRenderTarget #89

programmer3481 opened this issue Oct 13, 2022 · 4 comments

Comments

@programmer3481
Copy link

while the fromOpenGL...(...) functions are available, none of the functions for other graphics APIs aren't. (such as fromVulkanImage(...) and fromMetalTexture)
Looking at the qt source headers, it seems like the preprocessor directives like #if QT_CONFIG(vulkan) || defined(Q_CLANG_QDOC) are confusing the generator?

@omix
Copy link
Contributor

omix commented Oct 13, 2022

No, actually, they are rejected in the type system specification:

    <rejection class="QQuickRenderTarget" function-name="fromNativeTexture"/>
    <rejection class="QQuickRenderTarget" function-name="fromRhiRenderTarget"/>
    <rejection class="QQuickRenderTarget" function-name="fromD3D11Texture"/>
    <rejection class="QQuickRenderTarget" function-name="fromMetalTexture"/>
    <rejection class="QQuickRenderTarget" function-name="fromVulkanImage"/>

@programmer3481
Copy link
Author

programmer3481 commented Oct 13, 2022

So is there a specific reason they are rejected? Is vulkan not supported?
Or is it because the argument types are from other libraries (VkImageLayout, MTLTexture...)

@programmer3481
Copy link
Author

After farther reading of the generator: from my understanding the typesystem_quick-common.xml rejects everything referencing rendering apis that are not opengl... Which means they is not supported.

@omix
Copy link
Contributor

omix commented Oct 13, 2022

Yes, up to now. However, since there is a way to access vulkan native interface I will evaluate a way to make these functions available.

omix added a commit that referenced this issue Oct 15, 2022
Bugfix Issue #89
Bugfix Issue #86
Bugfix Issue #85
Bugfix Issue #84
Bugfix Issue #83
Bugfix Issue #79
Bugfix Issue #78
Bugfix Issue #77
Bugfix Issue #75
omix added a commit that referenced this issue Jul 25, 2023
Bugfix Issue #89
Bugfix Issue #86
Bugfix Issue #85
Bugfix Issue #84
Bugfix Issue #83
Bugfix Issue #79
Bugfix Issue #78
Bugfix Issue #77
Bugfix Issue #75
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants