2021-11-14 20:36:53 +01:00
|
|
|
#include "MeshBatch.h"
|
|
|
|
|
#include "GraphicsResources.h"
|
|
|
|
|
#include "VertexShaderInput.h"
|
2023-01-21 18:43:21 +01:00
|
|
|
#include "Material/MaterialInterface.h"
|
2023-02-13 14:56:13 +01:00
|
|
|
#include "Graphics/Graphics.h"
|
2021-11-14 20:36:53 +01:00
|
|
|
|
|
|
|
|
using namespace Seele;
|
|
|
|
|
|
|
|
|
|
MeshBatchElement::MeshBatchElement()
|
2023-01-21 18:43:21 +01:00
|
|
|
: indexBuffer(nullptr)
|
2021-11-14 20:36:53 +01:00
|
|
|
, firstIndex(0)
|
|
|
|
|
, numPrimitives(0)
|
|
|
|
|
, numInstances(1)
|
|
|
|
|
, baseVertexIndex(0)
|
|
|
|
|
, minVertexIndex(0)
|
|
|
|
|
, maxVertexIndex(0)
|
|
|
|
|
, indirectArgsBuffer(nullptr)
|
|
|
|
|
{}
|
|
|
|
|
MeshBatch::MeshBatch()
|
2022-03-26 16:15:50 +01:00
|
|
|
: elements()
|
|
|
|
|
, useReverseCulling(false)
|
2021-11-14 20:36:53 +01:00
|
|
|
, isBackfaceCullingDisabled(false)
|
|
|
|
|
, isCastingShadow(true)
|
|
|
|
|
, useWireframe(false)
|
|
|
|
|
, topology(Gfx::SE_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST)
|
|
|
|
|
, vertexInput(nullptr)
|
|
|
|
|
, material(nullptr)
|
|
|
|
|
{
|
|
|
|
|
}
|