载入中...
搜索中...
未找到
IMeshResourceFactory.h
浏览该文件的文档.
35 [[nodiscard]] virtual Result<Mesh*> uploadMeshColored(const float*, const float*, const float*, const float*, int,
46 [[nodiscard]] virtual Result<void> setMeshTexcoords(Mesh*, std::uint32_t, std::span<const float>) {
49 Diagnostic::error(DiagnosticCode::Unsupported, "mesh provider does not support additional UV streams"));
57 [[nodiscard]] virtual Result<void> setMeshTangentFrame(Mesh*, std::span<const float>, std::span<const float>) {
60 Diagnostic::error(DiagnosticCode::Unsupported, "mesh provider does not support authored tangent frames"));
Move-only, checked operation results for the common layer.
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
Backend-owned mesh upload and release operations.
Definition IMeshResourceFactory.h:15
virtual Result< void > setMeshTangentFrame(Mesh *, std::span< const float >, std::span< const float >)
Attach authored XYZ tangent and bitangent streams before mesh publication.
Definition IMeshResourceFactory.h:57
virtual Result< void > releaseMesh(Mesh *mesh)=0
Release a mesh previously returned by this factory.
virtual Result< void > setMeshTexcoords(Mesh *, std::uint32_t, std::span< const float >)
Attach an owning UV stream to an uploaded mesh before publication. @thread Graphics thread; input is ...
Definition IMeshResourceFactory.h:46
virtual ~IMeshResourceFactory()=default
Releases IMeshResourceFactory resources.
virtual Result< Mesh * > uploadMesh(const float *posXYZ, const float *nrmXYZ, const float *uvST, int vertexCount, const std::uint32_t *indices, int indexCount)=0
Upload validated, tightly packed mesh arrays.
virtual Result< Mesh * > uploadMeshColored(const float *, const float *, const float *, const float *, int, const std::uint32_t *, int)
Upload a mesh with a tightly packed linear RGBA vertex-color stream.
Definition IMeshResourceFactory.h:35
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition Animation.h:25
@ Unsupported