37 Q_DECLARE_FLAGS(Flags,
Flag)
59 struct InputAssemblerState
69 MaxTargetSemantic = ColorSemantic,
72 TexCoordLightmapSemantic
75 QRhiVertexInputLayout inputLayout;
76 QVarLengthArray<InputSemantic, 8> inputs;
77 QRhiGraphicsPipeline::Topology topology;
78 std::array<quint8, MaxTargetSemantic + 1> targetOffsets = { UINT8_MAX, UINT8_MAX, UINT8_MAX, UINT8_MAX,
79 UINT8_MAX, UINT8_MAX, UINT8_MAX };
80 quint8 targetCount = 0;
84 const QSSGRhiShaderPipeline *shaderPipeline =
nullptr;
99 Q_DISABLE_COPY(QSSGRhiContext)
101 explicit QSSGRhiContext(QRhi *rhi);
115 QRhiTexture *
dummyTexture(QRhiTexture::Flags flags, QRhiResourceUpdateBatch *rub,
116 const QSize &size = QSize(64, 64),
const QColor &fillColor =
Qt::
black,
122 Q_DECLARE_PRIVATE(QSSGRhiContext)
123 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