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
VulkanServerBuffer Class Reference

#include <vulkanserverbufferintegration.h>

+ Inheritance diagram for VulkanServerBuffer:
+ Collaboration diagram for VulkanServerBuffer:

Public Member Functions

 VulkanServerBuffer (VulkanServerBufferIntegration *integration, const QImage &qimage, QtWayland::ServerBuffer::Format format)
 
 VulkanServerBuffer (VulkanServerBufferIntegration *integration, VulkanImageWrapper *vImage, uint glInternalFormat, const QSize &size)
 
 ~VulkanServerBuffer () override
 
struct::wl_resource * resourceForClient (struct ::wl_client *) override
 
bool bufferInUse () override
 
QOpenGLTexturetoOpenGlTexture () override
 
void releaseOpenGlTexture () override
 
- Public Member Functions inherited from QtWayland::ServerBuffer
 ServerBuffer (const QSize &size, ServerBuffer::Format format)
 
virtual ~ServerBuffer ()
 
virtual bool isYInverted () const
 
QSize size () const
 
Format format () const
 

Protected Member Functions

void server_buffer_release (Resource *resource) override
 

Additional Inherited Members

- Public Types inherited from QtWayland::ServerBuffer
enum  Format { RGBA32 , A8 , Custom }
 
- Protected Attributes inherited from QtWayland::ServerBuffer
QSize m_size
 
Format m_format
 

Detailed Description

Definition at line 25 of file vulkanserverbufferintegration.h.

Constructor & Destructor Documentation

◆ VulkanServerBuffer() [1/2]

VulkanServerBuffer::VulkanServerBuffer ( VulkanServerBufferIntegration * integration,
const QImage & qimage,
QtWayland::ServerBuffer::Format format )

Definition at line 109 of file vulkanserverbufferintegration.cpp.

References QtWayland::ServerBuffer::format(), GL_RGBA8, QtWayland::ServerBuffer::m_format, qWarning, QtWayland::ServerBuffer::RGBA32, and VulkanServerBufferIntegration::vulkanWrapper().

+ Here is the call graph for this function:

◆ VulkanServerBuffer() [2/2]

VulkanServerBuffer::VulkanServerBuffer ( VulkanServerBufferIntegration * integration,
VulkanImageWrapper * vImage,
uint glInternalFormat,
const QSize & size )

Definition at line 135 of file vulkanserverbufferintegration.cpp.

References VulkanServerBufferIntegration::vulkanWrapper().

+ Here is the call graph for this function:

◆ ~VulkanServerBuffer()

VulkanServerBuffer::~VulkanServerBuffer ( )
override

Definition at line 147 of file vulkanserverbufferintegration.cpp.

References VulkanWrapper::freeTextureImage(), and VulkanServerBufferIntegration::vulkanWrapper().

+ Here is the call graph for this function:

Member Function Documentation

◆ bufferInUse()

bool VulkanServerBuffer::bufferInUse ( )
overridevirtual

Reimplemented from QtWayland::ServerBuffer.

Definition at line 223 of file vulkanserverbufferintegration.cpp.

References QOpenGLTexture::isCreated().

+ Here is the call graph for this function:

◆ releaseOpenGlTexture()

void VulkanServerBuffer::releaseOpenGlTexture ( )
overridevirtual

Reimplemented from QtWayland::ServerBuffer.

Definition at line 212 of file vulkanserverbufferintegration.cpp.

References QOpenGLTexture::destroy(), funcs, and QOpenGLTexture::isCreated().

+ Here is the call graph for this function:

◆ resourceForClient()

struct::wl_resource * VulkanServerBuffer::resourceForClient ( struct ::wl_client * client)
overridevirtual

Implements QtWayland::ServerBuffer.

Definition at line 154 of file vulkanserverbufferintegration.cpp.

References add(), and qWarning.

+ Here is the call graph for this function:

◆ server_buffer_release()

void VulkanServerBuffer::server_buffer_release ( Resource * resource)
overrideprotected

Definition at line 228 of file vulkanserverbufferintegration.cpp.

References qCDebug.

◆ toOpenGlTexture()

QOpenGLTexture * VulkanServerBuffer::toOpenGlTexture ( )
overridevirtual

The documentation for this class was generated from the following files: