Blender V5.0
blender::gpu::BindSpaceStorageBuffers Class Reference

#include <vk_state_manager.hh>

Classes

struct  Elem

Public Types

enum class  Type {
  Unused , UniformBuffer , VertexBuffer , IndexBuffer ,
  StorageBuffer , Buffer
}

Public Member Functions

void bind (Type resource_type, void *resource, int binding, VkDeviceSize offset)
const Elemget (int binding) const
void unbind (void *resource)
void unbind_all ()

Public Attributes

Vector< Elembound_resources

Detailed Description

Bind space for storage buffers.

Definition at line 115 of file vk_state_manager.hh.

Member Enumeration Documentation

◆ Type

Enumerator
Unused 
UniformBuffer 
VertexBuffer 
IndexBuffer 
StorageBuffer 
Buffer 

Definition at line 117 of file vk_state_manager.hh.

Member Function Documentation

◆ bind()

void blender::gpu::BindSpaceStorageBuffers::bind ( Type resource_type,
void * resource,
int binding,
VkDeviceSize offset )
inline

Definition at line 132 of file vk_state_manager.hh.

References bound_resources, and resource.

◆ get()

const Elem & blender::gpu::BindSpaceStorageBuffers::get ( int binding) const
inline

Definition at line 142 of file vk_state_manager.hh.

References bound_resources.

◆ unbind()

void blender::gpu::BindSpaceStorageBuffers::unbind ( void * resource)
inline

Definition at line 147 of file vk_state_manager.hh.

References bound_resources, resource, and Unused.

◆ unbind_all()

void blender::gpu::BindSpaceStorageBuffers::unbind_all ( )
inline

Definition at line 158 of file vk_state_manager.hh.

References bound_resources.

Member Data Documentation

◆ bound_resources

Vector<Elem> blender::gpu::BindSpaceStorageBuffers::bound_resources

Definition at line 130 of file vk_state_manager.hh.

Referenced by bind(), get(), unbind(), and unbind_all().


The documentation for this class was generated from the following file: