载入中...
搜索中...
未找到
OceanGpuSpectrum.h
浏览该文件的文档.
73 [[nodiscard]] EVENGINE_API_DOMAINS Result<OceanGpuBandView> band(const OceanGpuFrameToken& token,
76 [[nodiscard]] EVENGINE_API_DOMAINS Result<OceanGpuAtlasView> atlas(const OceanGpuFrameToken& token) const;
78 [[nodiscard]] EVENGINE_API_DOMAINS OceanGpuReadbackBuilder readbackBuilder(const OceanGpuFrameToken& token) const;
93 EVENGINE_API_DOMAINS OceanGpuSpectrumBuilder(const OceanSpectrum& spectrum, graphics::Graphics& graphics,
96 EVENGINE_API_DOMAINS OceanGpuSpectrumBuilder(const OceanSeaTransition& transition, graphics::Graphics& graphics,
139 OceanGpuReadbackBuilder(const OceanGpuSpectrum& owner, OceanGpuFrameToken token) : owner_(owner), token_(token) {}
Synchronous borrowed submission builder; do not retain across owner destruction.
Definition OceanGpuSpectrum.h:112
EVENGINE_API_DOMAINS Result< OceanGpuFrameToken > submit() const
Evolve all six spectral fields and inverse FFT in one command sequence; no CPU readback....
Definition OceanGpuSpectrum.cpp:143
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 diagnostic readback builder; revision checked again at build, never silently reads a newer f...
Definition OceanGpuSpectrum.h:129
EVENGINE_API_DOMAINS Result< OceanSpectrumFrame > build() const
Download a completed projection into an owning CPU frame for parity tests and diagnostics....
Definition OceanGpuSpectrum.cpp:270
Prepare GPU allocation from an owning immutable spectrum lease; providers borrowed through build().
Definition OceanGpuSpectrum.h:90
EVENGINE_API_DOMAINS Result< std::unique_ptr< OceanGpuSpectrum > > build() const
Allocate compiled pipelines and band buffers; Unsupported explicitly selects a caller-chosen CPU path...
Definition OceanGpuSpectrum.cpp:79
Render-thread-owned GPU projection of immutable spectral coefficients, with no independent clock....
Definition OceanGpuSpectrum.h:65
EVENGINE_API_DOMAINS Result< OceanGpuBandView > band(const OceanGpuFrameToken &token, unsigned index) const
Validate revision and borrow one band for immediate same-device consumption; no allocation.
Definition OceanGpuSpectrum.cpp:251
EVENGINE_API_DOMAINS OceanGpuFrameBuilder frameBuilder(double time)
Prepare a cheap call-only builder; owner must outlive submit().
Definition OceanGpuSpectrum.cpp:138
EVENGINE_API_DOMAINS OceanGpuReadbackBuilder readbackBuilder(const OceanGpuFrameToken &token) const
Prepare explicit diagnostic readback; no readback occurs in normal GPU rendering.
Definition OceanGpuSpectrum.cpp:139
OceanGpuSpectrum & operator=(const OceanGpuSpectrum &)=delete
OceanGpuSpectrum(const OceanGpuSpectrum &)=delete
EVENGINE_API_DOMAINS ~OceanGpuSpectrum()
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
Immutable finite sea-state transition; the caller supplies the only simulation clock....
Definition OceanSeaTransition.h:14
Immutable initial spectrum; data is shared only with owning frame builders.
Definition OceanSpectrum.h:96
GPGPU module — compute shaders + storage buffers via the active Graphics backend. Uses the graphics q...
Definition Gpgpu.h:23
Definition Graphics.h:134
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition Animation.h:25
@ Graphics
Transient backend buffer slice shared between sibling GPU modules. @ownership Non-owning; nativeHandl...
Definition GpuResidentBufferView.h:19
One band's XYZ displacement planes in the resident rendering atlas.
Definition OceanGpuSpectrum.h:44
Call-only borrowed packed float atlas; each four RGBA8 bytes preserve one float's bits....
Definition OceanGpuSpectrum.h:51
std::array< OceanGpuAtlasBand, 4 > bands
Definition OceanGpuSpectrum.h:55
Call-only borrowed planar float buffer: displacement XYZ then velocity XYZ, each N*N floats....
Definition OceanGpuSpectrum.h:38