载入中...
搜索中...
未找到
OceanHullMaskPublication.cpp
浏览该文件的文档.
9OceanHullMaskPublication OceanRenderer::hullMaskBuilder(const OceanHullMaskFrame& frame) { return {*this, frame}; }
35 if (!state.hullMask[back]) return fail(DiagnosticCode::Unsupported, "Hull mask texture unavailable");
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.cpp:21
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:196
Immutable owning render-only union of convex dry volumes. No body handles, callbacks,...
Definition OceanHullMask.h:28
glm::dvec3 origin() const
World origin subtracted before float projection.
Definition OceanHullMask.h:36
std::span< const glm::vec4 > rows() const
Borrow packed render-space halfspaces until frame destruction/move. Each volume has seventeen vec4 ro...
Definition OceanHullMask.h:34
Borrowed mask upload; no frame or vessel pointer is retained after publication.
Definition OceanRenderer.h:101
EVENGINE_API_DOMAINS Result< void > publish() const
Upload into the inactive texture and publish only on success; empty clears the mask.
Definition OceanHullMaskPublication.cpp:10
EVENGINE_API_DOMAINS OceanHullMaskPublication hullMaskBuilder(const OceanHullMaskFrame &frame)
Borrow a mask frame for synchronous upload; keep frame and renderer alive until publish returns.
Definition OceanHullMaskPublication.cpp:9
@ Unsupported
@ Failed
@ StaleHandle
Options for Graphics::newTexture / newCubemap. When generateMipmaps is true and sampler....
Definition TextureSampler.h:117