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
QShader::NativeShaderInfo Struct Reference

\inmodule QtGui More...

#include <qshader.h>

+ Collaboration diagram for QShader::NativeShaderInfo:

Public Attributes

int flags = 0
 
QMap< int, int > extraBufferBindings
 

Detailed Description

\inmodule QtGui

Additional metadata about the native shader code.

Describes information about the native shader code, if applicable. This becomes relevant with certain shader languages for certain shader stages, in case the translation from SPIR-V involves the introduction of additional, "magic" inputs, outputs, or resources in the generated shader. Such additions may be dependent on the original source code (i.e. the usage of various GLSL language constructs or built-ins), and therefore it needs to be indicated in a dynamic manner if certain features got added to the generated shader code.

As an example, consider a tessellation control shader with a per-patch (not per-vertex) output variable. This is translated to a Metal compute shader outputting (among others) into an spvPatchOut buffer. But this buffer would not be present at all if per-patch output variables were not used. The fact that the shader code relies on such a buffer present can be indicated by the data in this struct.

Note
This is a RHI API with limited compatibility guarantees, see \l QShader for details.

Definition at line 159 of file qshader.h.

Member Data Documentation

◆ extraBufferBindings

QMap<int, int> QShader::NativeShaderInfo::extraBufferBindings

◆ flags

int QShader::NativeShaderInfo::flags = 0

Definition at line 160 of file qshader.h.


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