39 Q_DECLARE_FLAGS(Flags,
Flag)
61 struct InputAssemblerState
71 MaxTargetSemantic = ColorSemantic,
74 TexCoordLightmapSemantic
77 QRhiVertexInputLayout inputLayout;
78 QVarLengthArray<InputSemantic, 8> inputs;
79 QRhiGraphicsPipeline::Topology topology;
80 std::array<quint8, MaxTargetSemantic + 1> targetOffsets = { UINT8_MAX, UINT8_MAX, UINT8_MAX, UINT8_MAX,
81 UINT8_MAX, UINT8_MAX, UINT8_MAX };
82 quint8 targetCount = 0;
86 const QSSGRhiShaderPipeline *shaderPipeline =
nullptr;
101 Q_DISABLE_COPY(QSSGRhiContext)
103 explicit QSSGRhiContext(QRhi *rhi);
117 QRhiTexture *
dummyTexture(QRhiTexture::Flags flags, QRhiResourceUpdateBatch *rub,
118 const QSize &size = QSize(64, 64),
const QColor &fillColor =
Qt::
black,
124 Q_DECLARE_PRIVATE(QSSGRhiContext)
125 std::unique_ptr<QSSGRhiContextPrivate> d_ptr;
int mainPassSampleCount() const
Returns the sample count used in the main render pass.
int mainPassViewCount() const
Returns the multiview count used in the main render pass.
QRhiCommandBuffer * commandBuffer() const
QRhiTexture * dummyTexture(QRhiTexture::Flags flags, QRhiResourceUpdateBatch *rub, const QSize &size=QSize(64, 64), const QColor &fillColor=Qt::black, int arraySize=0)
void checkAndAdjustForNPoT(QRhiTexture *texture, QSSGRhiSamplerDescription *samplerDescription)
Adjusts samplerDescription's tiling and filtering modes based on the pixel size of texture.
QRhiCommandBuffer::BeginPassFlags commonPassFlags() const
QRhiSampler * sampler(const QSSGRhiSamplerDescription &samplerDescription)
QRhiRenderTarget * renderTarget() const
QRhiRenderPassDescriptor * mainRenderPassDescriptor() const