summaryrefslogtreecommitdiffstats
path: root/src/plugins/renderers/rhi/renderer/rhishader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/renderers/rhi/renderer/rhishader.cpp')
-rw-r--r--src/plugins/renderers/rhi/renderer/rhishader.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/plugins/renderers/rhi/renderer/rhishader.cpp b/src/plugins/renderers/rhi/renderer/rhishader.cpp
index 466b1d7aa..7ac40b2b0 100644
--- a/src/plugins/renderers/rhi/renderer/rhishader.cpp
+++ b/src/plugins/renderers/rhi/renderer/rhishader.cpp
@@ -94,25 +94,6 @@ const std::vector<QByteArray> &RHIShader::shaderCode() const
}
namespace {
-static constexpr QRhiVertexInputAttribute::Format
-rhiInputType(QShaderDescription::VariableType type)
-{
- switch (type) {
- case QShaderDescription::Vec4:
- return QRhiVertexInputAttribute::Float4;
- case QShaderDescription::Vec3:
- return QRhiVertexInputAttribute::Float3;
- case QShaderDescription::Vec2:
- return QRhiVertexInputAttribute::Float2;
- case QShaderDescription::Float:
- return QRhiVertexInputAttribute::Float;
- default:
- // TODO UNormByte4, UNormByte2, UNormByte
- RHI_UNIMPLEMENTED;
- return QRhiVertexInputAttribute::UNormByte;
- break;
- }
-}
static constexpr int rhiTypeSize(QShaderDescription::VariableType type)
{