Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
vulkanwrapper.h
Go to the documentation of this file.
1// Copyright (C) 2019 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef VULKANWRAPPER_H
5#define VULKANWRAPPER_H
6
7#include <QOpenGLContext>
8
10
11class VulkanWrapper;
14
15class QOpenGLContext;
16class QImage;
17
19{
20public:
21 VulkanWrapper(QOpenGLContext *glContext);
22
24 VulkanImageWrapper *createTextureImageFromData(const uchar *pixels, uint bufferSize, const QSize &size, uint glInternalFormat);
25 int getImageInfo(const VulkanImageWrapper *imgWrapper, int *memSize, int *w = nullptr, int *h = nullptr);
26 void freeTextureImage(VulkanImageWrapper *imageWrapper);
27
28private:
30};
31
33
34#endif // VULKANWRAPPER_H
\inmodule QtGui
Definition qimage.h:37
\inmodule QtGui
\inmodule QtCore
Definition qsize.h:25
int getImageInfo(const VulkanImageWrapper *imgWrapper, int *memSize, int *w=nullptr, int *h=nullptr)
VulkanWrapper(QOpenGLContext *glContext)
VulkanImageWrapper * createTextureImageFromData(const uchar *pixels, uint bufferSize, const QSize &size, uint glInternalFormat)
void freeTextureImage(VulkanImageWrapper *imageWrapper)
VulkanImageWrapper * createTextureImage(const QImage &img)
Combined button and popup list for selecting options.
GLfloat GLfloat GLfloat w
[0]
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLint GLenum GLsizei GLsizei GLsizei GLint GLenum GLenum const void * pixels
GLfloat GLfloat GLfloat GLfloat h
GLint void * img
Definition qopenglext.h:233
unsigned char uchar
Definition qtypes.h:32
unsigned int uint
Definition qtypes.h:34