载入中...
搜索中...
未找到
eve::fluids::OceanGpuRenderFrameBuilder类 参考

Borrowed GPU rendering publication, with optional synchronous local wake upload. Does not retain inputs after publish. Do not retain this builder across owner mutation/destruction. 更多...

#include <OceanRenderer.h>

Public 成员函数

EVENGINE_API_DOMAINS Result< void > publish () const
 Copy the completed resident atlas and optional wake to inactive textures, then publish atomically. @cost O(atlas texels) GPU copy and O(wake cells) CPU upload, no spectral readback or per-vertex CPU work.
 

Public 属性

glm::dvec2 center {0.0}
 
glm::dvec3 origin {0.0}
 
const OceanWake * wake = nullptr
 Borrow wake until publish returns; nullptr explicitly renders the open sea without a local wake.
 

友元

class OceanRenderer
 

详细描述

Borrowed GPU rendering publication, with optional synchronous local wake upload. Does not retain inputs after publish. Do not retain this builder across owner mutation/destruction.

在文件 OceanRenderer.h 第 78 行定义.

成员函数说明

◆ publish()

Result< void > eve::fluids::OceanGpuRenderFrameBuilder::publish ( ) const

Copy the completed resident atlas and optional wake to inactive textures, then publish atomically. @cost O(atlas texels) GPU copy and O(wake cells) CPU upload, no spectral readback or per-vertex CPU work.

返回
Success or validation/backend diagnostic; failure preserves the previous visible frame. @thread Render-thread-only, non-reentrant, no callbacks; copy completes before the source is released.

在文件 OceanGpuRenderFrame.cpp 第 17 行定义.

引用了 eve::fluids::OceanGpuSpectrum::atlas(), center, code, eve::Conflict, count, error, eve::Diagnostic::error(), eve::Failed, eve::Result< T >::failure(), finite, eve::fluids::GpuResident, eve::fluids::OceanWake::gridView(), height, info, eve::InvalidArgument, message, eve::graphics::TextureSampler::nearest(), origin, parameters, eve::graphics::TextureCreateInfo::sampler, eve::StaleHandle, state, eve::Result< T >::success(), texture, eve::fluids::OceanGpuFrameToken::time(), eve::Unsupported, value, eve::fluids::ocean_script::vector(), view, wake , 以及 width.

友元及相关函数文档

◆ OceanRenderer

在文件 OceanRenderer.h 第 92 行定义.

类成员变量说明

◆ center

glm::dvec2 eve::fluids::OceanGpuRenderFrameBuilder::center {0.0}

在文件 OceanRenderer.h 第 80 行定义.

被这些函数引用 publish().

◆ origin

glm::dvec3 eve::fluids::OceanGpuRenderFrameBuilder::origin {0.0}

在文件 OceanRenderer.h 第 81 行定义.

被这些函数引用 publish().

◆ wake

const OceanWake* eve::fluids::OceanGpuRenderFrameBuilder::wake = nullptr

Borrow wake until publish returns; nullptr explicitly renders the open sea without a local wake.

在文件 OceanRenderer.h 第 83 行定义.

被这些函数引用 publish().


该类的文档由以下文件生成: