Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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 constexpr int MAX_TEX_SAMPLER_ARRAY_SIZE = 16
 

Detailed Description

Definition at line 495 of file qrhi.h.

Member Function Documentation

◆ arraySize()

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

Definition at line 527 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 535 of file qrhi.h.

Member Data Documentation

◆ binding

◆ MAX_TEX_SAMPLER_ARRAY_SIZE

constexpr int QRhiShaderResourceBinding::Data::MAX_TEX_SAMPLER_ARRAY_SIZE = 16
staticconstexpr

◆ sbuf

StorageBufferData QRhiShaderResourceBinding::Data::sbuf

Definition at line 524 of file qrhi.h.

◆ simage

StorageImageData QRhiShaderResourceBinding::Data::simage

Definition at line 523 of file qrhi.h.

◆ stage

QRhiShaderResourceBinding::StageFlags QRhiShaderResourceBinding::Data::stage

Definition at line 498 of file qrhi.h.

Referenced by QRhiShaderResourceBinding::isLayoutCompatible().

◆ stex

TextureAndOrSamplerData QRhiShaderResourceBinding::Data::stex

Definition at line 522 of file qrhi.h.

◆ type

QRhiShaderResourceBinding::Type QRhiShaderResourceBinding::Data::type

Definition at line 499 of file qrhi.h.

Referenced by QRhiShaderResourceBinding::isLayoutCompatible().

◆ [union]

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

◆ ubuf

UniformBufferData QRhiShaderResourceBinding::Data::ubuf

Definition at line 521 of file qrhi.h.


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