载入中...
搜索中...
未找到
StylizeRuntime.cpp
浏览该文件的文档.
18Result<void> StylizeRecipeRuntime::publish(const StylizeRecipeTarget& document, graphics::Graphics* graphics) {
33 for (const auto& [name, value] : pass.overrides) instance->setFloat(name, static_cast<float>(value));
Definition Graphics.h:125
virtual void setCanvas(Canvas *canvas)=0
nullptr or this → screen. Switching flushes pending draws to the previous target.
virtual void drawTexturedRect(Texture *texture, float x, float y, float w, float h, float r, float g, float b, float a=1.f)
RGBA-float overload matching the script-facing drawTexturedRect name.
Definition Graphics.cpp:1732
GPU texture created via Graphics::newTexture. Owns GPU resources through an opaque backend handle.
Definition Texture.h:18
StylizeRecipeRuntime()
Stylize recipe runtime.
Result< void > apply(graphics::Graphics *graphics, graphics::Texture *source, graphics::Canvas *destination, Revision expectedRevision) const
Apply the active post recipe into an explicit destination Canvas.
Definition StylizeRuntime.cpp:47
~StylizeRecipeRuntime()
Stylize recipe runtime.
Result< void > publish(const StylizeRecipeTarget &document, graphics::Graphics *graphics)
Compile a complete candidate before replacing the active generation.
Definition StylizeRuntime.cpp:18
Serializable ordered style recipe with dynamic parameter Inspector.
Definition StylizeTarget.h:67
std::vector< EditorDiagnostic > validate() const
Validate style existence, stage compatibility, parameters and budgets.
Definition StylizeTarget.cpp:268
std::vector< StylizePassValue > passes() const
Return ordered immutable pass values.
Definition StylizeTarget.cpp:263
eve::Color Color
RGBA color used by every graphics draw call. Lives inside eve::graphics so including a graphics heade...
Definition Color.h:13
Definition MeshVfxTarget.cpp:7