Blender V5.0
ShaderCreateInfo::Resource Struct Reference

#include <gpu_shader_create_info.hh>

Public Types

enum  BindType { UNIFORM_BUFFER = 0 , STORAGE_BUFFER , SAMPLER , IMAGE }

Public Member Functions

 Resource (BindType type, int _slot)
bool operator== (const Resource &b) const

Public Attributes

BindType bind_type
int slot
union { 
   Sampler   sampler 
   Image   image 
   UniformBuf   uniformbuf 
   StorageBuf   storagebuf 
}; 

Detailed Description

Definition at line 885 of file gpu_shader_create_info.hh.

Member Enumeration Documentation

◆ BindType

Enumerator
UNIFORM_BUFFER 
STORAGE_BUFFER 
SAMPLER 
IMAGE 

Definition at line 886 of file gpu_shader_create_info.hh.

Constructor & Destructor Documentation

◆ Resource()

Member Function Documentation

◆ operator==()

bool blender::gpu::shader::ShaderCreateInfo::Resource::operator== ( const Resource & b) const
inline

Definition at line 904 of file gpu_shader_create_info.hh.

Member Data Documentation

◆ [union]

◆ bind_type

◆ image

◆ sampler

◆ slot

◆ storagebuf

◆ uniformbuf


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