载入中...
搜索中...
未找到
ComputeShader.h
浏览该文件的文档.
Backend-agnostic compute program. Bind storage buffers then dispatch via Gpgpu::dispatch....
Definition ComputeShader.h:15
static constexpr int kMaxBindings
Definition ComputeShader.h:17
ComputeShader(const ComputeShader &)=delete
virtual GpuBuffer * getBoundBuffer(int binding) const =0
Returns the bound buffer.
static constexpr uint32_t kPushConstantBytes
Definition ComputeShader.h:19
virtual ~ComputeShader()=default
Releases ComputeShader resources.
ComputeShader & operator=(const ComputeShader &)=delete
virtual void bindBuffer(int binding, GpuBuffer *buffer)=0
Bind a storage buffer to set=0 binding. binding in [0, kMaxBindings).
Backend-agnostic GPU buffer for compute (storage) or CPU staging transfers. Squirrel-owned; derived c...
Definition GpuBuffer.h:18