Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QRhiShaderResourceBinding::Data Struct Reference

#include <qrhi.h>

+ Collaboration diagram for QRhiShaderResourceBinding::Data:

Classes

struct  StorageBufferData
 
struct  StorageImageData
 
struct  TextureAndOrSamplerData
 
struct  UniformBufferData
 

Public Member Functions

int arraySize () const
 
template<typename Output >
Output serialize (Output dst) const
 

Public Attributes

int binding
 
QRhiShaderResourceBinding::StageFlags stage
 
QRhiShaderResourceBinding::Type type
 
union { 
 
   UniformBufferData   ubuf 
 
   TextureAndOrSamplerData   stex 
 
   StorageImageData   simage 
 
   StorageBufferData   sbuf 
 
u 
 

Static Public Attributes

static const int MAX_TEX_SAMPLER_ARRAY_SIZE = 16
 

Detailed Description

Definition at line 487 of file qrhi.h.

Member Function Documentation

◆ arraySize()

int QRhiShaderResourceBinding::Data::arraySize ( ) const
inline

Definition at line 519 of file qrhi.h.

References QRhiShaderResourceBinding::SampledTexture, and QRhiShaderResourceBinding::Texture.

Referenced by QRhiShaderResourceBinding::isLayoutCompatible().

+ Here is the caller graph for this function:

◆ serialize()

template<typename Output >
Output QRhiShaderResourceBinding::Data::serialize ( Output  dst) const
inline

Definition at line 527 of file qrhi.h.

Member Data Documentation

◆ binding

◆ MAX_TEX_SAMPLER_ARRAY_SIZE

const int QRhiShaderResourceBinding::Data::MAX_TEX_SAMPLER_ARRAY_SIZE = 16
static

◆ sbuf

StorageBufferData QRhiShaderResourceBinding::Data::sbuf

Definition at line 516 of file qrhi.h.

Referenced by QRhiShaderResourceBinding::operator==().

◆ simage

StorageImageData QRhiShaderResourceBinding::Data::simage

Definition at line 515 of file qrhi.h.

Referenced by QRhiShaderResourceBinding::operator==().

◆ stage

QRhiShaderResourceBinding::StageFlags QRhiShaderResourceBinding::Data::stage

◆ stex

TextureAndOrSamplerData QRhiShaderResourceBinding::Data::stex

Definition at line 514 of file qrhi.h.

Referenced by QRhiShaderResourceBinding::operator==().

◆ type

◆ [union]

union { ... } QRhiShaderResourceBinding::Data::u

◆ ubuf

UniformBufferData QRhiShaderResourceBinding::Data::ubuf

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