载入中...
搜索中...
未找到
MeshShaderRasterState.cpp
浏览该文件的文档.
2#include <cmath>
3
4namespace eve::graphics {
6 if ((state.depthCompare != MeshDepthCompare::Less && state.depthCompare != MeshDepthCompare::LessEqual &&
7 state.depthCompare != MeshDepthCompare::Always) ||
8 state.colorWriteMask > 15 || !std::isfinite(state.depthBiasConstant) || !std::isfinite(state.depthBiasSlope))
10 "Invalid custom mesh depth comparison, bias or color mask",
11 "shader.raster"));
12 return Result<void>::success();
13}
14} // namespace eve::graphics
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
Move-only operation result carrying either a value or Status.
Definition Result.h:155
static Result success(T value)
Construct a successful result owning value.
Definition Result.h:164
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:175
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition Animation.h:25
Result< void > validateMeshShaderRasterState(const MeshShaderRasterState &state)
Validate a borrowed value without touching graphics state; safe on any thread.
Value snapshot of custom mesh rasterization state, independent of blending/culling.