Hi

I’m porting a project from Qt5/OpenGL SceneGraph code to new Qt6/RHI

I have a custom item with a scene graph which creates a custom shader and a 
custom texture from some application data (not an image).

In Qt5, I have Texture class derived from QSGTexture which create the 
underlying OpenGL buffers for the textures and handles to data, binding, etc.

In Qt6, the same classes exists but the custom Texture class needs to create 
RHI based texture objects, with the appropriate format, copy the data into it, 
etc.
But I have not been able to find some relevant code to do that. All the code I 
found in QtDeclarative itself either use
QQuickWindow::createTextureFromImage() or a QSGTextureProvider.

There some example which create custom RHI textures, but not in the context of 
the scene graph (using RHI directly in QQuickRHIItem for example).

Any ideas how this can be done?

Thanks,
Mike

—
Mike Krus | mike.k...@kdab.com | Senior Software Engineer & Teamlead
KDAB (UK) Ltd., a KDAB Group company
Tel: UK Office +44 1625 809908   Mobile +44 7833 491941
KDAB - Trusted Software Excellence

_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to