diff options
Diffstat (limited to 'src/gui/rhi/qrhi_p.h')
-rw-r--r-- | src/gui/rhi/qrhi_p.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/rhi/qrhi_p.h b/src/gui/rhi/qrhi_p.h index 977b68cd8e..6a141d13e1 100644 --- a/src/gui/rhi/qrhi_p.h +++ b/src/gui/rhi/qrhi_p.h @@ -212,7 +212,7 @@ public: }; QRhiVertexInputAttribute() = default; - QRhiVertexInputAttribute(int binding, int location, Format format, quint32 offset); + QRhiVertexInputAttribute(int binding, int location, Format format, quint32 offset, int matrixSlice = -1); int binding() const { return m_binding; } void setBinding(int b) { m_binding = b; } @@ -226,11 +226,15 @@ public: quint32 offset() const { return m_offset; } void setOffset(quint32 ofs) { m_offset = ofs; } + int matrixSlice() const { return m_matrixSlice; } + void setMatrixSlice(int slice) { m_matrixSlice = slice; } + private: int m_binding = 0; int m_location = 0; Format m_format = Float4; quint32 m_offset = 0; + int m_matrixSlice = -1; }; Q_DECLARE_TYPEINFO(QRhiVertexInputAttribute, Q_MOVABLE_TYPE); |