PySide6.QtGui.QRhiSampler¶
- class QRhiSampler¶
Sampler resource.
Details
Note
This is a RHI API with limited compatibility guarantees, see
QRhifor details.Added in version 6.6.
Synopsis¶
Methods¶
def
addressU()def
addressV()def
addressW()def
magFilter()def
minFilter()def
mipmapMode()def
setAddressU()def
setAddressV()def
setAddressW()def
setMagFilter()def
setMinFilter()def
setMipmapMode()
Virtual methods¶
def
create()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
- class Filter¶
Specifies the minification, magnification, or mipmap filtering
Constant
Description
QRhiSampler.Filter.None_
Applicable only for
mipmapMode(), indicates no mipmaps to be usedQRhiSampler.Filter.Nearest
QRhiSampler.Filter.Linear
- class AddressMode¶
Specifies the addressing mode
Constant
Description
QRhiSampler.AddressMode.Repeat
QRhiSampler.AddressMode.ClampToEdge
QRhiSampler.AddressMode.Mirror
- class CompareOp¶
Specifies the texture comparison function.
Constant
Description
QRhiSampler.CompareOp.Never
(default)
QRhiSampler.CompareOp.Less
QRhiSampler.CompareOp.Equal
QRhiSampler.CompareOp.LessOrEqual
QRhiSampler.CompareOp.Greater
QRhiSampler.CompareOp.NotEqual
QRhiSampler.CompareOp.GreaterOrEqual
QRhiSampler.CompareOp.Always
- PySide6.QtGui.QRhiSampler.m_magFilter¶
- PySide6.QtGui.QRhiSampler.m_minFilter¶
- PySide6.QtGui.QRhiSampler.m_mipmapMode¶
- PySide6.QtGui.QRhiSampler.m_addressU¶
- PySide6.QtGui.QRhiSampler.m_addressV¶
- PySide6.QtGui.QRhiSampler.m_addressW¶
- PySide6.QtGui.QRhiSampler.m_compareOp¶
- addressU()¶
- Return type:
Returns the horizontal wrap mode.
See also
- addressV()¶
- Return type:
Returns the vertical wrap mode.
See also
- addressW()¶
- Return type:
Returns the depth wrap mode.
See also
- abstract create()¶
- Return type:
bool
Returns the magnification filter mode.
See also
Returns the minification filter mode.
See also
Returns the mipmap filter mode.
See also
- setAddressU(mode)¶
- Parameters:
mode –
AddressMode
Sets the horizontal wrap
mode.See also
- setAddressV(mode)¶
- Parameters:
mode –
AddressMode
Sets the vertical wrap
mode.See also
- setAddressW(mode)¶
- Parameters:
mode –
AddressMode
Sets the depth wrap
mode.See also
Sets the magnification filter mode to
f.See also
Sets the minification filter mode to
f.See also
Sets the mipmap filter mode to
f.Leave this set to None when the texture has no mip levels, or when the mip levels are not to be taken into account.
See also
Sets the texture comparison function
op.See also
Returns the texture comparison function.
See also