Blender V4.3
blender::gpu::shader::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 504 of file gpu_shader_create_info.hh.

Member Enumeration Documentation

◆ BindType

Enumerator
UNIFORM_BUFFER 
STORAGE_BUFFER 
SAMPLER 
IMAGE 

Definition at line 505 of file gpu_shader_create_info.hh.

Constructor & Destructor Documentation

◆ Resource()

blender::gpu::shader::ShaderCreateInfo::Resource::Resource ( BindType type,
int _slot )
inline

Definition at line 521 of file gpu_shader_create_info.hh.

Member Function Documentation

◆ operator==()

Member Data Documentation

◆ [union]

◆ bind_type

◆ image

◆ sampler

◆ slot

int blender::gpu::shader::ShaderCreateInfo::Resource::slot

◆ storagebuf

◆ uniformbuf


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