PySide6.QtGui.QRhiSampler

class QRhiSampler

Sampler resource.

Details

Note

This is a RHI API with limited compatibility guarantees, see QRhi for details.

Inheritance diagram of PySide6.QtGui.QRhiSampler

Added in version 6.6.

Synopsis

Methods

Virtual methods

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 used

QRhiSampler.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:

AddressMode

Returns the horizontal wrap mode.

See also

setAddressU()

addressV()
Return type:

AddressMode

Returns the vertical wrap mode.

See also

setAddressV()

addressW()
Return type:

AddressMode

Returns the depth wrap mode.

See also

setAddressW()

abstract create()
Return type:

bool

magFilter()
Return type:

Filter

Returns the magnification filter mode.

See also

setMagFilter()

minFilter()
Return type:

Filter

Returns the minification filter mode.

See also

setMinFilter()

mipmapMode()
Return type:

Filter

Returns the mipmap filter mode.

See also

setMipmapMode()

setAddressU(mode)
Parameters:

modeAddressMode

Sets the horizontal wrap mode.

See also

addressU()

setAddressV(mode)
Parameters:

modeAddressMode

Sets the vertical wrap mode.

See also

addressV()

setAddressW(mode)
Parameters:

modeAddressMode

Sets the depth wrap mode.

See also

addressW()

setMagFilter(f)
Parameters:

fFilter

Sets the magnification filter mode to f.

See also

magFilter()

setMinFilter(f)
Parameters:

fFilter

Sets the minification filter mode to f.

See also

minFilter()

setMipmapMode(f)
Parameters:

fFilter

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

mipmapMode()

setTextureCompareOp(op)
Parameters:

opCompareOp

Sets the texture comparison function op.

textureCompareOp()
Return type:

CompareOp

Returns the texture comparison function.