Blender V5.3
blender::draw::command::ResourceBind Struct Reference

#include <draw_command.hh>

Classes

union  [union].__unnamed0__

Public Types

enum class  Type : uint8_t {
  Sampler = 0 , BufferSampler , Image , UniformBuf ,
  StorageBuf , UniformAsStorageBuf , VertexAsStorageBuf , IndexAsStorageBuf ,
  TopLevelAS
}

Public Member Functions

 ResourceBind ()=default
 ResourceBind (int slot_, gpu::UniformBuf *res)
 ResourceBind (int slot_, gpu::UniformBuf **res)
 ResourceBind (int slot_, gpu::StorageBuf *res)
 ResourceBind (int slot_, gpu::StorageBuf **res)
 ResourceBind (int slot_, gpu::TopLevelAS *res)
 ResourceBind (int slot_, gpu::UniformBuf *res, Type)
 ResourceBind (int slot_, gpu::UniformBuf **res, Type)
 ResourceBind (int slot_, gpu::VertBuf *res, Type)
 ResourceBind (int slot_, gpu::VertBuf **res, Type)
 ResourceBind (int slot_, gpu::IndexBuf *res, Type)
 ResourceBind (int slot_, gpu::IndexBuf **res, Type)
 ResourceBind (int slot_, draw::Image *res)
 ResourceBind (int slot_, draw::Image **res)
 ResourceBind (int slot_, gpu::Texture *res, GPUSamplerState state)
 ResourceBind (int slot_, gpu::Texture **res, GPUSamplerState state)
 ResourceBind (int slot_, gpu::VertBuf *res)
 ResourceBind (int slot_, gpu::VertBuf **res)
Commands Execution
void execute () const
Commands Serialization for debugging
std::string serialize () const

Public Attributes

GPUSamplerState sampler
int slot
bool is_reference
enum blender::draw::command::ResourceBind::Type type
union  

Detailed Description

Definition at line 165 of file draw_command.hh.

Member Enumeration Documentation

◆ Type

Enumerator
Sampler 
BufferSampler 
Image 
UniformBuf 
StorageBuf 
UniformAsStorageBuf 
VertexAsStorageBuf 
IndexAsStorageBuf 
TopLevelAS 

Definition at line 170 of file draw_command.hh.

Constructor & Destructor Documentation

◆ ResourceBind() [1/18]

blender::draw::command::ResourceBind::ResourceBind ( )
default

◆ ResourceBind() [2/18]

blender::draw::command::ResourceBind::ResourceBind ( int slot_,
gpu::UniformBuf * res )
inline

Definition at line 203 of file draw_command.hh.

References blender::false, is_reference, slot, and type.

◆ ResourceBind() [3/18]

blender::draw::command::ResourceBind::ResourceBind ( int slot_,
gpu::UniformBuf ** res )
inline

Definition at line 205 of file draw_command.hh.

References is_reference, slot, blender::true, and type.

◆ ResourceBind() [4/18]

blender::draw::command::ResourceBind::ResourceBind ( int slot_,
gpu::StorageBuf * res )
inline

Definition at line 207 of file draw_command.hh.

References blender::false, is_reference, slot, and type.

◆ ResourceBind() [5/18]

blender::draw::command::ResourceBind::ResourceBind ( int slot_,
gpu::StorageBuf ** res )
inline

Definition at line 209 of file draw_command.hh.

References is_reference, slot, blender::true, and type.

◆ ResourceBind() [6/18]

blender::draw::command::ResourceBind::ResourceBind ( int slot_,
gpu::TopLevelAS * res )
inline

Definition at line 211 of file draw_command.hh.

References blender::false, is_reference, slot, and type.

◆ ResourceBind() [7/18]

blender::draw::command::ResourceBind::ResourceBind ( int slot_,
gpu::UniformBuf * res,
Type  )
inline

Definition at line 213 of file draw_command.hh.

References blender::false, is_reference, slot, and type.

◆ ResourceBind() [8/18]

blender::draw::command::ResourceBind::ResourceBind ( int slot_,
gpu::UniformBuf ** res,
Type  )
inline

Definition at line 215 of file draw_command.hh.

References is_reference, slot, blender::true, and type.

◆ ResourceBind() [9/18]

blender::draw::command::ResourceBind::ResourceBind ( int slot_,
gpu::VertBuf * res,
Type  )
inline

Definition at line 217 of file draw_command.hh.

References blender::false, is_reference, slot, and type.

◆ ResourceBind() [10/18]

blender::draw::command::ResourceBind::ResourceBind ( int slot_,
gpu::VertBuf ** res,
Type  )
inline

Definition at line 219 of file draw_command.hh.

References is_reference, slot, blender::true, and type.

◆ ResourceBind() [11/18]

blender::draw::command::ResourceBind::ResourceBind ( int slot_,
gpu::IndexBuf * res,
Type  )
inline

Definition at line 221 of file draw_command.hh.

References blender::false, is_reference, slot, and type.

◆ ResourceBind() [12/18]

blender::draw::command::ResourceBind::ResourceBind ( int slot_,
gpu::IndexBuf ** res,
Type  )
inline

Definition at line 223 of file draw_command.hh.

References is_reference, slot, blender::true, and type.

◆ ResourceBind() [13/18]

blender::draw::command::ResourceBind::ResourceBind ( int slot_,
draw::Image * res )
inline

Definition at line 225 of file draw_command.hh.

References blender::false, is_reference, slot, texture(), and type.

◆ ResourceBind() [14/18]

blender::draw::command::ResourceBind::ResourceBind ( int slot_,
draw::Image ** res )
inline

Definition at line 227 of file draw_command.hh.

References is_reference, slot, blender::true, and type.

◆ ResourceBind() [15/18]

blender::draw::command::ResourceBind::ResourceBind ( int slot_,
gpu::Texture * res,
GPUSamplerState state )
inline

Definition at line 229 of file draw_command.hh.

References blender::false, is_reference, sampler, slot, state, texture(), and type.

◆ ResourceBind() [16/18]

blender::draw::command::ResourceBind::ResourceBind ( int slot_,
gpu::Texture ** res,
GPUSamplerState state )
inline

Definition at line 231 of file draw_command.hh.

References is_reference, sampler, slot, state, blender::true, and type.

◆ ResourceBind() [17/18]

blender::draw::command::ResourceBind::ResourceBind ( int slot_,
gpu::VertBuf * res )
inline

Definition at line 233 of file draw_command.hh.

References blender::false, is_reference, slot, and type.

◆ ResourceBind() [18/18]

blender::draw::command::ResourceBind::ResourceBind ( int slot_,
gpu::VertBuf ** res )
inline

Definition at line 235 of file draw_command.hh.

References is_reference, slot, blender::true, and type.

Member Function Documentation

◆ execute()

◆ serialize()

std::string blender::draw::command::ResourceBind::serialize ( ) const

Member Data Documentation

◆ @140262246070273213036257062126327126300044045201

◆ is_reference

◆ sampler

GPUSamplerState blender::draw::command::ResourceBind::sampler

Definition at line 166 of file draw_command.hh.

Referenced by execute(), ResourceBind(), ResourceBind(), and serialize().

◆ slot

◆ type


The documentation for this struct was generated from the following files: