Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
SamplerState Struct Reference
Collaboration diagram for SamplerState:

Public Member Functions

std::optional< QSSGShaderDefaultMaterialKeyProperties::ImageMapNamesfromType (QSSGRenderableImage::Type type) const
 SamplerState (const QSSGShaderDefaultMaterialKey &inKey, const QSSGShaderDefaultMaterialKeyProperties &keyProps)
bool isActive () const
bool hasImage (QSSGRenderableImage::Type type) const
bool uvGenerated (QSSGShaderDefaultMaterialKeyProperties::ImageMapNames imageType) const
void generateImageUVAndSampler (QSSGRenderableImage::Type imageType, QSSGMaterialVertexPipeline &vertexShader, QSSGStageGeneratorBase &fragmentShader, const QSSGShaderDefaultMaterialKey &key, bool forceFragmentShader=false)
const char * samplerName (QSSGRenderableImage::Type imageType) const
const char * fragCoordsName (QSSGRenderableImage::Type imageType) const
std::optional< QSSGShaderDefaultMaterialKeyProperties::ImageMapNamesfromType (QSSGRenderableImage::Type type) const
 SamplerState (const QSSGShaderDefaultMaterialKey &inKey, const QSSGShaderDefaultMaterialKeyProperties &keyProps)
bool isActive () const
bool hasImage (QSSGRenderableImage::Type type) const
bool uvGenerated (QSSGShaderDefaultMaterialKeyProperties::ImageMapNames imageType) const
void generateImageUVAndSampler (QSSGRenderableImage::Type imageType, QSSGMaterialVertexPipeline &vertexShader, QSSGStageGeneratorBase &fragmentShader, const QSSGShaderDefaultMaterialKey &key, bool forceFragmentShader=false)
const char * samplerName (QSSGRenderableImage::Type imageType) const
const char * fragCoordsName (QSSGRenderableImage::Type imageType) const

Public Attributes

bool uvCoordinatesGenerated [QSSGShaderDefaultMaterialKeyProperties::ImageMapNames::ImageMapCount] = { false }
bool m_isActive = false
bool m_uvCoordinateVariableDeclared = false
char imageFragCoords [TEXCOORD_VAR_LEN]
const QSSGShaderDefaultMaterialKeym_inKey
const QSSGShaderDefaultMaterialKeyPropertiesm_keyProps

Detailed Description

Constructor & Destructor Documentation

◆ SamplerState() [1/2]

SamplerState::SamplerState ( const QSSGShaderDefaultMaterialKey & inKey,
const QSSGShaderDefaultMaterialKeyProperties & keyProps )
inline

Definition at line 453 of file qssgrenderdefaultmaterialshadergenerator.cpp.

References SamplerState(), and m_isActive.

Referenced by SamplerState().

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

◆ SamplerState() [2/2]

SamplerState::SamplerState ( const QSSGShaderDefaultMaterialKey & inKey,
const QSSGShaderDefaultMaterialKeyProperties & keyProps )
inline

Member Function Documentation

◆ fragCoordsName() [1/2]

const char * SamplerState::fragCoordsName ( QSSGRenderableImage::Type imageType) const
inline

◆ fragCoordsName() [2/2]

const char * SamplerState::fragCoordsName ( QSSGRenderableImage::Type imageType) const
inline

◆ fromType() [1/2]

std::optional< QSSGShaderDefaultMaterialKeyProperties::ImageMapNames > SamplerState::fromType ( QSSGRenderableImage::Type type) const
inline

◆ fromType() [2/2]

std::optional< QSSGShaderDefaultMaterialKeyProperties::ImageMapNames > SamplerState::fromType ( QSSGRenderableImage::Type type) const
inline

◆ generateImageUVAndSampler() [1/2]

void SamplerState::generateImageUVAndSampler ( QSSGRenderableImage::Type imageType,
QSSGMaterialVertexPipeline & vertexShader,
QSSGStageGeneratorBase & fragmentShader,
const QSSGShaderDefaultMaterialKey & key,
bool forceFragmentShader = false )
inline

◆ generateImageUVAndSampler() [2/2]

void SamplerState::generateImageUVAndSampler ( QSSGRenderableImage::Type imageType,
QSSGMaterialVertexPipeline & vertexShader,
QSSGStageGeneratorBase & fragmentShader,
const QSSGShaderDefaultMaterialKey & key,
bool forceFragmentShader = false )
inline

◆ hasImage() [1/2]

bool SamplerState::hasImage ( QSSGRenderableImage::Type type) const
inline

◆ hasImage() [2/2]

bool SamplerState::hasImage ( QSSGRenderableImage::Type type) const
inline

◆ isActive() [1/2]

bool SamplerState::isActive ( ) const
inline

Definition at line 466 of file qssgrenderdefaultmaterialshadergenerator.cpp.

References m_isActive.

Referenced by generateFragmentShader().

Here is the caller graph for this function:

◆ isActive() [2/2]

bool SamplerState::isActive ( ) const
inline

◆ samplerName() [1/2]

const char * SamplerState::samplerName ( QSSGRenderableImage::Type imageType) const
inline

◆ samplerName() [2/2]

const char * SamplerState::samplerName ( QSSGRenderableImage::Type imageType) const
inline

◆ uvGenerated() [1/2]

bool SamplerState::uvGenerated ( QSSGShaderDefaultMaterialKeyProperties::ImageMapNames imageType) const
inline

◆ uvGenerated() [2/2]

bool SamplerState::uvGenerated ( QSSGShaderDefaultMaterialKeyProperties::ImageMapNames imageType) const
inline

Member Data Documentation

◆ imageFragCoords

char SamplerState::imageFragCoords

◆ m_inKey

const QSSGShaderDefaultMaterialKey & SamplerState::m_inKey

◆ m_isActive

bool SamplerState::m_isActive = false

Definition at line 400 of file qssgrenderdefaultmaterialshadergenerator.cpp.

Referenced by SamplerState(), and isActive().

◆ m_keyProps

const QSSGShaderDefaultMaterialKeyProperties & SamplerState::m_keyProps

◆ m_uvCoordinateVariableDeclared

bool SamplerState::m_uvCoordinateVariableDeclared = false

◆ uvCoordinatesGenerated

bool SamplerState::uvCoordinatesGenerated = { false }

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