Commit 2764ee1c authored by Laszlo Agocs's avatar Laszlo Agocs

Add layout compatibility query for srbs

Plus some doc cleanups.
parent 1540f4f7
This diff is collapsed.
......@@ -302,6 +302,8 @@ public:
~QRhiShaderResourceBinding();
void detach();
bool isLayoutCompatible(const QRhiShaderResourceBinding &other) const;
static QRhiShaderResourceBinding uniformBuffer(int binding, StageFlags stage, QRhiBuffer *buf);
static QRhiShaderResourceBinding uniformBuffer(int binding, StageFlags stage, QRhiBuffer *buf, int offset, int size);
static QRhiShaderResourceBinding sampledTexture(int binding, StageFlags stage, QRhiTexture *tex, QRhiSampler *sampler);
......@@ -818,6 +820,8 @@ public:
QVector<QRhiShaderResourceBinding> bindings() const { return m_bindings; }
void setBindings(const QVector<QRhiShaderResourceBinding> &b) { m_bindings = b; }
bool isLayoutCompatible(const QRhiShaderResourceBindings *other) const;
virtual bool build() = 0;
protected:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment