39 Q_DECLARE_FLAGS(Flags,
Flag)
62 struct InputAssemblerState
72 MaxTargetSemantic = ColorSemantic,
75 TexCoordLightmapSemantic
78 QRhiVertexInputLayout inputLayout;
79 QVarLengthArray<InputSemantic, 8> inputs;
80 QRhiGraphicsPipeline::Topology topology;
81 std::array<quint8, MaxTargetSemantic + 1> targetOffsets = { UINT8_MAX, UINT8_MAX, UINT8_MAX, UINT8_MAX,
82 UINT8_MAX, UINT8_MAX, UINT8_MAX };
83 quint8 targetCount = 0;
87 const QSSGRhiShaderPipeline *shaderPipeline =
nullptr;
102 Q_DISABLE_COPY(QSSGRhiContext)
104 explicit QSSGRhiContext(QRhi *rhi);
118 QRhiTexture *
dummyTexture(QRhiTexture::Flags flags, QRhiResourceUpdateBatch *rub,
119 const QSize &size = QSize(64, 64),
const QColor &fillColor =
Qt::
black,
125 Q_DECLARE_PRIVATE(QSSGRhiContext)
126 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