One entry of a bind group: a buffer range, a texture or a sampler. More...
#include <gpu_pass.hpp>
Public Types | |
| enum class | Kind : std::uint8_t { buffer , texture , sampler } |
Static Public Member Functions | |
| static GpuBinding | of (std::uint32_t binding, GpuBuffer buffer, std::uint64_t offset=0, std::uint64_t size=0) |
| static GpuBinding | of (std::uint32_t binding, GpuTexture texture) |
| static GpuBinding | of (std::uint32_t binding, GpuSampler sampler) |
Public Attributes | |
| std::uint32_t | binding = 0 |
| Kind | kind = Kind::buffer |
| GpuBuffer | buffer |
| std::uint64_t | offset = 0 |
| std::uint64_t | size = 0 |
| 0 binds from offset to the end of the buffer. | |
| GpuTexture | texture |
| GpuSampler | sampler |
One entry of a bind group: a buffer range, a texture or a sampler.
|
strong |
|
static |
|
static |
|
static |
| std::uint32_t pulp::render::GpuBinding::binding = 0 |
| GpuBuffer pulp::render::GpuBinding::buffer |
| Kind pulp::render::GpuBinding::kind = Kind::buffer |
| std::uint64_t pulp::render::GpuBinding::offset = 0 |
| GpuSampler pulp::render::GpuBinding::sampler |
| std::uint64_t pulp::render::GpuBinding::size = 0 |
0 binds from offset to the end of the buffer.
| GpuTexture pulp::render::GpuBinding::texture |