mirror of
https://github.com/overte-org/overte.git
synced 2025-07-22 17:54:15 +02:00
repack to reduce MeshPartPayload footprint 8 bytes
This commit is contained in:
parent
9631864ae2
commit
1d6f47e3d8
1 changed files with 8 additions and 9 deletions
|
@ -51,18 +51,17 @@ public:
|
||||||
virtual void bindTransform(gpu::Batch& batch, const render::ShapePipeline::LocationsPointer locations, RenderArgs::RenderMode renderMode) const;
|
virtual void bindTransform(gpu::Batch& batch, const render::ShapePipeline::LocationsPointer locations, RenderArgs::RenderMode renderMode) const;
|
||||||
|
|
||||||
// Payload resource cached values
|
// Payload resource cached values
|
||||||
std::shared_ptr<const model::Mesh> _drawMesh;
|
|
||||||
int _partIndex = 0;
|
|
||||||
model::Mesh::Part _drawPart;
|
|
||||||
|
|
||||||
std::shared_ptr<const model::Material> _drawMaterial;
|
|
||||||
|
|
||||||
model::Box _localBound;
|
|
||||||
Transform _drawTransform;
|
Transform _drawTransform;
|
||||||
Transform _transform;
|
Transform _transform;
|
||||||
mutable model::Box _worldBound;
|
int _partIndex = 0;
|
||||||
|
bool _hasColorAttrib { false };
|
||||||
|
|
||||||
bool _hasColorAttrib = false;
|
model::Box _localBound;
|
||||||
|
mutable model::Box _worldBound;
|
||||||
|
std::shared_ptr<const model::Mesh> _drawMesh;
|
||||||
|
|
||||||
|
std::shared_ptr<const model::Material> _drawMaterial;
|
||||||
|
model::Mesh::Part _drawPart;
|
||||||
|
|
||||||
size_t getVerticesCount() const { return _drawMesh ? _drawMesh->getNumVertices() : 0; }
|
size_t getVerticesCount() const { return _drawMesh ? _drawMesh->getNumVertices() : 0; }
|
||||||
size_t getMaterialTextureSize() { return _drawMaterial ? _drawMaterial->getTextureSize() : 0; }
|
size_t getMaterialTextureSize() { return _drawMaterial ? _drawMaterial->getTextureSize() : 0; }
|
||||||
|
|
Loading…
Reference in a new issue