Prepare GPU allocation from an owning immutable spectrum lease; providers borrowed through build(). 更多...
#include <OceanGpuSpectrum.h>
Public 成员函数 | |
| EVENGINE_API_DOMAINS | OceanGpuSpectrumBuilder (const OceanSpectrum &spectrum, graphics::Graphics &graphics, gpgpu::Gpgpu &compute) |
| Graphics must be the active same-device provider used by the injected Gpgpu service. | |
| EVENGINE_API_DOMAINS | OceanGpuSpectrumBuilder (const OceanSeaTransition &transition, graphics::Graphics &graphics, gpgpu::Gpgpu &compute) |
| Own both immutable transition endpoints; providers borrowed through build(). | |
| EVENGINE_API_DOMAINS Result< std::unique_ptr< OceanGpuSpectrum > > | build () const |
| Allocate compiled pipelines and band buffers; Unsupported explicitly selects a caller-chosen CPU path. @cost Pipeline creation plus O(sum N*N) allocation; amortize over sea-state lifetime. | |
详细描述
Prepare GPU allocation from an owning immutable spectrum lease; providers borrowed through build().
在文件 OceanGpuSpectrum.h 第 90 行定义.
构造及析构函数说明
◆ OceanGpuSpectrumBuilder() [1/2]
| eve::fluids::OceanGpuSpectrumBuilder::OceanGpuSpectrumBuilder | ( | const OceanSpectrum & | spectrum, |
| graphics::Graphics & | graphics, | ||
| gpgpu::Gpgpu & | compute | ||
| ) |
Graphics must be the active same-device provider used by the injected Gpgpu service.
在文件 OceanGpuSpectrum.cpp 第 66 行定义.
引用了 graphics.
◆ OceanGpuSpectrumBuilder() [2/2]
| eve::fluids::OceanGpuSpectrumBuilder::OceanGpuSpectrumBuilder | ( | const OceanSeaTransition & | transition, |
| graphics::Graphics & | graphics, | ||
| gpgpu::Gpgpu & | compute | ||
| ) |
Own both immutable transition endpoints; providers borrowed through build().
在文件 OceanGpuSpectrum.cpp 第 70 行定义.
引用了 graphics.
成员函数说明
◆ build()
| Result< std::unique_ptr< OceanGpuSpectrum > > eve::fluids::OceanGpuSpectrumBuilder::build | ( | ) | const |
Allocate compiled pipelines and band buffers; Unsupported explicitly selects a caller-chosen CPU path. @cost Pipeline creation plus O(sum N*N) allocation; amortize over sea-state lifetime.
- 返回
- Owning projection or diagnostic; render-thread-only, no partial publication or retained provider owners.
在文件 OceanGpuSpectrum.cpp 第 79 行定义.
引用了 eve::fluids::OceanGpuSpectrum::Impl::Band::coefficients, count, eve::gpgpu::createComputeShader(), error, eve::Failed, eve::graphics::Graphics::getBackendName(), eve::gpgpu::Gpgpu::isAvailable(), layout, eve::gpgpu::Gpgpu::newBuffer(), eve::gpgpu::Gpgpu::newSequence(), eve::graphics::Graphics::onResourcesRetiring(), pack, eve::fluids::OceanGpuSpectrum::Impl::Band::packed, eve::fluids::OceanGpuSpectrum::Impl::Band::ping, eve::fluids::OceanGpuSpectrum::Impl::Band::pong, eve::graphics::Graphics::resourceLifetime(), result, retiring, source, eve::StaleHandle, state, target, eve::Unsupported , 以及 eve::fluids::ocean_script::vector().
该类的文档由以下文件生成:
- src/modules/fluids/OceanGpuSpectrum.h
- src/modules/fluids/OceanGpuSpectrum.cpp