InstanceRenderBatchContext.ixx File
Context payload that groups instance data for one instanced draw batch. More...
Included Headers
#include <vector>
#include "helios-engine-config.h"
#include <helios.math.types>
#include <helios.engine.rendering.shader.types>
#include <helios.engine.rendering.renderTarget.types>
#include <helios.engine.rendering.viewport.types>
#include <helios.engine.rendering.material.types>
#include <helios.engine.rendering.mesh.types>
#include <helios.engine.scene.types.SceneHandle>
#include <helios.engine.rendering.common.types>
#include <helios.ecs.types.EntityHandle>
Namespaces Index
| namespace | helios |
| namespace | engine |
| namespace | scene |
| namespace | types |
Classes Index
| struct | InstanceRenderBatchContext<TMemberHandle> |
|
Aggregates all state required to submit one instanced render batch. More... | |
Description
Context payload that groups instance data for one instanced draw batch.
File Listing
The file content with the documentation metadata removed is:
9#include "helios-engine-config.h"
24using namespace helios::engine::rendering::viewport::types;
25using namespace helios::engine::rendering::renderTarget::types;
26using namespace helios::engine::rendering::mesh::types;
27using namespace helios::engine::rendering::material::types;
28using namespace helios::engine::rendering::shader::types;
29using namespace helios::engine::rendering::common::types;
30using namespace helios::engine::scene;
32export namespace helios::engine::scene::types {
40 struct InstanceRenderBatchContext {
75 std::vector<TMemberHandle> memberHandles;
80 std::vector<InstanceData<TMemberHandle>> instanceData;
95 SceneHandle sceneHdl,
96 MeshHandle meshHdl,
99 ) : renderTargetHandle(renderTargetHdl),
100 viewportHandle(viewportHdl),
101 sceneHandle(sceneHdl),
102 meshHandle(meshHdl),
103 materialHandle(materialHdl),
104 shaderHandle(shaderHdl) {
105 memberHandles.reserve(DEFAULT_INSTANCE_DATA_CAPACITY);
106 instanceData.reserve(DEFAULT_INSTANCE_DATA_CAPACITY);
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.