Blender V4.3
blender::gpu::BindSpaceStorageBuffers Class Reference

#include <vk_state_manager.hh>

Classes

struct  Elem
 

Public Types

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

Public Member Functions

void bind (Type resource_type, void *resource, int binding)
 
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 

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 )
inline

Definition at line 125 of file vk_state_manager.hh.

References bound_resources.

Referenced by blender::gpu::VKStateManager::storage_buffer_bind().

◆ get()

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

Definition at line 134 of file vk_state_manager.hh.

References bound_resources.

◆ unbind()

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

◆ unbind_all()

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

Member Data Documentation

◆ bound_resources

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

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