|
Img2Num C++ (Internal Developer Docs) dev
API Documentation
|
A single entry for bind-group construction. More...
#include <gpu_utils.h>
Collaboration diagram for gpu::BindEntry:Static Public Member Functions | |
| static BindEntry | texture (uint32_t binding, const Texture &tex) |
| Create a texture-view entry. | |
| static BindEntry | texture_raw (uint32_t binding, wgpu::TextureView tv) |
| Create a texture-view entry from a raw wgpu::TextureView. | |
| template<typename T > | |
| static BindEntry | buffer_entry (uint32_t binding, const Buffer< T > &buf) |
| Create a buffer entry (storage or uniform). | |
| static BindEntry | buffer_raw (uint32_t binding, wgpu::Buffer buf, uint64_t size) |
| Create a buffer entry from a raw wgpu::Buffer and size. | |
Public Attributes | |
| uint32_t | binding |
| wgpu::TextureView | texture_view {} |
| wgpu::Buffer | buffer {} |
| uint64_t | buffer_size {0} |
| uint64_t | buffer_offset {0} |
A single entry for bind-group construction.
Definition at line 411 of file gpu_utils.h.
|
inlinestatic |
Create a buffer entry (storage or uniform).
Definition at line 435 of file gpu_utils.h.
References gpu::Buffer< T >::byte_size(), and gpu::Buffer< T >::handle().
Here is the call graph for this function:
|
inlinestatic |
Create a buffer entry from a raw wgpu::Buffer and size.
Definition at line 444 of file gpu_utils.h.
Create a texture-view entry.
Definition at line 419 of file gpu_utils.h.
References gpu::Texture::view().
Here is the call graph for this function:
|
inlinestatic |
Create a texture-view entry from a raw wgpu::TextureView.
Definition at line 427 of file gpu_utils.h.
| uint32_t gpu::BindEntry::binding |
Definition at line 412 of file gpu_utils.h.
| wgpu::Buffer gpu::BindEntry::buffer {} |
Definition at line 414 of file gpu_utils.h.
| uint64_t gpu::BindEntry::buffer_offset {0} |
Definition at line 416 of file gpu_utils.h.
| uint64_t gpu::BindEntry::buffer_size {0} |
Definition at line 415 of file gpu_utils.h.
| wgpu::TextureView gpu::BindEntry::texture_view {} |
Definition at line 413 of file gpu_utils.h.