Blender V4.5
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 110 of file vk_state_manager.hh.

Member Enumeration Documentation

◆ Type

Enumerator
Unused 
UniformBuffer 
VertexBuffer 
IndexBuffer 
StorageBuffer 
Buffer 

Definition at line 112 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 127 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 137 of file vk_state_manager.hh.

References bound_resources.

◆ unbind()

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

Definition at line 142 of file vk_state_manager.hh.

References bound_resources, resource, and Unused.

◆ unbind_all()

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

Definition at line 153 of file vk_state_manager.hh.

References bound_resources.

Member Data Documentation

◆ bound_resources

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

Definition at line 125 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: