载入中...
搜索中...
未找到
GrassWind.cpp
浏览该文件的文档.
8Result<void> applyGrassWind(Shader& shader, const VegetationWindState& state, const VegetationWindProfile& profile,
13 static const std::array<std::string, 5> names = {"windGlobals", "windPhaseDistance", "windFlex", "windFrequency",
19 shader.getUniformIndex(names[i]) != offsets[i] || shader.getUniformFloatCount(names[i]) != sizes[i])
EVEngine assertion entry point, backed by zeroerr.
#define EV_ASSERT(cond,...)
Assert an internal engine invariant (state that must always hold).
Definition Assert.h:37
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={}, DiagnosticDetails details={}, std::string source={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.h:125
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:175
bool hasUniform(const std::string &name) const
Definition Shader.cpp:59
int getUniformIndex(const std::string &name) const
Definition Shader.cpp:61
int getUniformFloatCount(const std::string &name) const
Definition Shader.cpp:67
int sendToVar(const std::string &name, const void *data, size_t size)
Low-level blob write into a declared uniform (size must match declaration).
Definition Shader.cpp:73
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition Animation.h:25
Result< std::array< float, 14 > > packVegetationWind(const VegetationWindState &state, const VegetationWindProfile &profile, double seconds)
Pack a wind snapshot into the grass shader's final 14 float slots.
Definition VegetationWind.cpp:18
Result< void > applyGrassWind(Shader &shader, const VegetationWindState &state, const VegetationWindProfile &profile, double seconds)
Atomically apply a validated wind snapshot to a grass shader's CPU uniform storage.
Definition GrassWind.cpp:8
@ InvalidArgument
Caller-owned material wind controls; billboard suppresses source branch and leaf motion....
Definition VegetationWind.h:46
Caller-owned wind globals; no hidden clock, singleton or retained scene link.
Definition VegetationWind.h:7