The ISampler video object interface.
More...
#include "murl_video_i_sampler.h"
Inherited by Murl::Video::Vulkan::Sampler.
The ISampler video object interface.
This interface represents a GPU Sampler.
Used internally by various geometry texture nodes, such as Graph::FlatTexture, Graph::CubemapTexture, Graph::FrameBufferTexture and others.
◆ GetObjectInterface() [1/2]
virtual IObject* Murl::Video::ISampler::GetObjectInterface |
( |
| ) |
|
|
pure virtual |
◆ GetObjectInterface() [2/2]
virtual const IObject* Murl::Video::ISampler::GetObjectInterface |
( |
| ) |
const |
|
pure virtual |
◆ SetWrapModeX()
Set the texture's wrap mode in X direction.
- Parameters
-
- Returns
- true if successful.
◆ SetWrapModeY()
Set the texture's wrap mode in Y direction.
- Parameters
-
- Returns
- true if successful.
◆ SetWrapModeZ()
Set the texture's wrap mode in Z direction.
- Parameters
-
- Returns
- true if successful.
◆ GetWrapModeX()
Get the texture's wrap mode in X direction.
- Returns
- The wrap mode.
◆ GetWrapModeY()
Get the texture's wrap mode in Y direction.
- Returns
- The wrap mode.
◆ GetWrapModeZ()
Get the texture's wrap mode in Z direction.
- Returns
- The wrap mode.
◆ SetMagFilter()
Set the texture filter used for magnification.
- Parameters
-
magFilter | The filter to use. |
- Returns
- true if successful.
◆ SetMinFilter()
Set the texture filters used for minification and MIP level selection.
- Parameters
-
minFilter | The minification filter to use. |
mipFilter | The MIP level selection filter to use. |
- Returns
- true if successful.
◆ GetMagFilter()
Get the texture filter used for magnification.
- Returns
- The filter used.
◆ GetMinFilter()
Get the texture filter used for minification.
- Returns
- The filter used.
◆ GetMipFilter()
Get the texture filter used for mip-level selection.
- Returns
- The filter used.
◆ SetDepthTestMode()
Set the depth compare mode, if the pixel format defines a depth texture.
- Parameters
-
mode | The depth compare mode to use. |
- Returns
- true if successful.
◆ GetDepthTestMode()
Get the depth compare mode.
- Returns
- The depth compare mode used.
◆ SetDepthTestFunction()
Set the depth test function, if the pixel format defines a depth texture and the depth compare mode is not NONE.
- Parameters
-
function | The depth test function to use. |
- Returns
- true if successful.
◆ GetDepthTestFunction()
Get the depth test function.
- Returns
- The depth test function used.
◆ SetMaxAnisotropy()
virtual Bool Murl::Video::ISampler::SetMaxAnisotropy |
( |
Real |
maxAnisotropy | ) |
|
|
pure virtual |
Set the maximum anisotropy for filtering.
The given value is clamped to the range from 1.0 to the highest possible value defined in the graphics driver/hardware, with 1.0 representing isotropic filtering (fastest), and higher values producing better visual results at the cost of rendering performance.
- Parameters
-
maxAnisotropy | The maximum anisotropy value. |
- Returns
- true if successful.
◆ GetMaxAnisotropy()
virtual Real Murl::Video::ISampler::GetMaxAnisotropy |
( |
| ) |
const |
|
pure virtual |
Set the maximum anisotropy for filtering.
- Returns
- The maximum anisotropy value.
The documentation for this interface was generated from the following file: