LeiaSR SDK 720218b2 v1.32.7.6322 2025-02-13T14:55:38Z
Stable
|
#include <dx11weaver.h>
Public Member Functions | |
DX11WeaverBase () | |
~DX11WeaverBase () | |
ID3D11RenderTargetView * | getFrameBuffer () |
Returns the buffer that will be used to create a weaved image. This buffer expects a side-by-side image. When a frame buffer is provided by calling setInputFrameBuffer(), the internally created buffer will be released. More... | |
void | setInputFrameBuffer (ID3D11ShaderResourceView *frameBuffer) |
Sets the buffer that will be used to create a weaved image. This will release the internally created frame buffer. More... | |
void | setContext (ID3D11DeviceContext *context) |
Sets the device context for the weaver to use. More... | |
void | setWindowHandle (HWND handle) |
Sets the window handle of the application window. If the weaver was created using a deprecated constructor, setting window handle has no effect. More... | |
void | enableLateLatching (bool enable) |
Enables late latching. Note that late latching requires applications to call weave() once per frame, and does not work with deferred contexts. More... | |
bool | isLateLatchingEnabled () const |
Determines if late latching is enabled. More... | |
void | setContrast (float contrast) |
Sets the weaving contrast. More... | |
float | getContrast () const |
Gets the current weaving contrast. More... | |
void | setShaderSRGBConversion (bool read, bool write) |
Sets whether to apply shader sRGB<->Linear color space conversions to the input framebuffer during weaving. More... | |
void | setACTMode (WeaverACTMode mode) |
Sets the anti-crosstalk mode. More... | |
WeaverACTMode | getACTMode () const |
Gets the anti-crosstalk mode. More... | |
void | setCrosstalkStaticFactor (float factor) |
Sets the anti-crosstalk factor. More... | |
float | getCrosstalkStaticFactor () const |
Gets the anti-crosstalk factor. More... | |
void | setCrosstalkDynamicFactor (float factor) |
Sets the anti-crosstalk dynamic factor. More... | |
float | getCrosstalkDynamicFactor () const |
Gets the anti-crosstalk dynamic factor. More... | |
bool | canWeave () |
Used to determine if software weaving is possible on this device. More... | |
bool | canWeave (unsigned int width, unsigned int height) |
Used to determine if software weaving is possible for certain size and visibility to the currently bound framebuffer. More... | |
bool | canWeave (unsigned int width, unsigned int height, unsigned int xOffset, unsigned int yOffset) |
Used to determine if software weaving is possible for certain size and visibility to the currently bound framebuffer. More... | |
void | weave (unsigned int width, unsigned int height) |
Can be called to render a weaved image of a certain size to the currently bound framebuffer A framebuffer must be set before calling this function. More... | |
void | weave (unsigned int width, unsigned int height, unsigned int xOffset, unsigned int yOffset) |
Can be called to render a weaved image of a certain size to the currently bound framebuffer A framebuffer must be set before calling this function. More... | |
Protected Attributes | |
std::unique_ptr< Impl > | pimpl |
SR::DX11WeaverBase::DX11WeaverBase | ( | ) |
SR::DX11WeaverBase::~DX11WeaverBase | ( | ) |
bool SR::DX11WeaverBase::canWeave | ( | ) |
Used to determine if software weaving is possible on this device.
bool SR::DX11WeaverBase::canWeave | ( | unsigned int | width, |
unsigned int | height | ||
) |
Used to determine if software weaving is possible for certain size and visibility to the currently bound framebuffer.
width | of the image to be rendered to the bound framebuffer |
height | of the image to be rendered to the bound framebuffer |
std::runtime_error | if the window handle (HWND) becomes invalid during the execution of canWeave |
bool SR::DX11WeaverBase::canWeave | ( | unsigned int | width, |
unsigned int | height, | ||
unsigned int | xOffset, | ||
unsigned int | yOffset | ||
) |
Used to determine if software weaving is possible for certain size and visibility to the currently bound framebuffer.
width | of the image to be rendered to the bound framebuffer |
height | of the image to be rendered to the bound framebuffer |
xOffset | of the image to be rendered to the bound framebuffer |
yOffset | of the image to be rendered to the bound framebuffer |
std::runtime_error | if the window handle (HWND) becomes invalid during the execution of canWeave |
void SR::DX11WeaverBase::enableLateLatching | ( | bool | enable | ) |
Enables late latching. Note that late latching requires applications to call weave() once per frame, and does not work with deferred contexts.
WeaverACTMode SR::DX11WeaverBase::getACTMode | ( | ) | const |
Gets the anti-crosstalk mode.
float SR::DX11WeaverBase::getContrast | ( | ) | const |
Gets the current weaving contrast.
float SR::DX11WeaverBase::getCrosstalkDynamicFactor | ( | ) | const |
Gets the anti-crosstalk dynamic factor.
float SR::DX11WeaverBase::getCrosstalkStaticFactor | ( | ) | const |
Gets the anti-crosstalk factor.
ID3D11RenderTargetView * SR::DX11WeaverBase::getFrameBuffer | ( | ) |
Returns the buffer that will be used to create a weaved image. This buffer expects a side-by-side image. When a frame buffer is provided by calling setInputFrameBuffer(), the internally created buffer will be released.
The buffer identifier can be bound using OMSetRenderTargets
to start rendering to it. Rendering to the buffer is identical to normal rendering and often starts with calling ClearRenderTargetView
.
CreateShaderResourceView
bool SR::DX11WeaverBase::isLateLatchingEnabled | ( | ) | const |
Determines if late latching is enabled.
void SR::DX11WeaverBase::setACTMode | ( | WeaverACTMode | mode | ) |
Sets the anti-crosstalk mode.
void SR::DX11WeaverBase::setContext | ( | ID3D11DeviceContext * | context | ) |
Sets the device context for the weaver to use.
context | Device Context to be used for rendering commands |
void SR::DX11WeaverBase::setContrast | ( | float | contrast | ) |
Sets the weaving contrast.
void SR::DX11WeaverBase::setCrosstalkDynamicFactor | ( | float | factor | ) |
Sets the anti-crosstalk dynamic factor.
void SR::DX11WeaverBase::setCrosstalkStaticFactor | ( | float | factor | ) |
Sets the anti-crosstalk factor.
void SR::DX11WeaverBase::setInputFrameBuffer | ( | ID3D11ShaderResourceView * | frameBuffer | ) |
Sets the buffer that will be used to create a weaved image. This will release the internally created frame buffer.
frameBuffer | Frame buffer to set |
void SR::DX11WeaverBase::setShaderSRGBConversion | ( | bool | read, |
bool | write | ||
) |
Sets whether to apply shader sRGB<->Linear color space conversions to the input framebuffer during weaving.
read | Convert from sRGB to Linear color space before weaving. |
write | Convert from Linear to sRGB color space after weaving. |
void SR::DX11WeaverBase::setWindowHandle | ( | HWND | handle | ) |
Sets the window handle of the application window. If the weaver was created using a deprecated constructor, setting window handle has no effect.
window | Handle of the application window |
void SR::DX11WeaverBase::weave | ( | unsigned int | width, |
unsigned int | height | ||
) |
Can be called to render a weaved image of a certain size to the currently bound framebuffer A framebuffer must be set before calling this function.
width | of the image to be rendered to the bound framebuffer |
height | of the image to be rendered to the bound framebuffer |
void SR::DX11WeaverBase::weave | ( | unsigned int | width, |
unsigned int | height, | ||
unsigned int | xOffset, | ||
unsigned int | yOffset | ||
) |
Can be called to render a weaved image of a certain size to the currently bound framebuffer A framebuffer must be set before calling this function.
width | of the image to be rendered to the bound framebuffer |
height | of the image to be rendered to the bound framebuffer |
xOffset | of the image to be rendered to the bound framebuffer |
yOffset | of the image to be rendered to the bound framebuffer |
|
protected |
Suppressing warning because if we don't want to export everything then solving the underlying problem requires modification of the API Warning Description: 'type' : class 'type1' needs to have dll-interface to be used by clients of class 'type2' Candidate for deprecation