Blender V5.0
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 165 of file vk_state_manager.hh.

Member Enumeration Documentation

◆ Type

Enumerator
Unused 
Texture 
VertexBuffer 

Definition at line 167 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

Definition at line 179 of file vk_state_manager.hh.

References bound_resources, and resource.

◆ get()

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

Definition at line 189 of file vk_state_manager.hh.

References bound_resources.

◆ unbind()

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

◆ unbind_all()

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

Definition at line 211 of file vk_state_manager.hh.

References bound_resources.

Member Data Documentation

◆ bound_resources

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

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