Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qssgrenderbasetypes_p.h File Reference
#include <QtQuick3DUtils/private/qssgdataref_p.h>
#include <QtQuick3DUtils/private/qtquick3dutilsglobal_p.h>
#include <QtGui/QVector2D>
#include <QtGui/QVector3D>
#include <QtGui/QVector4D>
#include <QtGui/QMatrix4x4>
#include <QtGui/QMatrix3x3>
#include <QFloat16>
#include <cmath>
+ Include dependency graph for qssgrenderbasetypes_p.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  QSSGRenderTextureFormat
 
struct  QSSGRenderTextureFormat::M8E8
 
struct  QSSGRenderVertexBufferEntry
 
struct  QSSGRenderGenericVec2< TDataType >
 
struct  QSSGRenderGenericVec3< TDataType >
 
struct  QSSGRenderGenericVec4< TDataType >
 
class  QSSGBaseTypeHelpers
 

Typedefs

typedef QSSGRenderGenericVec2< bool > bool_2
 
typedef QSSGRenderGenericVec3< bool > bool_3
 
typedef QSSGRenderGenericVec4< bool > bool_4
 
typedef QSSGRenderGenericVec2< quint32quint32_2
 
typedef QSSGRenderGenericVec3< quint32quint32_3
 
typedef QSSGRenderGenericVec4< quint32quint32_4
 
typedef QSSGRenderGenericVec2< qint32qint32_2
 
typedef QSSGRenderGenericVec3< qint32qint32_3
 
typedef QSSGRenderGenericVec4< qint32qint32_4
 

Enumerations

enum class  QSSGRenderComponentType {
  UnsignedInt8 = 1 , Int8 , UnsignedInt16 , Int16 ,
  UnsignedInt32 , Int32 , UnsignedInt64 , Int64 ,
  Float16 , Float32 , Float64
}
 
enum class  QSSGRenderDrawMode {
  Points = 1 , LineStrip , LineLoop , Lines ,
  TriangleStrip , TriangleFan , Triangles
}
 
enum class  QSSGRenderWinding { Clockwise = 1 , CounterClockwise }
 
enum class  QSSGRenderTextureFilterOp { None = 0 , Nearest , Linear }
 
enum class  QSSGRenderTextureCoordOp : quint8 { Unknown = 0 , ClampToEdge , MirroredRepeat , Repeat }
 
enum class  QSSGCullFaceMode {
  Unknown = 0 , Back , Front , Disabled ,
  FrontAndBack
}
 
enum class  QSSGDepthDrawMode { OpaqueOnly , Always , Never , OpaquePrePass }
 
enum class  QSSGRenderShaderDataType : quint32 {
  Unknown = 0 , Integer , IntegerVec2 , IntegerVec3 ,
  IntegerVec4 , Boolean , BooleanVec2 , BooleanVec3 ,
  BooleanVec4 , Float , Vec2 , Vec3 ,
  Vec4 , UnsignedInteger , UnsignedIntegerVec2 , UnsignedIntegerVec3 ,
  UnsignedIntegerVec4 , Matrix3x3 , Matrix4x4 , Rgba ,
  Size , SizeF , Point , PointF ,
  Rect , RectF , Quaternion , Texture
}
 
enum class  QSSGRenderTextureTypeValue {
  Unknown = 0 , Diffuse , Specular , Environment ,
  Bump , Normal , Emissive , Anisotropy ,
  Translucent
}
 
enum class  QSSGRenderTextureCubeFace : quint8 {
  PosX , NegX , PosY , NegY ,
  PosZ , NegZ
}
 

Functions

QVector2D toRectRelative (const QRectF &r, const QVector2D &absoluteCoordinates)
 
QVector2D halfDims (const QRectF &r)
 
QVector2D toNormalizedRectRelative (const QRectF &r, QVector2D absoluteCoordinates)
 
QVector2D relativeToNormalizedCoordinates (const QRectF &r, QVector2D rectRelativeCoords)
 
QVector2D absoluteToNormalizedCoordinates (const QRectF &r, const QVector2D &absoluteCoordinates)
 
QVector2D toAbsoluteCoords (const QRectF &r, const QVector2D &inRelativeCoords)
 

Variables

static constexpr QSSGRenderTextureCubeFace QSSGRenderTextureCubeFaces []
 

Typedef Documentation

◆ bool_2

Definition at line 498 of file qssgrenderbasetypes_p.h.

◆ bool_3

Definition at line 499 of file qssgrenderbasetypes_p.h.

◆ bool_4

Definition at line 500 of file qssgrenderbasetypes_p.h.

◆ qint32_2

Definition at line 504 of file qssgrenderbasetypes_p.h.

◆ qint32_3

Definition at line 505 of file qssgrenderbasetypes_p.h.

◆ qint32_4

Definition at line 506 of file qssgrenderbasetypes_p.h.

◆ quint32_2

Definition at line 501 of file qssgrenderbasetypes_p.h.

◆ quint32_3

Definition at line 502 of file qssgrenderbasetypes_p.h.

◆ quint32_4

Definition at line 503 of file qssgrenderbasetypes_p.h.

Enumeration Type Documentation

◆ QSSGCullFaceMode

enum class QSSGCullFaceMode
strong
Enumerator
Unknown 
Back 
Front 
Disabled 
FrontAndBack 

Definition at line 403 of file qssgrenderbasetypes_p.h.

◆ QSSGDepthDrawMode

enum class QSSGDepthDrawMode
strong
Enumerator
OpaqueOnly 
Always 
Never 
OpaquePrePass 

Definition at line 412 of file qssgrenderbasetypes_p.h.

◆ QSSGRenderComponentType

enum class QSSGRenderComponentType
strong
Enumerator
UnsignedInt8 
Int8 
UnsignedInt16 
Int16 
UnsignedInt32 
Int32 
UnsignedInt64 
Int64 
Float16 
Float32 
Float64 

Definition at line 34 of file qssgrenderbasetypes_p.h.

◆ QSSGRenderDrawMode

enum class QSSGRenderDrawMode
strong
Enumerator
Points 
LineStrip 
LineLoop 
Lines 
TriangleStrip 
TriangleFan 
Triangles 

Definition at line 49 of file qssgrenderbasetypes_p.h.

◆ QSSGRenderShaderDataType

enum class QSSGRenderShaderDataType : quint32
strong
Enumerator
Unknown 
Integer 
IntegerVec2 
IntegerVec3 
IntegerVec4 
Boolean 
BooleanVec2 
BooleanVec3 
BooleanVec4 
Float 
Vec2 
Vec3 
Vec4 
UnsignedInteger 
UnsignedIntegerVec2 
UnsignedIntegerVec3 
UnsignedIntegerVec4 
Matrix3x3 
Matrix4x4 
Rgba 
Size 
SizeF 
Point 
PointF 
Rect 
RectF 
Quaternion 
Texture 

Definition at line 508 of file qssgrenderbasetypes_p.h.

◆ QSSGRenderTextureCoordOp

enum class QSSGRenderTextureCoordOp : quint8
strong
Enumerator
Unknown 
ClampToEdge 
MirroredRepeat 
Repeat 

Definition at line 352 of file qssgrenderbasetypes_p.h.

◆ QSSGRenderTextureCubeFace

enum class QSSGRenderTextureCubeFace : quint8
strong
Enumerator
PosX 
NegX 
PosY 
NegY 
PosZ 
NegZ 

Definition at line 553 of file qssgrenderbasetypes_p.h.

◆ QSSGRenderTextureFilterOp

enum class QSSGRenderTextureFilterOp
strong
Enumerator
None 
Nearest 
Linear 

Definition at line 345 of file qssgrenderbasetypes_p.h.

◆ QSSGRenderTextureTypeValue

enum class QSSGRenderTextureTypeValue
strong
Enumerator
Unknown 
Diffuse 
Specular 
Environment 
Bump 
Normal 
Emissive 
Anisotropy 
Translucent 

Definition at line 540 of file qssgrenderbasetypes_p.h.

◆ QSSGRenderWinding

enum class QSSGRenderWinding
strong
Enumerator
Clockwise 
CounterClockwise 

Definition at line 60 of file qssgrenderbasetypes_p.h.

Function Documentation

◆ absoluteToNormalizedCoordinates()

QVector2D absoluteToNormalizedCoordinates ( const QRectF r,
const QVector2D absoluteCoordinates 
)
inline

Definition at line 449 of file qssgrenderbasetypes_p.h.

References relativeToNormalizedCoordinates(), and toRectRelative().

+ Here is the call graph for this function:

◆ halfDims()

QVector2D halfDims ( const QRectF r)
inline

Definition at line 426 of file qssgrenderbasetypes_p.h.

Referenced by relativeToNormalizedCoordinates(), and toNormalizedRectRelative().

+ Here is the caller graph for this function:

◆ relativeToNormalizedCoordinates()

QVector2D relativeToNormalizedCoordinates ( const QRectF r,
QVector2D  rectRelativeCoords 
)
inline

Definition at line 442 of file qssgrenderbasetypes_p.h.

References halfDims(), QVector2D::x(), and QVector2D::y().

Referenced by absoluteToNormalizedCoordinates(), and QSSGRenderCamera::unproject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toAbsoluteCoords()

QVector2D toAbsoluteCoords ( const QRectF r,
const QVector2D inRelativeCoords 
)
inline

Definition at line 454 of file qssgrenderbasetypes_p.h.

References QVector2D::x(), and QVector2D::y().

+ Here is the call graph for this function:

◆ toNormalizedRectRelative()

QVector2D toNormalizedRectRelative ( const QRectF r,
QVector2D  absoluteCoordinates 
)
inline

Definition at line 433 of file qssgrenderbasetypes_p.h.

References halfDims(), toRectRelative(), QVector2D::x(), and QVector2D::y().

+ Here is the call graph for this function:

◆ toRectRelative()

QVector2D toRectRelative ( const QRectF r,
const QVector2D absoluteCoordinates 
)
inline

Definition at line 421 of file qssgrenderbasetypes_p.h.

References QVector2D::x(), and QVector2D::y().

Referenced by absoluteToNormalizedCoordinates(), QQuick3DSceneRenderer::getRayFromViewportPos(), and toNormalizedRectRelative().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ QSSGRenderTextureCubeFaces