2022-09-26 15:12:13 -04:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
|
2022-10-01 02:04:57 -04:00
|
|
|
#include "MuT/NodeMeshFormat.h"
|
2022-10-02 10:56:02 -04:00
|
|
|
|
|
|
|
|
#include "Misc/AssertionMacros.h"
|
|
|
|
|
#include "MuT/NodeLayout.h"
|
2022-10-01 02:04:57 -04:00
|
|
|
#include "MuT/NodeMeshFormatPrivate.h"
|
2022-10-02 10:56:02 -04:00
|
|
|
#include "MuT/NodeMeshPrivate.h"
|
|
|
|
|
#include "MuT/NodePrivate.h"
|
2022-09-26 15:12:13 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace mu
|
|
|
|
|
{
|
2022-10-02 10:56:02 -04:00
|
|
|
class FMeshBufferSet;
|
2022-09-26 15:12:13 -04:00
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
|
|
|
// Static initialisation
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
2024-06-10 04:10:54 -04:00
|
|
|
FNodeType NodeMeshFormat::Private::s_type = FNodeType(Node::EType::MeshFormat, NodeMesh::GetStaticType() );
|
2022-09-26 15:12:13 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
|
|
|
//!
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
|
|
|
|
2024-06-10 04:10:54 -04:00
|
|
|
MUTABLE_IMPLEMENT_NODE( NodeMeshFormat )
|
2022-09-26 15:12:13 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
|
|
|
// Own Interface
|
|
|
|
|
//---------------------------------------------------------------------------------------------
|
|
|
|
|
NodeMeshPtr NodeMeshFormat::GetSource() const
|
|
|
|
|
{
|
2024-04-03 05:35:18 -04:00
|
|
|
return m_pD->Source;
|
2022-09-26 15:12:13 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void NodeMeshFormat::SetSource( NodeMesh* pValue )
|
|
|
|
|
{
|
2024-04-03 05:35:18 -04:00
|
|
|
m_pD->Source = pValue;
|
2022-09-26 15:12:13 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FMeshBufferSet& NodeMeshFormat::GetVertexBuffers()
|
|
|
|
|
{
|
2024-04-03 05:35:18 -04:00
|
|
|
return m_pD->VertexBuffers;
|
2022-09-26 15:12:13 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FMeshBufferSet& NodeMeshFormat::GetIndexBuffers()
|
|
|
|
|
{
|
2024-04-03 05:35:18 -04:00
|
|
|
return m_pD->IndexBuffers;
|
2022-09-26 15:12:13 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2024-04-03 05:35:18 -04:00
|
|
|
void NodeMeshFormat::SetOptimizeBuffers(bool bEnable)
|
|
|
|
|
{
|
|
|
|
|
m_pD->bOptimizeBuffers = bEnable;
|
2022-09-26 15:12:13 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|