Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qrhi_p.h File Reference
#include <rhi/qrhi.h>
#include <QBitArray>
#include <QAtomicInt>
#include <QElapsedTimer>
#include <QLoggingCategory>
#include <QtCore/qset.h>
#include <QtCore/qvarlengtharray.h>
+ Include dependency graph for qrhi_p.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  QRhiImplementation
 
struct  QRhiBufferDataPrivate
 
class  QRhiBufferData
 
class  QRhiResourceUpdateBatchPrivate
 
struct  QRhiResourceUpdateBatchPrivate::BufferOp
 
struct  QRhiResourceUpdateBatchPrivate::TextureOp
 
struct  QRhiBatchedBindings< T >
 
struct  QRhiBatchedBindings< T >::Batch
 
class  QRhiGlobalObjectIdGenerator
 
class  QRhiPassResourceTracker
 
struct  QRhiPassResourceTracker::UsageState
 
struct  QRhiPassResourceTracker::Buffer
 
struct  QRhiPassResourceTracker::Texture
 
class  QRhiBackendCommandList< T, GROW >
 
struct  QRhiRenderTargetAttachmentTracker
 
struct  QRhiRenderTargetAttachmentTracker::ResId
 

Macros

#define QRHI_RES(t, x)   static_cast<t *>(x)
 
#define QRHI_RES_RHI(t)   t *rhiD = static_cast<t *>(m_rhi)
 

Enumerations

enum  QRhiTargetRectBoundMode { UnBounded , Bounded }
 

Functions

template<QRhiTargetRectBoundMode boundingMode, typename T , size_t N>
bool qrhi_toTopLeftRenderTargetRect (const QSize &outputSize, const std::array< T, N > &r, T *x, T *y, T *w, T *h)
 
 Q_DECLARE_TYPEINFO (QRhiBufferData, Q_RELOCATABLE_TYPE)
 
 Q_DECLARE_TYPEINFO (QRhiPassResourceTracker::Buffer, Q_RELOCATABLE_TYPE)
 
 Q_DECLARE_TYPEINFO (QRhiPassResourceTracker::Texture, Q_RELOCATABLE_TYPE)
 
bool operator== (const QRhiRenderTargetAttachmentTracker::ResId &a, const QRhiRenderTargetAttachmentTracker::ResId &b)
 
bool operator!= (const QRhiRenderTargetAttachmentTracker::ResId &a, const QRhiRenderTargetAttachmentTracker::ResId &b)
 
template<typename T >
T * qrhi_objectFromProxyData (QRhiSwapChainProxyData *pd, QWindow *window, QRhi::Implementation impl, uint objectIndex)
 

Macro Definition Documentation

◆ QRHI_RES

#define QRHI_RES (   t,
  x 
)    static_cast<t *>(x)

Definition at line 28 of file qrhi_p.h.

◆ QRHI_RES_RHI

#define QRHI_RES_RHI (   t)    t *rhiD = static_cast<t *>(m_rhi)

Definition at line 29 of file qrhi_p.h.

Enumeration Type Documentation

◆ QRhiTargetRectBoundMode

Enumerator
UnBounded 
Bounded 

Definition at line 249 of file qrhi_p.h.

Function Documentation

◆ operator!=()

bool operator!= ( const QRhiRenderTargetAttachmentTracker::ResId a,
const QRhiRenderTargetAttachmentTracker::ResId b 
)
inline

Definition at line 735 of file qrhi_p.h.

◆ operator==()

bool operator== ( const QRhiRenderTargetAttachmentTracker::ResId a,
const QRhiRenderTargetAttachmentTracker::ResId b 
)
inline

Definition at line 730 of file qrhi_p.h.

◆ Q_DECLARE_TYPEINFO() [1/3]

Q_DECLARE_TYPEINFO ( QRhiBufferData  ,
Q_RELOCATABLE_TYPE   
)

◆ Q_DECLARE_TYPEINFO() [2/3]

Q_DECLARE_TYPEINFO ( QRhiPassResourceTracker::Buffer  ,
Q_RELOCATABLE_TYPE   
)

◆ Q_DECLARE_TYPEINFO() [3/3]

Q_DECLARE_TYPEINFO ( QRhiPassResourceTracker::Texture  ,
Q_RELOCATABLE_TYPE   
)

◆ qrhi_objectFromProxyData()

template<typename T >
T * qrhi_objectFromProxyData ( QRhiSwapChainProxyData pd,
QWindow window,
QRhi::Implementation  impl,
uint  objectIndex 
)
inline

Definition at line 795 of file qrhi_p.h.

References Q_ASSERT, QRhiSwapChainProxyData::reserved, QRhi::updateSwapChainProxyData(), and window().

+ Here is the call graph for this function:

◆ qrhi_toTopLeftRenderTargetRect()

template<QRhiTargetRectBoundMode boundingMode, typename T , size_t N>
bool qrhi_toTopLeftRenderTargetRect ( const QSize outputSize,
const std::array< T, N > &  r,
T *  x,
T *  y,
T *  w,
T *  h 
)

Definition at line 256 of file qrhi_p.h.

References Bounded, QSize::height(), and QSize::width().

+ Here is the call graph for this function: