载入中...
搜索中...
未找到
ComputeProgram.h
浏览该文件的文档.
1#pragma once
2
3#include <cstdint>
4#include <memory>
5#include <string>
6#include <vector>
7#include "common/Export.h"
8#include "common/Result.h"
9
10namespace eve::gpgpu {
11class ComputeShader;
17[[nodiscard]] EVENGINE_API_WORLD Result<std::vector<uint32_t>> compileComputeSpirv(const std::string& source);
24[[nodiscard]] EVENGINE_API_WORLD Result<std::unique_ptr<ComputeShader>> createComputeShader(
25 const std::vector<uint32_t>& words);
26} // namespace eve::gpgpu
#define EVENGINE_API_WORLD
Definition Export.h:109
Move-only, checked operation results for the common layer.
const UnitySourceAsset & source
Fluids module — interactive surface fluid simulation.
Definition Fluids.h:34
EVENGINE_API_WORLD Result< std::unique_ptr< ComputeShader > > createComputeShader(const std::vector< uint32_t > &words)
Create an owning compute pipeline from valid SPIR-V produced by compileComputeSpirv.
Definition Gpgpu.cpp:307
EVENGINE_API_WORLD Result< std::vector< uint32_t > > compileComputeSpirv(const std::string &source)
Compile GLSL compute source to owning SPIR-V without accessing Graphics or a GPU.
Definition Gpgpu.cpp:294