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

#include <vk_state_manager.hh>

Classes

struct  Elem
 

Public Types

enum class  Type { Unused , Texture , VertexBuffer }
 

Public Member Functions

void bind (Type resource_type, void *resource, GPUSamplerState sampler, int binding)
 
const Elemget (int binding) const
 
void unbind (void *resource)
 
void unbind_all ()
 

Public Attributes

Vector< Elembound_resources
 

Detailed Description

Bind space for textures.

Definition at line 156 of file vk_state_manager.hh.

Member Enumeration Documentation

◆ Type

Enumerator
Unused 
Texture 
VertexBuffer 

Definition at line 158 of file vk_state_manager.hh.

Member Function Documentation

◆ bind()

void blender::gpu::BindSpaceTextures::bind ( Type resource_type,
void * resource,
GPUSamplerState sampler,
int binding )
inline

◆ get()

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

Definition at line 180 of file vk_state_manager.hh.

References bound_resources.

◆ unbind()

◆ unbind_all()

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

Definition at line 196 of file vk_state_manager.hh.

References bound_resources.

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

Member Data Documentation

◆ bound_resources

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

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