Represents an ordered collection of WGPUBuffers (wrapped as tensors, non-overlapping views, or arrays) for the purpose of binding them to a kernel operation to make them accessible to the GPU kernel. More...
#include <gpu.h>
Public Member Functions | |
Bindings (const std::initializer_list< Tensor > &init) | |
Bindings (const std::initializer_list< TensorView > &init) | |
Bindings (const std::initializer_list< Array > &init) | |
Tensor & | operator[] (std::size_t index) |
const Tensor & | operator[] (std::size_t index) const |
Public Attributes | |
std::array< Tensor, N > | data |
std::array< size_t, N > | viewOffsets |
std::array< size_t, N > | viewSpans |
Represents an ordered collection of WGPUBuffers (wrapped as tensors, non-overlapping views, or arrays) for the purpose of binding them to a kernel operation to make them accessible to the GPU kernel.
The ordering of the bindings should match the binding indices in the WGSL code.
|
inline |
|
inline |
Definition at line 136 of file gpu.h.
|
inline |
|
inline |
|
inline |
std::array<Tensor, N> gpu::Bindings< N >::data |
std::array<size_t, N> gpu::Bindings< N >::viewOffsets |
std::array<size_t, N> gpu::Bindings< N >::viewSpans |