![]() |
Qt 6.x
The Qt SDK
|
#include <qrhi_p.h>
Classes | |
struct | Buffer |
struct | Texture |
struct | UsageState |
Public Types | |
enum | BufferStage { BufVertexInputStage , BufVertexStage , BufTCStage , BufTEStage , BufFragmentStage , BufComputeStage , BufGeometryStage } |
enum | BufferAccess { BufVertexInput , BufIndexRead , BufUniformRead , BufStorageLoad , BufStorageStore , BufStorageLoadStore } |
enum | TextureStage { TexVertexStage , TexTCStage , TexTEStage , TexFragmentStage , TexColorOutputStage , TexDepthOutputStage , TexComputeStage , TexGeometryStage } |
enum | TextureAccess { TexSample , TexColorOutput , TexDepthOutput , TexStorageLoad , TexStorageStore , TexStorageLoadStore } |
using | BufferIterator = QHash< QRhiBuffer *, Buffer >::const_iterator |
using | TextureIterator = QHash< QRhiTexture *, Texture >::const_iterator |
Public Member Functions | |
bool | isEmpty () const |
void | reset () |
void | registerBuffer (QRhiBuffer *buf, int slot, BufferAccess *access, BufferStage *stage, const UsageState &state) |
void | registerTexture (QRhiTexture *tex, TextureAccess *access, TextureStage *stage, const UsageState &state) |
BufferIterator | cbeginBuffers () const |
BufferIterator | cendBuffers () const |
TextureIterator | cbeginTextures () const |
TextureIterator | cendTextures () const |
Static Public Member Functions | |
static BufferStage | toPassTrackerBufferStage (QRhiShaderResourceBinding::StageFlags stages) |
static TextureStage | toPassTrackerTextureStage (QRhiShaderResourceBinding::StageFlags stages) |
using QRhiPassResourceTracker::BufferIterator = QHash<QRhiBuffer *, Buffer>::const_iterator |
using QRhiPassResourceTracker::TextureIterator = QHash<QRhiTexture *, Texture>::const_iterator |
|
inline |
Definition at line 662 of file qrhi_p.h.
Referenced by QRhiGles2::executeCommandBuffer(), and QRhiVulkan::recordTransitionPassResources().
|
inline |
Definition at line 672 of file qrhi_p.h.
Referenced by QRhiGles2::executeCommandBuffer(), and QRhiVulkan::recordTransitionPassResources().
|
inline |
Definition at line 663 of file qrhi_p.h.
Referenced by QRhiGles2::executeCommandBuffer(), and QRhiVulkan::recordTransitionPassResources().
|
inline |
Definition at line 673 of file qrhi_p.h.
Referenced by QRhiGles2::executeCommandBuffer(), and QRhiVulkan::recordTransitionPassResources().
bool QRhiPassResourceTracker::isEmpty | ( | ) | const |
Definition at line 10543 of file qrhi.cpp.
Referenced by QRhiVulkan::recordTransitionPassResources().
void QRhiPassResourceTracker::registerBuffer | ( | QRhiBuffer * | buf, |
int | slot, | ||
BufferAccess * | access, | ||
BufferStage * | stage, | ||
const UsageState & | state | ||
) |
Definition at line 10560 of file qrhi.cpp.
References earlierStage(), it, qWarning, and state.
Referenced by QRhiGles2::trackedRegisterBuffer(), and QRhiVulkan::trackedRegisterBuffer().
void QRhiPassResourceTracker::registerTexture | ( | QRhiTexture * | tex, |
TextureAccess * | access, | ||
TextureStage * | stage, | ||
const UsageState & | state | ||
) |
Definition at line 10599 of file qrhi.cpp.
References earlierStage(), isImageLoadStore(), it, QRhiResource::name(), qWarning, state, and TexStorageLoadStore.
Referenced by QRhiGles2::trackedRegisterTexture(), and QRhiVulkan::trackedRegisterTexture().
|
static |
Definition at line 10632 of file qrhi.cpp.
References BufComputeStage, BufFragmentStage, BufGeometryStage, BufTCStage, BufTEStage, BufVertexStage, QRhiShaderResourceBinding::ComputeStage, QRhiShaderResourceBinding::FragmentStage, QRhiShaderResourceBinding::GeometryStage, QRhiShaderResourceBinding::TessellationControlStage, QRhiShaderResourceBinding::TessellationEvaluationStage, and QRhiShaderResourceBinding::VertexStage.
Referenced by QRhiGles2::setShaderResources(), and QRhiVulkan::setShaderResources().
|
static |
Definition at line 10651 of file qrhi.cpp.
References QRhiShaderResourceBinding::ComputeStage, QRhiShaderResourceBinding::FragmentStage, QRhiShaderResourceBinding::GeometryStage, QRhiShaderResourceBinding::TessellationControlStage, QRhiShaderResourceBinding::TessellationEvaluationStage, TexComputeStage, TexFragmentStage, TexGeometryStage, TexTCStage, TexTEStage, TexVertexStage, and QRhiShaderResourceBinding::VertexStage.
Referenced by QRhiGles2::setShaderResources(), and QRhiVulkan::setShaderResources().