载入中...
搜索中...
未找到
EditorMaterialOffscreen.cpp
浏览该文件的文档.
21 auto rendered = previews_->render(offscreen, [&](graphics::Graphics* graphics, graphics::Canvas* canvas) {
MaterialPreviewRenderResult render(const MaterialPreviewRenderRequest &request) override
Renders .
Definition EditorMaterialOffscreen.cpp:5
Definition Graphics.h:125
Result< OffscreenPreviewArtifact > render(const OffscreenPreviewRequest &request, const DrawCallback &draw, int maximumDimension=4096, std::uint64_t maximumPixels=16777216)
Clear, draw and read back one isolated offscreen Canvas.
Definition OffscreenPreview.cpp:45
Diagnostic ruleDiagnostic(eve::DiagnosticCode code, RuleId rule, DiagnosticSeverity severity, std::string message)
Build a common diagnostic carrying an open editing rule identity.
Definition EditingResult.h:25
Definition ActionPreviewController.cpp:6
@ PreconditionViolation
Immutable request passed to a renderer-owned isolated preview scene.
Definition EditorMaterialPreview.h:24
Renderer output referenced by a stable artifact rather than GPU pointers.
Definition EditorMaterialPreview.h:33
EditorStatus status
Definition EditorMaterialPreview.h:34
std::string artifact
Definition EditorMaterialPreview.h:35
std::vector< EditorDiagnostic > diagnostics
Definition EditorMaterialPreview.h:36
Immutable request for one isolated Canvas render and CPU readback.
Definition OffscreenPreview.h:29
Revision sourceRevision
Definition OffscreenPreview.h:31
StableId previewId
Definition OffscreenPreview.h:30