载入中...
搜索中...
未找到
EcsGpu.h 文件参考
#include "gpgpu/ShaderSystem.h"
#include "ECS.hpp"
#include <cstring>
#include <type_traits>
#include <vector>

浏览源代码.

命名空间

namespace  eve
 
namespace  eve::gpgpu
 

函数

template<typename Comp >
constexpr int eve::gpgpu::componentFloatCount ()
 
template<typename Base , typename Comp >
int eve::gpgpu::countViewEntities ()
 Count live entities matching View<Base, Comp>.
 
template<typename Base , typename Comp >
int eve::gpgpu::packViewComponent (ShaderSystem &sys, int binding)
 Pack View<Base, Comp> into ShaderSystem binding as AoS floats. Returns entity count (0 if empty).
 
template<typename Base , typename Comp >
void eve::gpgpu::unpackViewComponent (ShaderSystem &sys, int binding, int count)
 Write ShaderSystem binding floats back into View<Base, Comp> (same order as pack). count should be the value returned by packViewComponent.
 
template<typename Base , typename Comp >
int eve::gpgpu::runViewComponentSystem (ShaderSystem &sys, int binding, float dt)
 Pack + dispatch + unpack a single-component GPU system. Additional bindings must be uploaded by the caller before this helper, or use ShaderSystem manually for multi-buffer systems.