Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::render::GpuBinding Struct Reference

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

Detailed Description

One entry of a bind group: a buffer range, a texture or a sampler.

Member Enumeration Documentation

◆ Kind

enum class pulp::render::GpuBinding::Kind : std::uint8_t
strong
Enumerator
buffer 
texture 
sampler 

Member Function Documentation

◆ of() [1/3]

GpuBinding pulp::render::GpuBinding::of ( std::uint32_t binding,
GpuBuffer buffer,
std::uint64_t offset = 0,
std::uint64_t size = 0 )
static

◆ of() [2/3]

GpuBinding pulp::render::GpuBinding::of ( std::uint32_t binding,
GpuSampler sampler )
static

◆ of() [3/3]

GpuBinding pulp::render::GpuBinding::of ( std::uint32_t binding,
GpuTexture texture )
static

Member Data Documentation

◆ binding

std::uint32_t pulp::render::GpuBinding::binding = 0

◆ buffer

GpuBuffer pulp::render::GpuBinding::buffer

◆ kind

Kind pulp::render::GpuBinding::kind = Kind::buffer

◆ offset

std::uint64_t pulp::render::GpuBinding::offset = 0

◆ sampler

GpuSampler pulp::render::GpuBinding::sampler

◆ size

std::uint64_t pulp::render::GpuBinding::size = 0

0 binds from offset to the end of the buffer.

◆ texture

GpuTexture pulp::render::GpuBinding::texture

The documentation for this struct was generated from the following file:
  • /home/runner/work/pulp/pulp/core/render/include/pulp/render/gpu_pass.hpp