summaryrefslogtreecommitdiffstats
path: root/src/plugins/renderers/rhi/renderer/rhigraphicspipeline_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/renderers/rhi/renderer/rhigraphicspipeline_p.h')
-rw-r--r--src/plugins/renderers/rhi/renderer/rhigraphicspipeline_p.h22
1 files changed, 15 insertions, 7 deletions
diff --git a/src/plugins/renderers/rhi/renderer/rhigraphicspipeline_p.h b/src/plugins/renderers/rhi/renderer/rhigraphicspipeline_p.h
index 61f0fd2a8..a13bf50d3 100644
--- a/src/plugins/renderers/rhi/renderer/rhigraphicspipeline_p.h
+++ b/src/plugins/renderers/rhi/renderer/rhigraphicspipeline_p.h
@@ -69,8 +69,8 @@ class RHIGraphicsPipeline
public:
struct UBOBuffer
{
- HRHIBuffer handle{};
- RHIBuffer *buffer{};
+ HRHIBuffer handle {};
+ RHIBuffer *buffer {};
};
RHIGraphicsPipeline();
@@ -80,17 +80,26 @@ public:
QRhiBuffer *renderViewUBO() const { return m_rvUbo; }
QRhiGraphicsPipeline *pipeline() const { return m_pipeline; }
QRhiShaderResourceBindings *shaderResourceBindings() const { return m_shaderResourceBindings; }
- QHash<int, UBOBuffer> ubos() const { return m_ubos; }
+ QHash<int, UBOBuffer> ubos() const { return m_ubos; }
int score() const { return m_score; }
void setPipeline(QRhiGraphicsPipeline *pipeline) { m_pipeline = pipeline; }
void setCommandUBO(QRhiBuffer *commandUBO) { m_cmdUbo = commandUBO; }
void setRenderViewUBO(QRhiBuffer *rvUBO) { m_rvUbo = rvUBO; }
- void setShaderResourceBindings(QRhiShaderResourceBindings *shaderResourceBindings) { m_shaderResourceBindings = shaderResourceBindings; }
+ void setShaderResourceBindings(QRhiShaderResourceBindings *shaderResourceBindings)
+ {
+ m_shaderResourceBindings = shaderResourceBindings;
+ }
void setUBOs(const QHash<int, UBOBuffer> ubos) { m_ubos = ubos; }
- void setAttributesToBindingHash(const QHash<int, int> &attributeNameToBinding) { m_attributeNameIdToBindingIndex = attributeNameToBinding; }
- int bindingIndexForAttribute(int attributeNameId) const { return m_attributeNameIdToBindingIndex.value(attributeNameId, -1); }
+ void setAttributesToBindingHash(const QHash<int, int> &attributeNameToBinding)
+ {
+ m_attributeNameIdToBindingIndex = attributeNameToBinding;
+ }
+ int bindingIndexForAttribute(int attributeNameId) const
+ {
+ return m_attributeNameIdToBindingIndex.value(attributeNameId, -1);
+ }
void increaseScore() { ++m_score; }
void decreaseScore() { --m_score; }
@@ -115,5 +124,4 @@ private:
QT_END_NAMESPACE
-
#endif // QT3DRENDER_RENDER_RHI_RHIGRAPHICSPIPELINE_H