载入中...
搜索中...
未找到
OceanGpuRenderFrame.cpp
浏览该文件的文档.
26 if (!finite(center.x) || !finite(center.y) || !finite(origin.x) || !finite(origin.y) || !finite(origin.z))
68 auto resize = [&](graphics::Texture*& texture, unsigned width, unsigned height) -> Result<void> {
76 state.graphics->newTexture(static_cast<int>(width), static_cast<int>(height), zero.data(), info);
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
Opaque revision of a completed GPU ocean; copying does not extend resource lifetime.
Definition OceanGpuSpectrum.h:22
double time() const
Simulation timestamp of this completed projection.
Definition OceanGpuSpectrum.h:25
Borrowed GPU rendering publication, with optional synchronous local wake upload. Does not retain inpu...
Definition OceanRenderer.h:78
EVENGINE_API_DOMAINS Result< void > publish() const
Copy the completed resident atlas and optional wake to inactive textures, then publish atomically....
Definition OceanGpuRenderFrame.cpp:17
const OceanWake * wake
Borrow wake until publish returns; nullptr explicitly renders the open sea without a local wake.
Definition OceanRenderer.h:83
Render-thread-owned GPU projection of immutable spectral coefficients, with no independent clock....
Definition OceanGpuSpectrum.h:65
EVENGINE_API_DOMAINS Result< OceanGpuAtlasView > atlas(const OceanGpuFrameToken &token) const
Validate revision and borrow the complete rendering atlas for immediate same-device copying.
Definition OceanGpuSpectrum.cpp:263
EVENGINE_API_DOMAINS OceanGpuRenderFrameBuilder gpuFrameBuilder(const OceanGpuSpectrum &spectrum, const OceanGpuFrameToken &token)
Prepare a borrowed GPU publication; owners must remain alive and unchanged through publish().
Definition OceanGpuRenderFrame.cpp:13
EVENGINE_API_DOMAINS OceanWakeGridView gridView() const
Borrow raw height/foam for immediate GPU upload; never retain across mutation or destruction.
Definition OceanWake.cpp:257
GPU texture created via Graphics::newTexture. Owns GPU resources through an opaque backend handle.
Definition Texture.h:15
@ GpuResident
@ InvalidArgument
@ Unsupported
@ Failed
@ StaleHandle
@ Conflict
Options for Graphics::newTexture / newCubemap. When generateMipmaps is true and sampler....
Definition TextureSampler.h:117