SRSDK  0.10.39
Loading...
Searching...
No Matches
InterlacerD3D12 Class Reference

C++ wrapper for D3D12 leia_interlacer. More...

#include <interlacer.d3d12.hpp>

Inheritance diagram for InterlacerD3D12:
Interlacer

Public Member Functions

 InterlacerD3D12 (Core &core, InterlacerInitConfiguration const &config, ID3D12Device *device, ID3D12CommandQueue *commandQueue)
 
 InterlacerD3D12 (InterlacerD3D12 const &)=delete
 
InterlacerD3D12operator= (InterlacerD3D12 const &)=delete
 
 InterlacerD3D12 (InterlacerD3D12 &&)=default
 
InterlacerD3D12operator= (InterlacerD3D12 &&)=default
 
 InterlacerD3D12 (leia_interlacer *nonOwningInterlacer)
 
void DoPostProcess (int32_t width, int32_t height, bool blendedInterlace, ID3D12Resource *renderTarget)
 
void SetSourceViews (ID3D12Resource *resource, int viewIndex=0, int layer=0)
 Set Direct3D 12 view texture.
 
- Public Member Functions inherited from Interlacer
 Interlacer ()
 
 ~Interlacer ()
 
 Interlacer (Interlacer const &)=delete
 
Interlaceroperator= (Interlacer const &)=delete
 
 Interlacer (Interlacer &&other)
 
Interlaceroperator= (Interlacer &&other)
 
 operator bool () const
 
void SetLayerCount (int layerCount)
 Sets the number of layers to interlace.
 
LEIA_NODISCARD int GetLayerCount () const
 Gets the current number of layers.
 
void SetNumTiles (int32_t tx, int32_t ty)
 
void GetNumTiles (int32_t *tx, int32_t *ty) const
 
void SetTileLayout (TileLayout tileLayout)
 
void SetOutputAsTiles (bool enable)
 
void SetBaselineScaling (float baseline)
 
LEIA_NODISCARD float GetBaselineScaling ()
 
LEIA_NODISCARD float GetConvergenceDistance ()
 
void SetConvergenceDistance (float distance)
 
float GetPhc ()
 
void SetPhc (float phase)
 
void GetConvergedOrthographicViewInfo (int32_t viewIndex, LEIA_CONST_FLOAT_SLICE(3) cameraPos, LEIA_CONST_FLOAT_SLICE(3) cameraDir, LEIA_CONST_FLOAT_SLICE(3) cameraUp, float width, float height, float nearPlane, float farPlane, LEIA_FLOAT_SLICE(3) viewPos, LEIA_FLOAT_SLICE(16) viewProjectionMatrix, float *viewShearX, float *viewShearY)
 
void GetConvergedPerspectiveViewInfo (int32_t viewIndex, LEIA_CONST_FLOAT_SLICE(3) cameraPos, LEIA_CONST_FLOAT_SLICE(3) cameraDir, LEIA_CONST_FLOAT_SLICE(3) cameraUp, float fieldOfView, float aspectRatio, float nearPlane, float farPlane, LEIA_FLOAT_SLICE(3) viewPos, LEIA_FLOAT_SLICE(16) viewProjectionMatrix, float *viewFieldOfView, float *viewShearX, float *viewShearY)
 
void SetFitMode (FitMode mode)
 
LEIA_NODISCARD FitMode GetFitMode ()
 
void GetRectMatrix (LEIA_FLOAT_SLICE(16) transformMatrix)
 
void SetLocalMatrix (LEIA_CONST_FLOAT_SLICE(16) transformMatrix)
 
void SetCustomTextureMatrix (LEIA_CONST_FLOAT_SLICE(16) textureTransform)
 
void EnableUserMatrix (bool enabled)
 
void GetUserMatrix (LEIA_FLOAT_SLICE(16) transformMatrix)
 
void SetUserMatrix (LEIA_CONST_FLOAT_SLICE(16) transformMatrix)
 
void SetAlpha (float alpha)
 
void SetFlipInputUvVertical (bool flip)
 
void SetSingleViewMode (bool setSingleView, int32_t singleViewIndex)
 
void SetSingleViewModeListener (InterlacerSingleViewModeListener const *listener)
 
void SetSourceViewsSize (int32_t sourceWidth, int32_t sourceHeight, bool isHorizontalViews)
 
void GetSourceViewsSize (int32_t *sourceWidth, int32_t *sourceHeight, bool *isHorizontalViews)
 
void SetSourceMediaIsVideo (bool isVideo)
 
void SetSourceMediaScale (float scaleX, float scaleY)
 
void SetSourceViewsSRGB (bool isSRGB)
 
void SetInShaderSRGBConversion (bool sRGBRead, bool sRGBWrite)
 
void SetViewportScreenPosition (int32_t posX, int32_t posY)
 
void SetViewport (int32_t posX, int32_t posY, int32_t width, int32_t height)
 
void EnableReconvergence (bool enable)
 
LEIA_NODISCARD bool IsReconvergenceEnabled ()
 
LEIA_NODISCARD float GetReconvergence (int layer=0)
 Get the reconvergence amount.
 
void SetReconvergence (float value, int layer=0)
 Set the reconvergence amount.
 
void SetReconvergenceZoom (bool zoomX, bool zoomXY, int layer=0)
 Set what directions reconvergence is calculated for.
 
void SetUseAtlasForViews (bool useAtlasForViews)
 
LEIA_NODISCARD bool GetUseAtlasForViews ()
 
void GetViewOffset (int32_t view, LEIA_FLOAT_SLICE(3) offset)
 
void SetInvertScreenTextureCoordinates (bool invert)
 
LEIA_NODISCARD GraphicsAPI GetGraphicsAPI ()
 
LEIA_NODISCARD leia_interlacerGetHandle () const
 

Additional Inherited Members

- Protected Member Functions inherited from Interlacer
 Interlacer (leia_interlacer *interlacer, bool isInterlacerOwned)
 
- Protected Attributes inherited from Interlacer
leia_interlacer_interlacer
 
bool _isInterlacerOwned
 

Detailed Description

C++ wrapper for D3D12 leia_interlacer.

Constructor & Destructor Documentation

◆ InterlacerD3D12() [1/4]

InterlacerD3D12 ( Core core,
InterlacerInitConfiguration const &  config,
ID3D12Device *  device,
ID3D12CommandQueue *  commandQueue 
)
inline

◆ InterlacerD3D12() [2/4]

InterlacerD3D12 ( InterlacerD3D12 const &  )
delete

◆ InterlacerD3D12() [3/4]

InterlacerD3D12 ( InterlacerD3D12 &&  )
default

◆ InterlacerD3D12() [4/4]

InterlacerD3D12 ( leia_interlacer nonOwningInterlacer)
inline

Member Function Documentation

◆ operator=() [1/2]

InterlacerD3D12 & operator= ( InterlacerD3D12 const &  )
delete

◆ operator=() [2/2]

InterlacerD3D12 & operator= ( InterlacerD3D12 &&  )
default

◆ DoPostProcess()

void DoPostProcess ( int32_t  width,
int32_t  height,
bool  blendedInterlace,
ID3D12Resource *  renderTarget 
)
inline

◆ SetSourceViews()

void SetSourceViews ( ID3D12Resource *  resource,
int  viewIndex = 0,
int  layer = 0 
)
inline

Set Direct3D 12 view texture.

This method allows you to specify the texture for a specific view index and layer.

Parameters
[in]resourceThe view texture.
[in]viewIndexThe view index.
[in]layerThe layer at which to set the view texture.

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