Remove unused method isSparseAccessor

This commit is contained in:
Josiah VanderZee 2024-05-21 12:23:30 -05:00 committed by Lars Mueller
parent b95dcb7e7a
commit 5bd1d052ad
2 changed files with 0 additions and 16 deletions

@ -494,20 +494,6 @@ std::size_t CGLTFMeshFileLoader::MeshExtractor::getByteStride(
return view.byteStride.value_or(accessor.elementSize());
}
/**
* Specifies whether integer data values are normalized (true) to [0, 1] (for unsigned types)
* or to [-1, 1] (for signed types) when they are accessed. This property MUST NOT be set to
* true for accessors with FLOAT or UNSIGNED_INT component type.
* Documentation: https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#_accessor_normalized
* Required: NO
*/
bool CGLTFMeshFileLoader::MeshExtractor::isAccessorNormalized(
const std::size_t accessorIdx) const
{
const auto& accessor = m_gltf_model.accessors->at(accessorIdx);
return accessor.normalized;
}
/**
* Walk through the complex chain of the model to extract the required buffer.
* Accessor -> BufferView -> Buffer

@ -104,8 +104,6 @@ class CGLTFMeshFileLoader : public IMeshLoader
std::size_t getByteStride(const std::size_t accessorIdx) const;
bool isAccessorNormalized(const std::size_t accessorIdx) const;
BufferOffset getBuffer(const std::size_t accessorIdx) const;
std::optional<std::size_t> getIndicesAccessorIdx(const std::size_t meshIdx,