8#include <Common/primitive_type.h>
30 std::string m_visualizerName;
31 std::string m_observerName;
32 std::string m_sampleSourceName;
38 ClassType clazz(
"single-frame-render-session");
39 clazz.docName(
"Single Frame Render Session");
40 clazz.description(
"Information regarding the rendering process of a single frame.");
44 frameSizePx.description(
"Width and height of the frame in pixels.");
45 frameSizePx.defaultTo({960, 540});
46 clazz.addField(frameSizePx);
49 visualizerName.
description(
"Name of the visualizer resource to use.");
51 clazz.addField(visualizerName);
54 observerName.
description(
"Name of the observer resource to use.");
56 clazz.addField(observerName);
59 sampleSourceName.
description(
"Name of the sample source resource to use.");
61 clazz.addField(sampleSourceName);
64 topLevelAcceleratorType.
description(
"Acceleration structure used on the top level geometries.");
67 clazz.addField(topLevelAcceleratorType);
77 return m_visualizerName;
82 return m_observerName;
87 return m_sampleSourceName;
92 m_topLevelAcceleratorType = accelerator;
97 return m_topLevelAcceleratorType;
Definition CoreCookingContext.h:15
Definition RenderSession.h:20
Data that describe a scene. Represents the result of running SDL commands.
Definition SceneDescription.h:14
Definition SingleFrameRenderSession.h:16
std::vector< std::shared_ptr< CoreSdlResource > > gatherResources(const SceneDescription &scene) const override
Gather resources for this render session.
Definition SingleFrameRenderSession.cpp:32
PH_DEFINE_SDL_CLASS(TSdlOwnerClass< SingleFrameRenderSession >)
Definition SingleFrameRenderSession.h:36
const std::string & getVisualizerName() const
Definition SingleFrameRenderSession.h:75
EAccelerator getTopLevelAcceleratorType() const
Definition SingleFrameRenderSession.h:95
void applyToContext(CoreCookingContext &ctx) const override
Apply settings to the context.
Definition SingleFrameRenderSession.cpp:15
void setTopLevelAcceleratorType(EAccelerator accelerator)
Definition SingleFrameRenderSession.h:90
const std::string & getSampleSourceName() const
Definition SingleFrameRenderSession.h:85
const std::string & getObserverName() const
Definition SingleFrameRenderSession.h:80
Definition TSdlEnumField.h:23
SDL binding type for a canonical SDL resource class.
Definition TSdlOwnerClass.h:23
Definition TSdlString.h:14
TSdlValue & description(std::string descriptionStr)
Definition TSdlValue.ipp:95
TSdlValue & optional()
Definition TSdlValue.ipp:103
TSdlValue & defaultTo(T defaultValue)
Definition TSdlValue.ipp:71
Definition TSdlVector2.h:20
Represents a 2-D vector.
Definition TVector2.h:19
The root for all renderer implementations.
Definition EEngineProject.h:6
EAccelerator
Definition EAccelerator.h:7